From nobody Thu Sep 12 21:52:35 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 4X4WPw3KXRz5WtkJ for ; Thu, 12 Sep 2024 21:52:36 +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 4X4WPw0fyzz4Djj for ; Thu, 12 Sep 2024 21:52:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726177956; a=rsa-sha256; cv=none; b=xJuG+nkx38paCbVtv63JXDJx2RgpnWUVRGU9P1g9XQORMMGjwcVuRSPLGPMgNpPM4OOHqG jN/qZeOdUxi1Z8AFjxbMTWBajD03zUHCJ5wvTq4/ayesn9Cgapjaf9hiKz5oA75ji8L8OP QujSXgqwj03A/pnkNHH/WxxPV6YX4roHrzaImgB4/1i8v5jBBsktT8BUaY8czq3v0hU0E8 xZS0LPZQAmINAnr+ArGlZ2HPCuLzNN5tR1E3Vw3cEQfpmTSwwzdekx/BaNzJDf6/r79Oph l5exJ2lom1YJQ+OL1voLpxpcHfFKgbeVnLGcSnFQ8ATOBY1NcZNcTArHbvTcKw== 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=1726177956; 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: in-reply-to:in-reply-to:references:references; bh=lSV3zcLkaucHcFslKlzGuJVcRl4c5Uo5IEGI6MYvCb8=; b=UEqqlUezPOBkBBYjLQ6r+hwKIiBSkqlXLsccEW0GPlawJPXSSE9H1Xl3ZIgZdnnZ7uDkXq mNDa1RF+yEi3d3dVw7YgI7ZPcbAyQmQRnnAxrsvftAdvTf9Se7IvP3R3G2ujV7ykVxU9zL PalU4ijb6xhweL6yynfTRXuNdwxlYNv4FUgU3Z8s/LFm+k0HKOHvOXO9UP7ERWD8wukc3D AvO4UrUaPjbWFlJlQA5LwBY+++EPYnVmwyQCbGmkWpQwva2Z/EmiFnhMYmoFY1gZLxFB46 TL9yzHZmNYpg0bnm5SG6L+sJlnv9paLKy0pGkomM54+HsChogG4jBqZOzEO11Q== 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 4X4WPw0FrWzGrY for ; Thu, 12 Sep 2024 21:52:36 +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 48CLqZZT015650 for ; Thu, 12 Sep 2024 21:52:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48CLqZAQ015649 for bugs@FreeBSD.org; Thu, 12 Sep 2024 21:52:35 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: Thu, 12 Sep 2024 21:52:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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 --- Comment #5 from dewayne@heuristicsystems.com.au --- (In reply to dewayne from comment #4) A self inflicted issue from the outset. Of course the combination that I w= ant is kern.elf64.allow_wx: 1 -> 0 kern.elf64.nxstack: 1 -> 1 For the interested:=20 readelf -W -l `which whoami` GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0 Create a trivial C program, compile with -Wl,-z,execstack, result (RWE) GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0 compile with -Wl,-z,noexecstack, results in (RW) GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0 Very much appreciate the "pointer" to PT_GNU_STACK, I learnt something I should've known. And yes, the result is expected :) --=20 You are receiving this mail because: You are the assignee for the bug.=