Subject: kern/36951: resource limits are broken for non-superuser.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <christos@zoulas.com>
List: netbsd-bugs
Date: 09/08/2007 23:35:00
>Number: 36951
>Category: kern
>Synopsis: resource limits are broken for non-superuser.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 08 23:35:00 +0000 2007
>Originator: Christos Zoulas
>Release: NetBSD 4.99.31
>Organization:
None
>Environment:
System: NetBSD shiny.astron.com 4.99.31 NetBSD 4.99.31 (SHINY) #88: Sun Sep 9 01:17:19 EEST 2007 christos@shiny.astron.com:/usr/src/sys/arch/i386/compile/SHINY i386
Architecture: i386
Machine: i386
>Description:
Regular user rlim_max is busted.
>How-To-Repeat:
before:
[2:25am] 10001>uname -a
NetBSD rebar.astron.com 4.99.1 NetBSD 4.99.1 (ASTRON) #2: Fri Sep 8 15:10:53 EDT 2006 christos@rebar.astron.com:/usr/src/sys/arch/i386/compile/ASTRON i386
[2:25am] 10002>sysctl -a | grep datasize
proc.curproc.rlimit.datasize.soft = 268435456
proc.curproc.rlimit.datasize.hard = 3221225472
now:
[2:27am] 2085>uname -a
NetBSD shiny.astron.com 4.99.31 NetBSD 4.99.31 (SHINY) #88: Sun Sep 9 01:17:19 EEST 2007 christos@shiny.astron.com:/usr/src/sys/arch/i386/compile/SHINY i386
[2:27am] 2086>sysctl -a | grep datasize
proc.curproc.rlimit.datasize.soft = 268435456
proc.curproc.rlimit.datasize.hard = 268435456
>Fix:
?