Look at fs/binfmt_elf.c, at line 642 (in -ac2). There is
error = elf_map(....)
but nobody bothers with checking error value, it even tries it
to use as an offset if stars are in wrong constellation.
If you could add these lines below the call:
if ((unsigned long)error >= (unsigned long)(-256)) {
set_fs(old_fs);
printk(KERN_DEBUG "Something went wrong with elf_map()\n");
kfree(elf_phdata);
send_sig(SIGSEGV, current, 0);
return 0;
}
and then report results...
Petr Vandrovec
(not willing to test it myself)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/