public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: System reset on Kernel 2.4.10
@ 2001-10-02 23:02 Petr Vandrovec
  2001-10-02 21:41 ` Petr Vandrovec
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Petr Vandrovec @ 2001-10-02 23:02 UTC (permalink / raw)
  To: VDA; +Cc: linux-kernel

On  2 Oct 01 at 23:52, VDA wrote:
> V> Straced vmlinux does not reboot.
> V> Kernel: 2.4.10+ext3+preempt
> 
> Well... sometimes it reboots too.
> Once it rebooted ~10 mins after strace (system was at zero load).
> Also it rebooted after two strace's in succession.

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)
                                    

^ permalink raw reply	[flat|nested] 12+ messages in thread
* System reset on Kernel 2.4.10
@ 2001-10-02 19:22 Carles Pina i Estany
  2001-10-02 19:22 ` Mika Liljeberg
  2001-10-02 21:17 ` Carles Pina i Estany
  0 siblings, 2 replies; 12+ messages in thread
From: Carles Pina i Estany @ 2001-10-02 19:22 UTC (permalink / raw)
  To: linux-kernel


Hi,

I have compiled Kernel 2.4.10 in a Debian Woody/Sid with a Pentium 2 450.

The Kernel works fine. But for error I execute /usr/src/linux/vmlinux as
root user. Then the system is rebooted (without unmounting anything)

Curious.

Then I execute vmlinux as normal user, and the system is rebooted!!!

If I execute this file in Kernel 2.4.6, then tell me "Segmentation
fault"

I copy this file to my laptop computer with Kernel 2.4.10 (Pentium 166
MMX) and execute as user. And reboot the system!

With a 2.4.9 Kernel, tell me "Segmentation fault".

A friend with Pentium 3, too reboot his system.

My /proc/cpuinfo of computer laptop:

carles@pinux:~$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 5
model           : 4
model name      : Pentium MMX
stepping        : 4
cpu MHz         : 167.047
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : yes
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 mmx
bogomips        : 333.41

I do:

dd if=vmlinux of=hang bs=1k count=10

and this "mini-file" too reboot the system.

You can get this file here:
	http://www.salleurl.edu/~is08139/hang.html
(10 k)

I think that it is some bad instruction for CPU. But I think that Kernel
would control no? and a bad instruction in Pentium MMX (laptop), Pentium
3, and Pentium 2?

Thank you very much, and excuse me my bad English.

If you need more information about systems, configuration, etc. tell me.

----
Carles Pina i Estany | Nick: Pinux / Pine / Teufeus
http://www.salleURL.edu/~is08139/

   Tienes menos vocabulario que el diccionario de tarzán



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-10-03  7:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-02 23:02 System reset on Kernel 2.4.10 Petr Vandrovec
2001-10-02 21:41 ` Petr Vandrovec
2001-10-02 22:15   ` Mika Liljeberg
2001-10-02 22:19   ` Kenneth Johansson
2001-10-02 22:50 ` Andreas Dilger
2001-10-03  8:49 ` VDA
  -- strict thread matches above, loose matches on Subject: below --
2001-10-02 19:22 Carles Pina i Estany
2001-10-02 19:22 ` Mika Liljeberg
2001-10-02 21:09   ` VDA
2001-10-02 21:06     ` Kenneth Johansson
2001-10-02 21:52     ` VDA
2001-10-02 21:17 ` Carles Pina i Estany

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox