Subject: User can take down system - Re: "diff" loses on large files?
To: Chuck Silvers <chuq@chuq.com>
From: Mike Cheponis <mac@Wireless.Com>
List: port-i386
Date: 07/12/2001 07:58:17
Thanks, Chuck.

You know, I found that there is no need to be superuser to bring down the
system - any unpriviliged user can do it:

NetBSD 1.5.1_BETA2 (GENERIC) #41: Wed May 16 01:28:41 CEST 2001
    he@nsa.uninett.no:/usr/src/sys/arch/i386/compile/GENERICcpu0: AMD Athlon Model 4 (Thunderbird) (686-class), 1100.12 MHz
total memory = 511 MB
avail memory = 468 MB
using 6574 buffers containing 26296 KB of memory

$ ll *odx
3065307 -rw-r--r--  1 mac  user  661,969,123 Jul 11 21:45 bad.odx
3065315 -rw-r--r--  1 mac  user  661,969,123 Jul 11 21:45 ok.odx
$ ulimit -d 999999
$ ulimit -a
cpu time (seconds)         unlimited
file size (blocks)         unlimited
data seg size (kbytes)     999999
stack size (kbytes)        4096
core file size (blocks)    unlimited
resident set size (kbytes) 501000
locked-in-memory size (kb) 168718
processes                  80
file descriptors           64
$ diff *odx /tmp/odx.diff

(system panics at this point).

Thanks again -Mike



On Thu, 12 Jul 2001, Chuck Silvers wrote:


however the panic is something that definitely needs to be fixed,
and I'll look into that in 10 days when I get back from vacation
(if no one else fixes it while I'm gone).

-Chuck