Subject: Re: User can take down system - Re: "diff" loses on large files?
To: Mike Cheponis <mac@Wireless.Com>
From: Chuck Silvers <chuq@chuq.com>
List: port-i386
Date: 07/22/2001 00:02:31
hi,
 
I tried to reproduce this on both a -current and a 1.5.1 kernel and
neither one crashed (though the 1.5.1 kernel hung, which is a known
problem for the 1.5 branch).

could you send me a dump from either a 1.5.1 (preferably the actual
release, not a pre-release) or -current kernel, built with
        makeoptions DEBUG="-g"

thanks,
-Chuck 


On Thu, Jul 12, 2001 at 07:58:17AM -0700, Mike Cheponis wrote:
> 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