One or more aspects relate, in general, to processing within a computing environment, and in particular, to protecting data of the computing environment.
Corruption of computer programs may occur in many forms. One such form is the overwriting of data causing the program to perform tasks or return to addresses that are unexpected. This corruption may be innocent or malicious. As a particular example, the corruption may occur in a call stack (also referred to as a stack) used by a computer program to store information about the active subroutines of the computer program. For example, a stack is used to keep track of the point to which an active subroutine should return control (i.e., return address) when the routine finishes executing. An active subroutine is one that has been called, but is yet to complete execution. Such activations of subroutines may be nested to any level (recursive as a special case), hence the stack structure. Stacks may be corrupted by overwriting the return addresses, thereby having a called subroutine return to an unexpected location.
Again, the overwriting of the return address may be innocent or malicious, but regardless, is to be detected and planned for such that the program or other data is not corrupted.
Shortcomings of the prior art are overcome and additional advantages are provided through the provision of a computer program product for detecting corruption of stacks of a computing environment. The computer program product includes a computer readable storage medium readable by a processing circuit and storing instructions for performing a method. The method includes checking, by a called routine executing on a processor of the computing environment, a guard word provided by a calling routine, the calling routine having called the called routine, and the guard word being stored in a stack of the calling routine and protecting a return address stored directly into the stack by a hardware instruction; determining, based on the checking, whether the guard word has an expected value; and based on determining the guard word has an unexpected value, providing an indication of corruption of the stack.
Computer-implemented methods and systems relating to one or more aspects are also described and claimed herein. Further, services relating to one or more aspects are also described and may be claimed herein.
Additional features and advantages are realized through the techniques described herein. Other embodiments and aspects are described in detail herein and are considered a part of the claimed aspects.
One or more aspects are particularly pointed out and distinctly claimed as examples in the claims at the conclusion of the specification. The foregoing and objects, features, and advantages of one or more aspects are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
One or more aspects relate to using a guard word to protect a call stack. The guard word is included in the call stack and checked by one or more called routines. If the checking indicates the guard word is different than expected (i.e., has been changed), then an indication of a corrupt stack is provided.
In one example, architected guard word instructions (e.g., hardware instructions) are provided to initialize and verify a stack guard word in order to prevent code injection/execution attacks from malicious system users. Use of the guard word instructions may facilitate using the guard word and/or enhance system security.
In yet a further aspect, it is recognized that not all routines or modules (e.g., one or more routines) that may be linked with one another, e.g., by being called from a routine or otherwise, may support the guard word protection facility, and therefore, one or more features are provided that enable such routines or modules with differing protection capabilities to be interlinked without causing a fatal error.
One embodiment of a computing environment to incorporate and/or use one or more aspects of the present invention is described with reference to
Computer system/server 102 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types.
As depicted in
In one embodiment, processor 106 is based on the z/Architecture offered by International Business Machines Corporation, or other architectures offered by International Business Machines Corporation. z/Architecture is a registered trademark of International Business Machines Corporation, Armonk, N.Y., USA. Other names used herein may be registered trademarks, trademarks, or product names of International Business Machines Corporation or other companies. One embodiment of the z/Architecture is described in “z/Architecture Principles of Operation,” IBM Publication No. SA22-7832-10, March 2015, which is hereby incorporated herein by reference in its entirety.
In other examples, processor 106 may be based on other architectures, such as an x86 architecture offered by Intel Corporation, Santa Clara, Calif., and/or other architectures offered by Intel or other companies. In one example, the architecture in which processor 106 is based is a Complex Instruction Set Computing (CISC) architecture. The examples provided herein are not meant to be limiting in any manner.
Processor 106 includes, in one embodiment, stack corruption detection logic 160 used to determine whether a guard word in a stack has an unexpected value, therefore, indicating that a return address in the stack has been overwritten. Stack corruption detection logic 160 may use, in one embodiment, instructions to initialize and verify the guard word, and/or the interlinking features described herein.
Bus 110 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 102 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 102, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 108 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 112 and/or cache memory 114. Computer system/server 102 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 116 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 110 by one or more data media interfaces. As will be further depicted and described below, memory 108 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 120, having a set (at least one) of program modules 122, may be stored in memory 108 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 122 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer system/server 102 may also communicate with one or more external devices 130 such as a keyboard, a pointing device, a display 132, etc.; one or more devices that enable a user to interact with computer system/server 102; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 102 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 140. Still yet, computer system/server 102 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 150. As depicted, network adapter 150 communicates with the other components of computer system/server 102 via bus 110. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 102. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
Another embodiment of a computing environment to incorporate and use one or more aspects is described with reference to
Native central processing unit 202 includes one or more native registers 210, such as one or more general purpose registers and/or one or more special purpose registers used during processing within the environment. These registers include information that represents the state of the environment at any particular point in time.
Moreover, native central processing unit 202 executes instructions and code that are stored in memory 204. In one particular example, the central processing unit executes emulator code 212 stored in memory 204. This code enables the processing environment configured in one architecture to emulate another architecture. For instance, emulator code 212 allows machines based on architectures other than the z/Architecture, such as x86 servers, HP Superdome servers or others, to emulate the z/Architecture and to execute software and instructions developed based on the z/Architecture. Other architectures may also be emulated.
Further details relating to emulator code 212 are described with reference to
Further, emulator code 212 includes an emulation control routine 260 to cause the native instructions to be executed. Emulation control routine 260 may cause native CPU 202 to execute a routine of native instructions that emulate one or more previously obtained guest instructions and, at the conclusion of such execution, return control to the instruction fetch routine to emulate the obtaining of the next guest instruction or a group of guest instructions. Execution of the native instructions 256 may include loading data into a register from memory 204; storing data back to memory from a register; or performing some type of arithmetic or logic operation, as determined by the translation routine.
Each routine is, for instance, implemented in software, which is stored in memory and executed by native central processing unit 202. In other examples, one or more of the routines or operations are implemented in firmware, hardware, software or some combination thereof. The registers of the emulated processor may be emulated using registers 210 of the native CPU or by using locations in memory 204. In embodiments, guest instructions 250, native instructions 256 and emulator code 212 may reside in the same memory or may be disbursed among different memory devices.
As used herein, firmware includes, e.g., the microcode, millicode and/or macrocode of the processor. It includes, for instance, the hardware-level instructions and/or data structures used in implementation of higher level machine code. In one embodiment, it includes, for instance, proprietary code that is typically delivered as microcode that includes trusted software or microcode specific to the underlying hardware and controls operating system access to the system hardware.
Within a processing environment, a stack is used by a routine to track the point at which the routine should return control when it finishes executing. As used herein, a routine is program code, and may include a subroutine, function, method, etc. One routine may be called by another routine. The one routine performing the calling is referred to as the calling routine or the caller routine, and the routine being called is referred to as the called routine or the callee routine. One example of a stack is described with reference to
As shown in
One form of corruption related to computer processing is to overflow buffer 310, in which more data than can be accepted by the buffer is written to the buffer, overflowing the buffer and overwriting return address 314, as depicted in
Thus, in accordance with an aspect of the present invention, a guard word is provided to detect such overflow. The guard word may be any value (e.g., numerical, alphanumeric, alphabetic, include symbols, etc.), and may be any desired size. The position of the guard word is agreed upon by the routines, in one example, or at least an indication of the position is provided to the routines that use the stack frame. In one embodiment, the presence and location of a guard word is specified by an application binary interface (ABI).
One example of adding a guard word to a stack is described with reference to
In one example, the caller stores a guard word at (ESP-size of (return address)-size of (guard word), where ESP is extended stack pointer) prior to performing the first subroutine call. (In another embodiment, for a stack that grows upward, the address to store the guard word is computed as (SP)+size of (return address), where SP is stack pointer). In another embodiment, the placement further takes into account a number of function parameters which may be placed on the stack prior to a function (or other routine) call. Thus, in one embodiment, the guard word may be placed at an address ESP-size of (return address)-size of (guard word)-size of parameter area), for a stack growing downward, i.e., from higher to lower addresses.
Further, as depicted in
Additionally, referring to
In contrast, in a callee not enabled in accordance with aspects of the present invention and called by a caller enabled with a protective guard word mechanism, the callee stack frame is allocated so as to overwrite the guard word with a portion of the callee's stack frame's data.
In one embodiment, after the callee completes processing, the callee checks the guard word and if it has an expected value, then the callee returns to the return address, and in so doing, removes the return address, as depicted in
In accordance with one or more aspects, the guard word is provided by the caller routine and verified by the called routine, as described below. The caller writes the guard word once, e.g., when it first allocates a stack frame; and that once written guard word is used by one or more callees. That is, the guard word protects returns from the one or more callees. Each callee checks the guard word prior to returning to determine whether it has an expected value. If it does have the expected value, then the callee returns to the return address, as expected. Otherwise, an indication of a corrupt guard word is provided. Further, the program may be terminated and/or the operating system is notified to take additional actions against intrusion. In one aspect, this reduces the number of store instructions to be executed to write a guard word compared to embodiments where a store of a guard word corresponds to each function (or other routine) call, and a check of a guard word corresponds to each function (or other routine) return. Thus, the cost of the protection mechanism is reduced. Further, in another aspect, it is ensured that guard words are available from the cache rather than the store queue, because they were written much earlier than being checked. Consequently, an expensive forwarding operation from the store queue, often resulting in additional penalties may be avoided, and thereby further improving performance.
Further details relating to using a guard word for stack protection are described with reference to
Referring to
Referring to
One example of code to write a guard word, verify a guard word, and prevent the return to a corrupted return address is provided below (in one embodiment based on a CISC instruction set architecture):
In the above code, a Store Guard Word instruction is used to provide a memory location in which the guard word is to be saved; and a POPCHECK instruction is used to verify the guard word's correctness, each of which is described below.
As shown in
In one example, the specified location may be a guard word register. For instance, as depicted in
Further, as shown in
One example of pseudo code for the POPCHECK instruction is, as follows:
In a further embodiment, POPCHECK may be combined with a return to provide a POPCHECKRET instruction. One example of pseudo code for the POPCHECKRET instruction, as follows:
In one aspect, the POPCHECKRET instruction may access the return address from memory prior to accessing the guard word to be checked, to eliminate any period during which the return address may be unprotected by a protective guard word. In one embodiment, POPCHECKRET is implemented as a single instruction in the architecture, such as the x86 instruction set architecture. In another embodiment, a sequence of two instructions (e.g., POPCHECK and RET) or more instructions (e.g., an example sequence including: LOAD GUARD WORD; COMPARE loaded guard word to reference guard word; BRANCH to notification address; RET, or another sequence) is recognized by the instruction decode logic, and transformed into a single internal instruction, e.g., using known instruction decode time optimization. Such an embodiment may be executed on a processor not implementing a single POPCHECKRET sequence in hardware but with lesser security, and on processors that implement a POPCHECKRET operation on which higher security may be achieved, thus combining both program portability to processors not enabled with one or more hardware function aspects of the present invention, and higher security on processors that implement such aspects.
As described above, a guard word is placed in a stack and is used by one or more callees to detect whether a return address has been overwritten. This detects corruption of the stack and prevents further corruption of data and/or programs. Additionally, the transfer of control to an undesired or unknown location is prevented.
In accordance with one or more further aspects, modules (e.g., a module includes one or more routines) or routines that may be linked to one another, e.g., by being called by a routine or otherwise, may have differing protection capabilities. For instance, a caller routine may support the guard word protection facility, but one or more of the routines called by the caller may not support the guard word protection facility, or vice versa. This may cause problems, e.g., when the caller program is expecting an action not performed by the callee routine or vice versa. Thus, in accordance with an aspect of the present invention, one or more features are provided that allow routines or modules of differing protection capabilities to be linked without failing.
As one example, one aspect includes using a protection guard enablement indicator to indicate whether the guard word facility is to be used. As one example, a protection guard enablement indicator is provided for each software thread (or process or application, or in a single threaded core, a core). The protection guard enablement indicator is provided in the context switch information accessed by an operating system; or hypervisor or other virtual machine manager in a computing environment including logical partitions and/or virtual machines.
Based on a module loader recognizing that at least one routine which is not protected is loaded (as indicated by a protection indicator for the routine or for a module containing the routine), the protection guard enablement indicator is set to disable guard protection use. In a further embodiment, a dynamic linker may recognize this situation, and disable the guard protection use, if it is to be disabled. Further details relating to the use of the protection guard enablement indicator are described with reference to
With reference to
Referring to
If the protection indicator is set, e.g., to one, then the module supports stack guard protection. However, if it is not set, e.g. is equal to zero, then the module does not support stack guard protection. If the module does not support stack guard protection, then stack_guard is set to false, STEP 908.
Thereafter, or if the module does support stack guard protection, then a determination is made as to whether another module is to be linked, INQUIRY 910. If so, processing continues to STEP 904. Otherwise, a check is made of the value of stack_guard, INQUIRY 912. If stack_guard is set to true, then the linked modules are written to a linked module file as a linked module and indicating that the linked module supports stack guards, STEP 914. However, if stack_guard is set to false, then the linked modules are written to the linked module file as a linked module and indicating that the linked module does not support stack guards, STEP 916. This allows the modules to be processed even though they have differing protection capabilities. They either are executed in accordance with stack guard protection if the modules support such protection, or are executed without this protection, if one or more of the modules do not support stack guard protection.
With reference to
Referring to
Further, a determination is made as to whether another module is to be loaded, INQUIRY 1010. If not, the program terminates, STEP 1012. Otherwise, processing continues with STEP 1002.
With the above logic, when at least one module of a plurality of modules to be linked does not support stack guard protection, then stack guard protection is not used. Thus, in one example, verification of the guard word may be suppressed, and in a further aspect, the storing of the guard word may also be suppressed.
To facilitate suppressing the storing of the guard word and/or verifying the guard word in selected situations, such as one or more of the routines or modules does not support stack guard protection, variants of the Store Guard Word and POPCHECK or POPCHECKRET instructions are provided that include conditional logic to check whether stack guard protection is to be used. These instructions are referred to as a Store Guard Word Conditional (STPGC) instruction and a POPCHECK Conditional (POPCHECKC) or POPCHECKRET Conditional instruction, respectively. Each of these instructions has a format similar to the Store Guard Word or POPCHECK/POPCHECKRET instruction, respectively, except the opcode would be different indicating whether or not the conditional logic is included.
In one embodiment, with the Store Guard Word Conditional instruction, the guard word is stored in the specified memory location in the call stack, if the protection guard enablement indicator is enabled; and for the POPCHECK/POPCHECKRET instruction, the verification is performed, if the protection guard enablement indicator is enabled. In one example, the check of the protection guard enablement indicator is implemented in the instruction decode unit of the processor. In such an embodiment, if the protection guard enablement indicator indicates that the protection guard facility is not to be used, the instruction decode logic may translate the instruction to a no-operation (NOP) instruction, or completely omit it from the stream of decoded instructions.
Further details relating to the Store Guard Word Conditional instruction are described with reference to
Likewise, further details relating to the POPCHECK Conditional instruction are described with reference to
Returning to INQUIRY 1202, if the protection guard enablement indicator is disabled, then the stack pointer is moved, as above, STEP 1211, and processing continues to STEP 1212. The instruction completes without loading or obtaining the guard word or performing the compare.
One example of code using the conditional store and verify instructions is described below (in one example of a CISC instruction set architecture):
In another embodiment of the example code hereinabove, the POPCHECK COND and RET instructions are replaced by a single POPCHECKRET COND instruction, or a merged instruction sequence. In accordance with such an embodiment, the POPCHECKRET COND instruction unconditionally retrieves the return address from the stack, conditionally (based on the guard word facility being enabled) retrieves the guard word from the stack, unconditionally moves the stack pointer across the guard word, and the return address, conditionally (based on the guard word facility being enabled) compares the conditionally loaded guard word with the reference guard word and based on determining a mismatch between the conditionally retrieved guard word and reference guard word, performs a corruption indication, and performs a return to the previously returned address unless a corruption notification has been performed (i.e., either unconditionally based on the guard word facility being disabled, or conditionally, based on the guard word facility being enabled, when no corruption has been detected).
Described above is one example of interlinking modules with possibly differing protection capabilities. In another example, instead of using the protection guard enablement indicator, a per-routine indication, implemented, for instance, as an enable vector of indicators, is used. In one example, as shown in
Thus, in the examples above with the subroutine call and callee, based on the subroutine call (i.e., caller) storing a guard word on the stack, the subroutine caller sets an indicator 1306 in the vector (which would be at the top of the vector stack at the time of setting the indicator). Similarly, if the callee is to store a guard word on its stack, it also sets an indicator 1308.
Since the stack is of a defined size, if necessary, any shifted out indicators may be stored in backup storage. If no backup storage is used, then those routines for which indicators may have been shifted out may be executed without guard word protection by shifting in “0” corresponding to an indication that no indicator should be checked, in accordance with at least one embodiment.
In yet a further embodiment, if it is known that all of the routines have stack guard protection (e.g., by performing the techniques described herein), then the facility is configured to load ‘1’, or a single bit indicator is used causing guard word protection to occur regardless of the stack indicators.
In the enable vector indicators example, the Store Guard Word Conditional and POPCHECK Conditional instructions may be used, but the logic is a bit different. In this example, instead of the condition being based on the guard word protection enablement indicator, the condition is based on a value of a stack indicator retrieved from the enable vector.
For instance, in this example, the Store Guard Word Conditional instruction stores the guard word in the stack, and then sets the stack indicator in the enable vector (e) to e.g., one (indicator(eTOS) is set to true, where eTOS is top of stack of enable vector)). One embodiment of logic associated with this example of the Store Guard Word Conditional instruction, referred to as STPGC-2, is described with reference to
Referring to
Further, in one example, the POPCHECK Conditional instruction verifies the guard word if the selected indicator indicates guard word protection (verify if indicator (eTOS+1), i.e., the indicator corresponding to the caller of the present routine, and reflecting whether the caller provided a stack guard word, is true). One embodiment of logic associated with this example of the POPCHECK Conditional instruction, referred to as POPCHECKC-2, is described with reference to
Referring to
Returning to INQUIRY 1502, if the indicator in the enable vector is not set, then the stack pointer is moved, STEP 1511, and processing continues to STEP 1512.
In additional to the above, the POPCHECKRET may also be conditional.
In at least one embodiment, when a callee does not perform a POPCHECK instruction, the caller's indicator (eTOS+1) is reset to indicate that a guard word is not provided by the caller, e.g., during execution of the return from subroutine instruction. This reflects that the present routine appears not enabled for the protective guard word facility, resulting in the overwriting of the guard word by the present callee, thereby likely not having skipped the stack guard word to prevent its corruption and future use by other callees of the caller of the present routine.
The above allows the interlinking of modules or routines with or without differing protection capabilities. In one embodiment, the indicator is on a per-routine basis. A push down stack (e.g., enable vector) is provided that tracks for each routine level whether its stack has been protected by a guardword. A call subroutine allocates a new entry on the stack, and initializes the entry to unprotected. A Store Guard Word instruction or other store protection word instruction is executed by the call subroutine that concurrently updates the push down stack to indicate that stack protection has been enabled for the routine's callees. When the stack has been protected by a caller, the callee executes a POPCHECK instruction or other verify protection word instruction to verify the guard word. Otherwise, verification is suppressed, in one example. Other embodiments are possible.
As described herein, the detection of corruption of stacks is facilitated. One embodiment of logic relating to detecting corruption of stacks is described with reference to
Referring to
Based on the checking, a determination is made as to whether the guard word has an expected value, STEP 1604. Based on determining the guard word has an unexpected value, providing an indication of corruption of the stack, STEP 1606.
In one example, at least the checking and the determining are performed via an instruction issued by the called routine, STEP 1608. The instruction is executed, STEP 1610, and the executing may include: obtaining the guard word from the stack, STEP 1612; moving a stack pointer of the stack such that the guard word no longer appears on the stack, STEP 1614; and performing one or more of the determining, the checking and the providing an indication, STEP 1616.
The executing further includes determining whether the calling routine supports use of the guard word to protect the return address, STEP 1618. Based on determining the calling routine supports use of the guard word, performing the obtaining, the moving and the performing, STEP 1620.
The guard word is provided, in one example, using a store guard word instruction that specifies an address for the guard word, STEP 1622.
Referring to
In a further aspect, a determination is made as to whether the calling routine and the called routine support use of the guard word to protect the return address, STEP 1632. Based on determining that the calling routine and the called routine support use of the guard word to protect the return address, performing one or more of the checking, the determining and the providing an indication, STEP 1634. Based on determining that at least one routine of the calling routine and the called routine does not support use of the guard word to protect the return address, terminating processing prior to the checking, STEP 1636.
In one embodiment, the determining whether the calling routine and the called routine support use of the guard word to protect the return address includes checking at least one indicator, STEP 1638. The at least one indicator may be stored in a vector of indicators, STEP 1640.
Although examples are described herein, other embodiments are possible. For instance, in one embodiment, guard words may not be allocated in leaf functions, which further reduces overhead of performing writes; and a guard word may not be checked if a return address was not stored in the stack, thereby reducing the overhead of checking.
In at least one embodiment, the guard word includes a “\0” character (or other appropriate terminator), further ensuring that most overflows would terminate due to a termination character. This avoids overflow attacks with most vulnerable (string) functions if a guard character is reconstructed, because overwriting the guard character “correctly” would implicitly terminate an overwrite attack at that point.
In one embodiment, the guard word is randomized during every execution, and initialized by the operating system when a new program is executed.
In a further aspect, stack protection may be disabled by a programmer, operator, supervisor user and/or other agent. In yet another embodiment, the protection may be disabled based on system load or based on other selected criteria.
Described herein is a low-overhead mechanism for protecting return addresses stored directly into a stack by a hardware instruction, such as a jump subroutine instruction used for instance in CISC architectures.
In one example, with the hardware-managed stack and subroutine call, the subroutine instruction deposits the return address to the top of stack, the caller deposits the guard word below the stack and the called function is to “skip” the guard word when allocating its own frame. Processing is provided to handle this situation.
In one aspect, the checking of the guard word comes before the retrieval and use of the return address, because the retrieval of the return address is directly linked with the transfer thereto—at which point it is too late to do the check. Hence, POPCHECKRET, i.e., an instruction retrieving the return word, then checking the guard word, then returning to the caller in a single instruction, enables security not previously provided. In another embodiment, a microarchitectural embodiment fuses a sequence of instructions to check the guard word and perform a return. POPCHECKRET (either as a single instruction or a fused sequence) can safely and without any period of an unprotected return address execute a check and return.
One or more aspects may relate to cloud computing.
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for loadbalancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
A cloud computing node may include a computer system/server, such as the one depicted in
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61; RISC (Reduced Instruction Set Computer) architecture based servers 62; servers 63; blade servers 64; storage devices 65; and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and stack protection processing 96.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
In addition to the above, one or more aspects may be provided, offered, deployed, managed, serviced, etc. by a service provider who offers management of customer environments. For instance, the service provider can create, maintain, support, etc. computer code and/or a computer infrastructure that performs one or more aspects for one or more customers. In return, the service provider may receive payment from the customer under a subscription and/or fee agreement, as examples. Additionally or alternatively, the service provider may receive payment from the sale of advertising content to one or more third parties.
In one aspect, an application may be deployed for performing one or more embodiments. As one example, the deploying of an application comprises providing computer infrastructure operable to perform one or more embodiments.
As a further aspect, a computing infrastructure may be deployed comprising integrating computer readable code into a computing system, in which the code in combination with the computing system is capable of performing one or more embodiments.
As yet a further aspect, a process for integrating computing infrastructure comprising integrating computer readable code into a computer system may be provided. The computer system comprises a computer readable medium, in which the computer medium comprises one or more embodiments. The code in combination with the computer system is capable of performing one or more embodiments.
Although various embodiments are described above, these are only examples. For example, computing environments of other architectures can be used to incorporate and use one or more embodiments. Further, different types of guard words may be used. Many variations are possible.
Further, other types of computing environments can benefit and be used. As an example, a data processing system suitable for storing and/or executing program code is usable that includes at least two processors coupled directly or indirectly to memory elements through a system bus. The memory elements include, for instance, local memory employed during actual execution of the program code, bulk storage, and cache memory which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
Input/Output or I/O devices (including, but not limited to, keyboards, displays, pointing devices, DASD, tape, CDs, DVDs, thumb drives and other memory media, etc.) can be coupled to the system either directly or through intervening I/O controllers. Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modems, and Ethernet cards are just a few of the available types of network adapters.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising”, when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below, if any, are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of one or more embodiments has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain various aspects and the practical application, and to enable others of ordinary skill in the art to understand various embodiments with various modifications as are suited to the particular use contemplated.
This application is a continuation of co-pending U.S. application Ser. No. 15/443,534, entitled “Caller Protected Stack Return Address in a Hardware Managed Stack Architecture”, filed Feb. 27, 2017, which is a continuation of co-pending U.S. application Ser. No. 14/989,397, entitled “Caller Protected Stack Return Address in a Hardware Managed Stack Architecture,” filed Jan. 6, 2016, which issued on Mar. 28, 2017, as U.S. Pat. No. 9,606,855 B1, each of which is hereby incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6301699 | Hollander et al. | Oct 2001 | B1 |
6912653 | Gohl | Jun 2005 | B2 |
6941473 | Etoh et al. | Sep 2005 | B2 |
7272748 | Conover et al. | Sep 2007 | B1 |
7380245 | Lovette | May 2008 | B1 |
7467272 | Genty et al. | Dec 2008 | B2 |
7546587 | Man et al. | Jun 2009 | B2 |
7581089 | White | Aug 2009 | B1 |
7613954 | Grey et al. | Nov 2009 | B2 |
7827612 | Saito | Nov 2010 | B2 |
8099636 | Tilton et al. | Jan 2012 | B2 |
8104021 | Erlingsson et al. | Jan 2012 | B2 |
8245002 | Attinella et al. | Aug 2012 | B2 |
8412953 | Lerouge et al. | Apr 2013 | B2 |
8458487 | Palgon et al. | Jun 2013 | B1 |
8479005 | Kojima et al. | Jul 2013 | B2 |
8499354 | Satish et al. | Jul 2013 | B1 |
8806439 | Asher | Aug 2014 | B1 |
8850408 | Hinkle | Sep 2014 | B2 |
9026866 | Balasubramanian et al. | May 2015 | B2 |
9092564 | Wischik et al. | Jul 2015 | B2 |
9251373 | AlHarbi et al. | Feb 2016 | B2 |
9495237 | Gschwind et al. | Nov 2016 | B1 |
9514285 | Durham et al. | Dec 2016 | B2 |
9514301 | Gschwind | Dec 2016 | B1 |
9576128 | Gschwind | Feb 2017 | B1 |
9582274 | Gschwind | Feb 2017 | B1 |
9606855 | Duvalsaint et al. | Mar 2017 | B1 |
9891919 | Duvalsaint et al. | Feb 2018 | B2 |
9940475 | Gschwind | Apr 2018 | B2 |
10114971 | Gschwind | Oct 2018 | B2 |
10120745 | Duvalsaint et al. | Nov 2018 | B2 |
10228992 | Gschwind et al. | Mar 2019 | B2 |
10229266 | Gschwind | Mar 2019 | B2 |
20020144141 | Edwards | Oct 2002 | A1 |
20040103252 | Lee | May 2004 | A1 |
20040133777 | Kiriansky et al. | Jul 2004 | A1 |
20060161739 | Genty et al. | Jul 2006 | A1 |
20070089088 | Borde | Apr 2007 | A1 |
20070180524 | Choi | Aug 2007 | A1 |
20080140884 | Enbody et al. | Jun 2008 | A1 |
20130013965 | Guillemin et al. | Jan 2013 | A1 |
20130283017 | Wilkerson et al. | Oct 2013 | A1 |
20140096247 | Fischer | Apr 2014 | A1 |
20140283040 | Wilkerson et al. | Sep 2014 | A1 |
20140283088 | AlHarbi et al. | Sep 2014 | A1 |
20150007266 | Wang | Jan 2015 | A1 |
20150020201 | Kishi | Jan 2015 | A1 |
20150067279 | Costin | Mar 2015 | A1 |
20150220453 | Heisswolf et al. | Aug 2015 | A1 |
20150370560 | Tan | Dec 2015 | A1 |
20160094552 | Durham et al. | Mar 2016 | A1 |
20160132374 | Mayer et al. | May 2016 | A1 |
20160147586 | Mayer | May 2016 | A1 |
20160171211 | Chen et al. | Jun 2016 | A1 |
20160196428 | Momot | Jul 2016 | A1 |
20160224784 | Krishnaswamy et al. | Aug 2016 | A1 |
20170192833 | Gschwind et al. | Jul 2017 | A1 |
20170192834 | Gschwind et al. | Jul 2017 | A1 |
20170192836 | Duvalsaint et al. | Jul 2017 | A1 |
20170192837 | Gschwind | Jul 2017 | A1 |
20170193219 | Gschwind | Jul 2017 | A1 |
20170193224 | Gschwind | Jul 2017 | A1 |
20180096161 | Gschwind | Apr 2018 | A1 |
20190108085 | Gschwind et al. | Apr 2019 | A1 |
Number | Date | Country |
---|---|---|
10-20070056862 | Jun 2007 | KR |
Entry |
---|
Mell, Peter and Tim Grance, “The NIST Definition of Cloud Computing,” National Institute of Standards and Technology, Information Technology Laboratory, Special Publication 800-145, Sep. 2011, pp. 1-7. |
IBM, “z/Architecture—Principles of Operation,” IBM Publication No. SA22-7832-10, Eleventh Edition, Mar. 2015, pp. 1-1732. |
IBM, “Power ISA—V 2.07B,” Apr. 9, 2015, pp. 1-1527. |
Corliss, et al., “Using DISE to Protect Return Addresses From Attack,” ACM SIGARCH Computer Architecture News—Special Issue: Workshop on Architectural Support for security and Anti-Virus, vol. 33, Issue 1, Mar. 2005, pp. 65-72. |
Kumar et al., “A System for Coarse Grained Memory Protection in Tiny Embedded Processors,” 44th ACM/IEEE Design Automation Conference, Jun. 2007, pp. 218-223. |
Microsoft et al., “Predicting Buffer Overflows Using Shimming Technology,” IPCOM000133490, no date information available, pp. 1-10 (+ cover). |
IBM, Hardware Support for Avoiding Buffer Overflow Attacks, Jun. 2007, p. 1 (+ cover). |
IBM, “System Level Overflow Prevention (SLOP),” IPCOM000126868D, Aug. 2005, pp. 1-2 (+ cover). |
Houghtalen, Sr, “Hardware Stack Overflow Monitor,” IPCOM000066460D, Mar. 1979, pp. 1-2. |
Cowan, et al., “StackGuard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks,” Proceedings of the 7thUSENIX Security Symposium, Jan. 1998, pp. 1-16. |
IBM et al., “Inside and Outside Protection Keys with Dynamic Relocation,” IPCOM000090679D, Jun. 1969, pp. 1-2 (+ cover). |
Lin, Wang, “Study on the Principle and Defense of Buffer Overflow Attacks,” International Conference on Graphic and Image Processing, Mar. 2013, pp. 1-7. |
Gschwind, Michael K., “Interlinking Routines with Differing Protections Using Stack Indicators”, U.S. Appl. No. 15/819,422, filed Nov. 21, 2017, pp. 1-62. |
Duvalsaint et al., “List of IBM Patents or Patent Applications Treated as Related”, U.S. Appl. No. 15/830,095, filed Dec. 4, 2017, dated Dec. 21, 2017 (2 pages). |
Gschwind, et al., “Providing Instructions to Facilitate Detection of Corrupt Stacks,” U.S. Appl. No. 16/213,215, filed Dec. 7, 2018 (pp. 1-68). |
International Search Report and Written Opinion for PCTIB2016057979 dated Apr. 25, 2017, pp. 1-14. |
Duvalsaint et al., “Replacement List of IBM Patents or Patent Applications Treated as Related” for U.S. Appl. No. 15/830,095, filed Dec. 4, 2017, dated Mar. 20, 2019 (3 pages). |
Cowan et al. “Stackguard: Automatic adaptive detection and prevention of buffer-overflow attacks.” USENIX Security Symposium. vol. 98. 1998. |
Rao et al. “BFWindow: Speculatively Checking Data Property Consistency against Buffer Overflow Attacks.” IEICE Transactions of Information and Systems 99.8 (2016): 2002-2009. |
Petsios, Theofilos, et al., “Dynaguard: Armoring Canary-Based Protections Against Brute-Force Attacks,” Proceedings of the 31st Annual Computer Security Applications Conference, ACM, Dec. 2015, pp. 351-360. |
Marco-Gisbert, Hector et al., “Preventing Brute Force Attacks Against Stack Canary Protection on Networking Servers,” 2013 IEEE 12th International Symposium on Network Computing and Applications, May 2013, pp. 243-250. |
Frantzen, Michael et al., “StackGhost: Hardware Facilitated Stack Protection,” USENIX Security Symposium, vol. 112, Aug. 2011, pp. 1-11. |
Number | Date | Country | |
---|---|---|---|
20180088949 A1 | Mar 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15443534 | Feb 2017 | US |
Child | 15830095 | US | |
Parent | 14989397 | Jan 2016 | US |
Child | 15443534 | US |