diff options
Diffstat (limited to 'sys/compat/svr4/imgact_svr4.c')
-rw-r--r-- | sys/compat/svr4/imgact_svr4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/svr4/imgact_svr4.c b/sys/compat/svr4/imgact_svr4.c index a244d7b..ae4f7d2 100644 --- a/sys/compat/svr4/imgact_svr4.c +++ b/sys/compat/svr4/imgact_svr4.c @@ -101,6 +101,8 @@ exec_svr4_imgact(imgp) /* text + data can't exceed file size */ if (a_out->a_data + a_out->a_text > imgp->attr->va_size) return (EFAULT); + /* For p_rlimit below. */ + mtx_assert(&Giant, MA_OWNED); /* * text/data/bss must not exceed limits */ |