US 11,947,465 B2
Buffer overflow trapping
Michael Peter Lyons, Arlington, MA (US); Andrew C. M. Hicks, Wappingers Falls, NY (US); Tynan J. Garrett, Poughkeepsie, NY (US); and Miles C. Pedrone, Wappingers Falls, NY (US)
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Oct. 13, 2020, as Appl. No. 17/068,915.
Prior Publication US 2022/0114106 A1, Apr. 14, 2022
Int. Cl. G06F 21/00 (2013.01); G06F 9/455 (2018.01); G06F 12/1027 (2016.01); G06F 21/52 (2013.01); G06F 21/56 (2013.01)
CPC G06F 12/1027 (2013.01) [G06F 9/45558 (2013.01); G06F 21/52 (2013.01); G06F 21/566 (2013.01); G06F 2009/45583 (2013.01); G06F 2212/68 (2013.01); G06F 2221/034 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A method comprising:
receiving, at an operating system executing on a processor, a write request from a program to write data to a memory, the write request comprising a virtual memory address and the data;
determining that the virtual memory address is not assigned to a physical memory address;
based on a determination that the virtual address is not assigned to a physical memory address, initiating recording of state information about the data and the program, wherein the state information includes an identifier of the program, addresses of memory being accessed by the program, and a loader associated with execution of the program;
based on the determining, assigning the virtual memory address to a physical memory address in an overflow memory;
writing the data to the physical memory address in the overflow memory; and
returning an indication to the program that the data was successfully written to the memory, wherein subsequent requests by the program to access the virtual memory address are directed to the physical memory address in the overflow memory.