Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
procfs: populate maps file with i-node numbers
This patch refines the implementation of procfs to generate maps file that contains correct file i-node numbers instead of 0s for file VMAs as shown below: 0-0 ---p 00000000 00:00 0 100000000000-100000001000 r--p 00000000 00:00 3 /libvdso.so 100000001000-100000002000 r-xp 00001000 00:00 3 /libvdso.so 100000002000-100000003000 r--p 00002000 00:00 3 /libvdso.so 100000003000-100000004000 r--p 00002000 00:00 3 /libvdso.so 100000004000-100000005000 rw-p 00003000 00:00 3 /libvdso.so 100000005000-100000007000 r--p 00000000 00:00 6 /cat 100000007000-10000000c000 r-xp 00002000 00:00 6 /cat 10000000c000-10000000e000 r--p 00007000 00:00 6 /cat 10000000f000-100000010000 r--p 00009000 00:00 6 /cat 100000010000-100000011000 rw-p 0000a000 00:00 6 /cat 200000000000-200000001000 ---p 00000000 00:00 0 200000001000-200000100000 rw-p 00000000 00:00 0 200000100000-200000101000 ---p 00000000 00:00 0 200000101000-200000200000 rw-p 00000000 00:00 0 800000000000-800000000000 ---p 00000000 00:00 0 It does so by capturing and saving the file i-node number when constructing file_vma so that it can be used when generating /proc/self/maps. Signed-off-by: Waldemar Kozaczuk <[email protected]> Message-Id: <[email protected]>
- Loading branch information