Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shm.c: Fix segmentation fault when using offset
The following command can trigger the bug numactl --offset 4096 --length 65536 --file xxx -p0 --touch When we create a shm file, we just consider shmlen, but not consider shmoffset, resulting in the mapped memory is no within the scope of the new shm file.
- Loading branch information