From nobody Thu Sep 12 01:05:34 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 4X3zl30qKSz5W4fc for ; Thu, 12 Sep 2024 01:05:35 +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 4X3zl25zq9z4Vhp for ; Thu, 12 Sep 2024 01:05:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726103134; a=rsa-sha256; cv=none; b=BMhRdimCThA22Mjyh0IFHEparUe3wgnlqElB0vsGFnNXIvWWH8QmSfOsW0h8niGougK9qd t52KpuGyuhlirzz75WYnpDjUzxF8zXtOEHjNq6Fc32yBS5COENQ/JUyG/EHuL3QxIOx4Ed p49NaRwOlkmhcOMXdFUeK8w13xk/W71+Ama1wH4blrEMnd2x83gVyGCRg8t2+b1PFcNvh5 JjnCWhbsFSy6sjAVGE61rtrxjlSR/Q8Aa/kFahhRrmVr7XhVWgArXbmRddckcCUXGNoCuv +haxWOvzyeV/CoEzf4Hdiw0GXFysTOehvdQLLYw18muTFfbD1sktTaA3SPEDuQ== 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=1726103134; 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=RYZLUbuIoiNQU5+wGIrsX+QMceB/rZ2UbtY5NfZnueY=; b=HG6aqDP4UFr2APYXDvTTXF+NFv1DlVwO/Q59sx1QJUJKYSjB47aK9BqKXAEazijU74axlo UbNIx/vYIJwB2GqkneKMFLnfSqOYrAq56E5zo87voCTf5NZKxzR7Q5SORLHrfwAoosmdem KD4bqHibQv6ZRCX/AGPXLq1SEQxB420s30TqwxXhq8ekazGHEbRaPj7fWejmEFwdqmjoau XhnkOvuo2ZDQ35gV3gT4loD4qUYXyeIIYVjkV0ADePN+ZOZFWblxYQagqZ0SBDz8SMzjMI 3Im0nhAYH8uG/VFWuyxO5Zq34iKnbP+oVpDOQr3fd323Prthndn0Glj6NcZGwg== 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 4X3zl25bVQztl9 for ; Thu, 12 Sep 2024 01:05:34 +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 48C15YTI006654 for ; Thu, 12 Sep 2024 01:05:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48C15YNY006651 for bugs@FreeBSD.org; Thu, 12 Sep 2024 01:05:34 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 01:05:34 +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 #3 from dewayne@heuristicsystems.com.au --- (In reply to Konstantin Belousov from comment #1) I'm really impressed that you were able to identify the problem, and so quickly. Thank-you. Could you provide a hint how I can fix? So that I can disable this feature, I need to find where/how PT_GNU_STACK is revealed on my 14.0 boxes using clang version 16.0.6, LLD 16.0.6. My futile attempts involved: # objdump -T -t `which whoami`|grep -i -e stack -e gnu 0000000000000000 DO *UND* 0000000000000000 (FBSD_1.0) __stack_chk_g= uard 0000000000000000 DF *UND* 0000000000000000 (FBSD_1.0) __stack_chk_f= ail # readelf -a `which whoami` |grep -i -e stack -e gnu -e id GNU_RELRO 0x0000000000002540 0x0000000000004540 0x0000000000004540 GNU_EH_FRAME 0x00000000000014ac 0x00000000000014ac 0x00000000000014ac GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 ... 27: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@FBSD_1.0 (3) 31: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@FBSD_1.0 (3) GNU 0x00000010 NT_GNU_BUILD_ID (Build id set by ld(1)) Build ID: ef0defaeb38f943913d65e8474989b1c # objdump -T -t /libexec/ld-elf.so.1 | grep -i -e stack -e gnu -e id 000000000000e260 g DF .text 0000000000000007 FBSDprivate_1.0 _rtld_get_stack_prot Nothing helpful. (I also tried hd and ktrace) So is there a clue from my /etc/make*.conf # make -C /usr/src -VCFLAGS -Vspace -VLDFLAGS -O2 -pipe -march=3Dhaswell -fomit-frame-pointer -fno-signed-zeros -g0 -ggdb0 -DSTRIP_FBSDID -UDEBUGGING -DNDEBUG -Qunused-arguments -Wno-error=3Dunused-command-line-argument -Wno-error=3Dunknown-warning-opti= on -fno-common -fno-asynchronous-unwind-tables -Wl,-zrelro -Wl,-znow -Wl,--strip-debug -Wl,--build-id=3Dmd5 -Wl,--hash-style=3Dsysv -DPIC -fpie -Wl,-zrelro -Wl,-znow -Wl,--strip-debug -Wl,--build-id=3Dmd5 -Wl,--hash-style=3Dsysv -pie --=20 You are receiving this mail because: You are the assignee for the bug.=