Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159665 - vdso page is no longer mapped for a.out binaries in kernel 2.6.18
Summary: vdso page is no longer mapped for a.out binaries in kernel 2.6.18
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard: linux-2.6.18-regression
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-01 18:39 UTC by Jörg Ahrens
Modified: 2007-03-13 12:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Ahrens 2007-01-01 18:39:29 UTC
In kernel 2.6.18 the vdso page is no longer mapped for a.out binaries.
For instance a program using sleep will sigsegv on delivery of SIGALRM (to be precise: on return from signal handling). I tested this using a static a.out binary. This program does work in 2.6.17 . 

cat /proc/pid/smaps does show that vdso is not mapped in 2.6.18 for an a.out binary. I had a look at fs/binfmt_elf.c and found that the vdso pages is mapped using arch_setup_additional_pages from arch/i386/kernel/sysenter.c for elf.

I did a test calling arch_setup_additional_pages from fs/binfmt_aout.c with positive result. 

As arch_setup_additional_pages is defined in arch/i368-asm/elf.h only, I see no clean way to provide a patch for fs/binfmt_aout.c. 

I investigated this using vanilla kernels and check gentoo-sources-2.6.18-r3.
Comment 1 Jörg Ahrens 2007-01-02 13:46:22 UTC
I checked vanilla 2.6.19.1: the bug is still there.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-01-02 14:04:53 UTC
But 2.6.17 is ok?
Comment 3 Jörg Ahrens 2007-01-03 12:55:50 UTC
Yes, I checked vanilla 2.6.17.14 and the test program does work and /proc/pid/smaps shows vdso mapping. 

Shall I provide a simple a.out test program ? A working gcc 2.7 will be hard to find nowadays.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-01-26 14:30:35 UTC
Please file this upstream at http://bugzilla.kernel.org clearly marking it as a 2.6.18 regression. Post the new bug URL here.

If you don't get any response after a few days and you are really keen, you could do a bisection to find the exact commit which introduced the issue. http://www.reactivated.net/weblog/archives/2006/01/using-git-bisect-to-find-buggy-kernel-patches/
Comment 5 Jörg Ahrens 2007-01-26 22:46:58 UTC
The upstream bug is
http://bugzilla.kernel.org/show_bug.cgi?id=7891
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-03-13 12:41:36 UTC
.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-03-13 12:42:00 UTC
This is fixed in gentoo-sources-2.6.20-r2