System Management Mode

System Management Mode

System Management Mode (SMM) is an operating mode first released with the Intel 386SL and available in later microprocessors in the x86 architecture, in which all normal execution (including the operating system) is suspended, and special separate software (usually firmware or a hardware-assisted debugger) is executed in high-privilege mode.

Usage

Some uses of SMM are:
* primarily to handle system events like memory or chipset errors
* system safety functions, such as shutdown on high CPU temperature.
* power management operations, such as turning on fans.
* to emulate motherboard hardware that is unimplemented or buggy.
* to emulate a PS/2 mouse or keyboard from a USB one.
* system configuration, such as on Toshiba and IBM notebook computers
* To run high-privileged rootkits as shown at Black Hat 2008. [ [http://www.linuxworld.com.au/index.php?id=1048371291&rid=-50 Hackers find a new place to hide rootkits] ]

Entering SMM

SMM is entered via the SMI (system management interrupt), which is caused by:
* motherboard hardware or chipset signaling via a designated pin of the processor chip. This signal can be an independent event
* SW SMI triggered by the system software via an I/O access to a location considered special by the motherboard logic (port 0B2h is common)
* an IO write to a location which the firmware has requested that the processor chip act on

Problems

*By design, the OS cannot override or disable SMIs.
*Since the SMM code (SMI handler) is installed by the system firmware (BIOS), the OS and the SMM code may have expectations about hardware settings that are incompatible, such as different ideas of how the APIC should be set up.
*Operations in SMM take CPU time away from the OS, since the CPU state must be stored to memory (SMRAM) and any write back caches must be flushed. This can destroy real-time behavior and cause clock ticks to get lost. Windows/Linux define an SMI Timeout within which SMM Handlers should complete their job and return control back to OS normal operations. Otherwise the OS will crash.
*A digital logic analyser may be required to determine if SMM is occurring.
*Recovering the SMI handler code to analyze it for bugs, vulnerabilities, and secrets requires a logic analyzer or dissassembly of the system firmware.
*SMI handling may cause unacceptable latencies in real-time systems.

References

ee also

* MediaGX processor which implements nonexistent hardware via SMM
* Intel 80486SL
* Extensible Firmware Interface

External links

*Badness of SMM, [http://blogs.msdn.com/carmencr/archive/2005/08/31/458609.aspx part 1] and [http://blogs.msdn.com/carmencr/archive/2005/09/01/459194.aspx part 2]
* [http://www.intel.com/design/processor/manuals/253669.pdf Intel 32/64 Architectures Software Developer’s Manual Volume 3B: System Programming Guide, Part 2]
* [http://www.amd.com/us-en/assets/content_type/DownloadableAssets/dwamd_26049.pdf#6 AMD Hammer BIOS and Kernel Developer's guide] , Chapter 6
* [http://www.ssi.gouv.fr/fr/sciences/fichiers/lti/cansecwest2006-duflot-paper.pdf An exploit against SMM based on OpenBSD]
* [http://www.pcworld.com/businesscenter/article/145703/ SMM based rootkit]
* [http://www.msuiche.net/2008/08/06/smm-rootkit-limitations-and-how-to-defeat-it/ SMM Rootkit limitations. (and how to defeat it)]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • System Management Mode — Der System Management Mode (SMM) ist ein Ausführungsmodus von Prozessoren der x86 Architektur. Er wurde mit dem Intel386 SL eingeführt und ist für die Hardware Kontrolle, das Energie Management und herstellerspezifische Anwendungen gedacht. Die… …   Deutsch Wikipedia

  • System Management Mode — Режим системного управления (англ. System Management Mode, SMM)  режим исполнения на процессорах x86/x86 64, при котором приостанавливается исполнение другого кода (включая операционные системы и гипервизор), и запускается специальная… …   Википедия

  • system management mode —    Abbreviated SMM. In the Intel family of microprocessors, a low power consumption mode used to conserve battery power. All recent Intel processors have SMM and so are suitable for use in portable, battery powered computers …   Dictionary of networking

  • System Management Bus — The System Management Bus (abbreviated to SMBus or SMB) is a simple two wire bus, derived from I²C and used for communication with low bandwidth devices on a motherboard, especially power related chips such as a laptop s rechargeable battery… …   Wikipedia

  • Protected mode — This article is about an x86 processor mode. For Internet Explorer Protected Mode, see Mandatory Integrity Control. x86 processor modes Mode First supported Real mode Intel 8086 8080 emulation mode NEC …   Wikipedia

  • System Architecture Evolution — (aka SAE) is the core network architecture of 3GPP s LTE wireless communication standard. SAE is the evolution of the GPRS Core Network, with some differences: simplified architecture all IP Network (AIPN) support for higher throughput and lower… …   Wikipedia

  • Real Mode — Der Begriff Real Mode, eigentlich real address mode oder eingedeutscht Real Modus, bezeichnet eine Betriebsart der x86 kompatiblen Prozessoren, die ab dem Intel 80286 unter diesem Namen existiert. Inhaltsverzeichnis 1 Charakteristika 2 Bedeutung… …   Deutsch Wikipedia

  • Unreal mode — Der Begriff Real Mode, eigentlich real address mode oder eingedeutscht Real Modus, bezeichnet eine Betriebsart der x86 kompatiblen Prozessoren, die ab dem Intel 80286 unter diesem Namen existiert. Inhaltsverzeichnis 1 Charakteristika 2… …   Deutsch Wikipedia

  • System center operations manager — (SCOM, anciennement connu sous le nom de MOM Microsoft Operations Manager), est un outil de Microsoft destiné à la surveillance de performance et d’événements de systèmes Windows. Cet outil permet la supervision d’ordinateurs interconnectés par… …   Wikipédia en Français

  • Protected Mode — Der Begriff protected mode (englisch; deutsch: geschützter Modus oder Schutzmodus), bezeichnet einen speziellen Betriebsmodus der IA 32 Architektur (auch als x86 Architektur bekannt) von Intel, der seit dem 80286er Prozessor vorhanden ist. Er… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”