Re: Kernel oops in read()

From: Tim Waugh (twaugh@redhat.com)
Date: Thu Jun 01 2000 - 15:52:55 EST


On Thu, Jun 01, 2000 at 01:34:05PM -0500, John Goerzen wrote:

> This is kernel 2.2.15 or 2.2.16pre7 (same on both). The following
> test program, run as *ANY* user on the system (not just root), causes
> a segfault (expected) and a kernel oops every time it is run. (Note:
> this malloc is supposed to fail. If it gets that much RAM on your
> system, buy a slower box <g>)

Doesn't happen here: 2.2.16pre7 on Intel Pentium.

open("/bin/bash", O_RDONLY) = 3
lseek(3, 98, SEEK_SET) = 98
mmap(NULL, 1768853504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
brk(0) = 0x804968c
brk(0x717316a4) = 0x804968c
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, 0, 1768849408) = -1 EFAULT (Bad address)
read(3, 0, 1768849408) = -1 EFAULT (Bad address)
[...]

Tim.
*/



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:13 EST