lkml.org 
[lkml]   [2001]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: System reset on Kernel 2.4.10
Hello Petr,
Wednesday, October 03, 2001, 2:02:28 PM, you wrote:
PV> Look at fs/binfmt_elf.c, at line 642 (in -ac2). There is

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/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.073 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site