summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_gzip.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-24 00:27:28 +0000
committerjhb <jhb@FreeBSD.org>2001-01-24 00:27:28 +0000
commita294d4e362c79943729544b2c37f98be3a6f0dac (patch)
tree8794f893081a4e5c2206a94c71a5af5f035f04b7 /sys/kern/imgact_gzip.c
parentf540aca98452ae3328bb85b3019b403196f8d16d (diff)
downloadFreeBSD-src-a294d4e362c79943729544b2c37f98be3a6f0dac.zip
FreeBSD-src-a294d4e362c79943729544b2c37f98be3a6f0dac.tar.gz
Proc locking.
Diffstat (limited to 'sys/kern/imgact_gzip.c')
-rw-r--r--sys/kern/imgact_gzip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c
index a3a6a68..676d37f 100644
--- a/sys/kern/imgact_gzip.c
+++ b/sys/kern/imgact_gzip.c
@@ -206,6 +206,7 @@ do_aout_hdr(struct imgact_gzip * gz)
/*
* text/data/bss must not exceed limits
*/
+ mtx_assert(&Giant, MA_OWNWED);
if ( /* text can't exceed maximum text size */
gz->a_out.a_text > MAXTSIZ ||
OpenPOWER on IntegriCloud