PV> error = elf_map(....)
PV> but nobody bothers with checking error value, it even tries it
PV> to use as an offset if stars are in wrong constellation.
PV> If you could add these lines below the call:
PV> if ((unsigned long)error >= (unsigned long)(-256)) {
PV> set_fs(old_fs);
PV> printk(KERN_DEBUG "Something went wrong with elf_map()\n");
PV> kfree(elf_phdata);
PV> send_sig(SIGSEGV, current, 0);
PV> return 0;
PV> }
PV> and then report results...
It fixes reboot for me. Now vmlinux segfaults, and I see
"Something went wrong with elf_map()" in the log.
-- Best regards, VDA mailto:VDA@port.imtp.ilyichevsk.odessa.ua
- 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/