hard core limit

hard core limit

Post by Ronald Fische » Fri, 30 Mar 2001 18:01:18



Can someone tell me how to set the hard limit for coredumpsize on a Unix
SVR4.2 system? I thought there should be some table in /etc or
/etc/security, but did not find anything suitable.

Ronald
--

[now at: Siemens ICM N MR UR DE 6, phone: +49(Germany)+89-722-23368]
http://profiles.yahoo.com/ronny_fischer/
http://fusshuhn.ourfamily.com/cppincomp.html

 
 
 

hard core limit

Post by Gaby Horni » Fri, 30 Mar 2001 20:18:17



> Can someone tell me how to set the hard limit for coredumpsize on a Unix
> SVR4.2 system? I thought there should be some table in /etc or
> /etc/security, but did not find anything suitable.

man ulimit

Mfg, Gaby
--

ICQ: 105106979

 
 
 

1. setrlimit incorrectly allows hard limits to exceed soft limits

Hi,

In 2.4.19 (also 2.5.46) setrlimit code only ever makes a comparison to
check the old soft limit with the new soft limit and the new hard
limit with the old hard limit.  There is never a check to ensure the
new soft limit never exceeds the new hard limit.

Just try "ulimit -H -m 10000" for memory limits that were not
previously set.  You end up with (hard limit = 10000) < (soft limit =
unlimited).

Fix is trivial.

--- sys.c       Sat Aug  3 10:39:46 2002

        if (resource >= RLIM_NLIMITS)
                return -EINVAL;
+       if (new_rlim.rlim_cur > new_rlim.rlim_max)
+               return -EINVAL;
        if(copy_from_user(&new_rlim, rlim, sizeof(*rlim)))
                return -EFAULT;
        old_rlim = current->rlim + resource;

--
                        Kingsley
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. WinModems and Linux

3. How Do I do the whole ANSI colour thing?

4. Core-file limit under bash persists at zero

5. Linux on Atari port

6. limiting core file dump sizes under the Bourne shell

7. "user" color in StarOffice 5.2

8. How to limit the size of Core?

9. Altering Process Resource Limit Tunables to get zero byte core files

10. limiting core dump size in ksh

11. Q: Where is core-size limit be set to zero

12. limiting core in korn shell