summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-dev.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-08-20 23:09:10 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-21 00:40:31 +0200
commitff9bc512f198eb47204f55b24c6fe3d36ed89592 (patch)
treee55d1639a5a3f8c0ef1827fae4ff8529d4ffef04 /drivers/rtc/rtc-dev.c
parentbrd: fix name argument of unregister_blkdev() (diff)
downloadlinux-ff9bc512f198eb47204f55b24c6fe3d36ed89592.tar.xz
linux-ff9bc512f198eb47204f55b24c6fe3d36ed89592.zip
binfmt_misc: fix false -ENOEXEC when coupled with other binary handlers
In case the binfmt_misc binary handler is registered *before* the e.g. script one (when for example being compiled as a module) the following situation may occur: 1. user launches a script, whose interpreter is a misc binary; 2. the load_misc_binary sets the misc_bang and returns -ENOEVEC, since the binary is a script; 3. the load_script_binary loads one and calls for search_binary_hander to run the interpreter; 4. the load_misc_binary is called again, but refuses to load the binary due to misc_bang bit set. The fix is to move the misc_bang setting lower - prior to the actual call to the search_binary_handler. Caused by the commit 3a2e7f47 (binfmt_misc.c: avoid potential kernel stack overflow) Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Reported-by: Kirill A. Shutemov <kirill@shutemov.name> Tested-by: Kirill A. Shutemov <kirill@shutemov.name> Cc: <stable@kernel.org> [2.6.26.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions