diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-24 00:27:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-24 00:27:28 +0000 |
commit | a294d4e362c79943729544b2c37f98be3a6f0dac (patch) | |
tree | 8794f893081a4e5c2206a94c71a5af5f035f04b7 /sys/i386/linux/imgact_linux.c | |
parent | f540aca98452ae3328bb85b3019b403196f8d16d (diff) | |
download | FreeBSD-src-a294d4e362c79943729544b2c37f98be3a6f0dac.zip FreeBSD-src-a294d4e362c79943729544b2c37f98be3a6f0dac.tar.gz |
Proc locking.
Diffstat (limited to 'sys/i386/linux/imgact_linux.c')
-rw-r--r-- | sys/i386/linux/imgact_linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c index c560d74..48e14f0 100644 --- a/sys/i386/linux/imgact_linux.c +++ b/sys/i386/linux/imgact_linux.c @@ -104,6 +104,7 @@ exec_linux_imgact(imgp) /* * text/data/bss must not exceed limits */ + mtx_assert(&Giant, MA_OWNED); if (a_out->a_text > MAXTSIZ || a_out->a_data + bss_size > imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur) return (ENOMEM); |