Reading by user-level processes
AssigneeHewlett Packard Enterprise Development LP
InventorsMark Lillibridge, Joseph Tucek
Life of this patent
Estimating the term…
Abstract
Examples described herein relate to a memory structure by a user-level process. In an example, a method includes mapping in a read mode, by a kernel, a memory structure and a lock associated with a portion of the memory structure into an address space of a user-level process based on the user-level process being untrusted. The user-level process reads the portion of the memory structure outside of the kernel and determines a state of the lock after the reading of the portion. A write to the portion during the reading of the portion is detected based on the state of the lock.
Claims20
A method comprising:
- mapping in a read mode, by a kernel, a memory structure and a lock associated with a portion of the memory structure into an address space of a user-level process based on the user-level process being untrusted;
- reading the portion of the memory structure by the user-level process, wherein the reading is performed outside of the kernel;
- determining a first state of the lock after the reading of the portion;
- and
- detecting a write to the portion during the reading of the portion based on the first state of the lock.
A non-transitory computer-readable memory resource storing instructions that when executed cause a processing resource to:
- map, in a read mode, a memory structure and a lock associated with a portion of the memory structure into an address space of a user-level process based on a trust level of the user-level process;
- directly read the portion of the memory structure by the user-level process;
- directly read a first state of the lock by the user-level process after the portion is read;
- and
- detect a write to the portion during the read of the portion based on the first state of the lock.
A non-transitory computer-readable memory resource storing instructions that when executed cause a processing resource to:
- directly read, by a user-level process, a portion of a file system that is mapped into an address space of the user-level process, wherein the file system is mapped in a read mode based on a trust level of the user-level process;
- determine a first state of a lock associated with the portion of the file system after the read of the portion file system by the user-level process;
- and
- detect a write of the portion of the file system during the read of the portion based on the determined first state of the lock.
Dependencies are inferred from the claim text.