From owner-cvs-sys Mon Dec 23 02:56:40 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA28761 for cvs-sys-outgoing; Mon, 23 Dec 1996 02:56:40 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id CAA28755; Mon, 23 Dec 1996 02:56:32 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id VAA19380; Mon, 23 Dec 1996 21:53:01 +1100 Date: Mon, 23 Dec 1996 21:53:01 +1100 From: Bruce Evans Message-Id: <199612231053.VAA19380@godzilla.zeta.org.au> To: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sys@freefall.freebsd.org, jkh@freefall.freebsd.org Subject: Re: cvs commit: src/sys/i386/linux imgact_linux.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified: sys/i386/linux imgact_linux.c > Log: > *Ahem* - opt_rlimit.h does not exist in the LKM case. This was another > 2.2 build-breaker.. :( > > Revision Changes Path > 1.18 +3 -1 src/sys/i386/linux/imgact_linux.c The fix is wrong too. Now the LKM checks a possibly-different limit than the rest of the kernel. The correct fix seems to be particularly easy in this case. Old code: ! if (a_out->a_text > MAXTSIZ || a_out->a_data + bss_size > MAXDSIZ || ! a_out->a_data+bss_size > imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur) ! return (ENOMEM); Just remove the bogus check against MAXDSIZ. The correct limit (rlim_cur) is already checked. rlim_cur <= MAXDSIZ, so checking against MAXDSIZ is currently a no-op. Most of the image activators have the same bloat. imgact_elf.c has a more bogus limit involving 2*MAXDSIZ and not involving MAXTSIZ or rlimits. Bruce