Re: Kernel oops in read()

From: John Goerzen (jgoerzen@complete.org)
Date: Thu Jun 01 2000 - 20:19:16 EST


Tim Waugh <twaugh@redhat.com> writes:

> > 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.

I guess in that case, we can conclude that it is an Alpha-only
problem.

-- John

>
> 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.
> */

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
The 130,428,945th prime number is 2,694,763,207.

- 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:14 EST