From nobody Tue Dec 14 21:19:55 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4298E18E1178; Tue, 14 Dec 2021 21:19:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDB9803ZJz3kL7; Tue, 14 Dec 2021 21:19:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D63AF7C86; Tue, 14 Dec 2021 21:19:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BELJtBr057115; Tue, 14 Dec 2021 21:19:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BELJtom057114; Tue, 14 Dec 2021 21:19:55 GMT (envelope-from git) Date: Tue, 14 Dec 2021 21:19:55 GMT Message-Id: <202112142119.1BELJtom057114@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: bfd451210e59 - main - imgact_elf: Disable the stack gap for now List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bfd451210e5972c1f2ec5200b6ca6ca70a9f24ae Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639516796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kv/wWbP7pcom+jFP0c+3QRg9u19i+eJuL09OEsZBG70=; b=htrbT/sUO+OvKR06jKC/uo5zpJ9Lf+FGx6LrH88eYIhu6nN5hvw949Bt3gnbYywfU+yOrb +0YP8gzOKmz7CgsnLiS/VDJ5cpMtxULGiCuobngz4a+i5kbviroEikLK2eAgkkPMrFnkNJ 5kewHRImSfLMPVpjMQRiENXuyJB/P+sHhnbW81xdQKgCAb37NIxIJL6UWmbC86siwc2VVx Rl7jayXdYj16WkpDIwDTfsU7mj0q9Q8qixda4d7qM58ac0CbhQPkGokwI/ZPxUJjpBRDHR gx2qKGRw5I2JJ2UdzmALnhMJ6qZlez9HJ4mATlAJDyvYi1Ibd1OzYyXRFLnUfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639516796; a=rsa-sha256; cv=none; b=YhyE5I67lbYBpRtMDhZm8bnZ7PROUHzWJZ+ZwVKO03vGN4n7eh8lqNEUKRNc5mOhN+NldQ KTiGMzeZpwQpkU/qLTaxbBzAiDuvO8huspg4+jLeQZSVTx7pI9L5M1cTcIZGFUNM6uDlK+ tBfeqerrGbP3Lp63aXwe+fJZEjLNG5GMGxmdyTIG6KT+UB1fswVkUYgUVIC13BKtLxDt2w wkR12etkd7SuaYdumBsMlc985r9EdY89KoV2pSDAoHWgZkQqerw81cKy7kdfQkNaCvAFJc eHH/inkz8bojh2bYjOSlsjNDE9oROmf7ChOwepSK5PaKQnG55WXSdY7Vn2g4DA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=bfd451210e5972c1f2ec5200b6ca6ca70a9f24ae commit bfd451210e5972c1f2ec5200b6ca6ca70a9f24ae Author: Mark Johnston AuthorDate: 2021-12-14 21:15:06 +0000 Commit: Mark Johnston CommitDate: 2021-12-14 21:19:40 +0000 imgact_elf: Disable the stack gap for now The integration with RLIMIT_STACK is still causing problems for some programs such as lang/sdcc and syzkaller's executor. Until this is resolved by some work currently in progress, disable the stack gap by default. PR: 260303 Reviewed by: kib, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33438 --- sys/kern/imgact_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index ce04e845cef5..6834b7dfd150 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -201,7 +201,7 @@ SYSCTL_INT(ASLR_NODE_OID, OID_AUTO, honor_sbrk, CTLFLAG_RW, &__elfN(aslr_honor_sbrk), 0, __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE)) ": assume sbrk is used"); -static int __elfN(aslr_stack_gap) = 3; +static int __elfN(aslr_stack_gap) = 0; SYSCTL_INT(ASLR_NODE_OID, OID_AUTO, stack_gap, CTLFLAG_RW, &__elfN(aslr_stack_gap), 0, __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE))