Re: zzuf :: memory limits established with setrlimit are not applied

2024-12-10 Thread Samuel Thibault
Hello, Diego Nieto Cid, le mar. 10 déc. 2024 08:41:57 -0300, a ecrit: > Is this a known issue? Yes, it's listed among the todo-list on https://darnassus.sceen.net/~hurd-web/contributing/ because that makes various testsuites put build boxes on their knees (and is what you'd want anyway) Samuel

Re: zzuf :: memory limits established with setrlimit are not applied

2024-12-10 Thread Diego Nieto Cid
El mar, 10 dic 2024 a las 8:41, Diego Nieto Cid () escribió: > > Is this a known issue? (besides bug 43320 which involves a child process [1]) > Ok, I just found this comment in `sysdep/mach/hurd/setrlimit.c`: /* Even though most limits do nothing, there is no inheritance, and hard limit

zzuf :: memory limits established with setrlimit are not applied

2024-12-10 Thread Diego Nieto Cid
Hi, One of the zzuf tests involves setting a memory limit with `setrlimit` and then running a program to exhaust the available memory. While zzuf does some fancy forking and stdin fuzzing before running such a program, I could manage to reduce the code to a simpler version [2]. On GNU/Linux the m