Bug 11318
Summary: | /proc/self/maps doesn't display the real file offset | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | Clement Calmels (cboulte) |
Component: | i386 | Assignee: | platform_i386 |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.26 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
a program that use mmap64 to mmap with an offset > 2^32 and display the associated line in /proc/self/maps
A way to correct the /proc/self/maps output |
Description
Clement Calmels
2008-08-13 06:39:11 UTC
Created attachment 17218 [details]
a program that use mmap64 to mmap with an offset > 2^32 and display the associated line in /proc/self/maps
Compile:
gcc -g -Wall -O2 src/mmap64.c -o mmap64
Result on a 2.6.26:
$ ./mmap64
offset = 100000000
b7efd000-b7efe000 r--p 00000000 00:0e 2050 /dev/zero
Created attachment 17219 [details]
A way to correct the /proc/self/maps output
Test on 2.6.26, i386 and x86_64.
OK. Please submit patches via email, as per Documentation/SubmittingPatches. cc this one to linux-kernel@vger.kernel.org and to akpm@linux-foundation.org thanks. Merged proc-self-maps-doesnt-display-the-real-file-offset.patch into -mm. |