From nobody Wed Sep 11 08:30:17 2024 X-Original-To: bugs@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 4X3Yfh5Ckbz5W5hb for ; Wed, 11 Sep 2024 08:30:20 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X3Yfh24ZQz3xyl for ; Wed, 11 Sep 2024 08:30:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726043420; a=rsa-sha256; cv=none; b=Az6AVM+JZ3AEbY3lck6RwDWEi6ZEe6Xhle5FJdWTujIIT9JX3IvZtmr2NrOOVtbRYx9uYF 1rfFwjrdnHqOkvg7VxQTS+Tf/bZVRz7a3QHuy4F93QbddL8iRQfg8N6PRpONoISylIHld8 ZA9OyKL+nHvQTi9y7l42ewvoByRULQAuZlhkMmENT85lNInk0413QfSjmrhIPrQsjr7sJz IagDVi1oR/wtrtdGDG2AFswBHSpEBL8x3O4sU+RbU25UvCrsfNrZ90IPatZUbZK4NqdNl4 ZryREpf4ocgimMYgA78XNh0Xv+XLa19dynm4uVjrHQ4fgzyMTsiu5q6O2ODHtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726043420; 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=dMfl+/uLohy9pf+x5x12SpwvYzu6kBjqGmBqyzL6SdY=; b=ACN80XmMfBYLA7R79d0cMVVilCJc/n8T8Zy8SpYhQU74+XhI7dty1YcY2xFp+k6nCquNcg 9rtWnfk5+X17MAlmTTk17VHsR2+L1st80wA5rfGWHpm9VO3NB1lmZoT72YQnPV2XcL/PCH ssEPrk2s6jfJrgWsVzWIPcK59yiEkQ0/wmjmOj3VPLhK4AWYm6ZY8OtGyVKQ23yDh4vTY/ kg3eWRzlmY42GuZpmCrAQPyMQSspHevbEvOkL3vN+AzDjYz3mXxLy6Ilzy4ZmyCJjHrAZq ZX5M4UMC8zU+4rbODhhx1k2bCVXrR3ttXaKmEV3BghfyV6il+JdIywb/Z55CLw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4X3Yfh1ZKlzNPS for ; Wed, 11 Sep 2024 08:30:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48B8UKGp053162 for ; Wed, 11 Sep 2024 08:30:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48B8UKQj053142 for bugs@FreeBSD.org; Wed, 11 Sep 2024 08:30:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281433] Changing kern.elf64 sysctl's requires press-button reboot Date: Wed, 11 Sep 2024 08:30:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dewayne@heuristicsystems.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281433 Bug ID: 281433 Summary: Changing kern.elf64 sysctl's requires press-button reboot Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au Problem:=20 While trying to resolve a dlopen failure for an application, I set sysctl kern.elf64.allow_wx=3D0 kern.elf64.nxstack=3D0 Every command subsequent to setting these variable to 0, returns: exec_new_vmspace: mapping stack size 0x20000000 prot 0x7 failed, mach error= 2 errno 13 A hard reboot is required. Reproducible: # sysctl kern.elf64.allow_wx=3D0 kern.elf64.nxstack=3D0 # whoami exec_new_vmspace: mapping stack size 0x20000000 prot 0x7 failed, mach error= 2 errno 13 Drilling down, I notice that I have security.bsd.stack_guard_page=3D1 Disabling this security.bsd.stack_guard_page=3D0 before sysctl kern.elf64.allow_wx=3D0 kern.elf64.nxstack=3D0 Allows the machine to perform a few (less than 3) commands before the above exec_new_vmspace message is the only response, again requiring a hard reset. Platforms: both development machines on Windows VirtualBox FreeBSD14.0-p4 amd-64 (near virgin added MAC modules to kernel) FreeBSD14.0-p5 amd-64 (modified kernel and loader.conf and sysctl.conf) --=20 You are receiving this mail because: You are the assignee for the bug.=