* Suspicious RLIM_INFINITY use, 2.4.17
@ 2002-02-05 20:17 Richard Zidlicky
0 siblings, 0 replies; only message in thread
From: Richard Zidlicky @ 2002-02-05 20:17 UTC (permalink / raw)
To: Linux Kernel ML
Hi,
I came acros this (2.4.17):
fs/binfmt_aout.c:
rlim = current->rlim[RLIMIT_DATA].rlim_cur;
if (rlim >= RLIM_INFINITY)
rlim = ~0;
if (ex.a_data + ex.a_bss > rlim)
return -ENOMEM;
this looks like it will disable any limit checks, but no similar
code is binfmt_elf so maybe it should be removed altogether?
--- mm/mmap.c.rz Sat Dec 29 01:02:57 2001
+++ mm/mmap.c Tue Feb 5 19:53:59 2002
@@ -167,7 +167,7 @@
/* Check against rlimit.. */
rlim = current->rlim[RLIMIT_DATA].rlim_cur;
- if (rlim < RLIM_INFINITY && brk - mm->start_data > rlim)
+ if (rlim != RLIM_INFINITY && brk - mm->start_data > rlim)
goto out;
/* Check against existing mmap mappings. */
Richard
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-05 21:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-05 20:17 Suspicious RLIM_INFINITY use, 2.4.17 Richard Zidlicky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox