From nobody Sat May 16 20:25:21 2026 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 4gHwYF4qtcz6d1K4 for ; Sat, 16 May 2026 20:25:21 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gHwYF4Br9z3f7P for ; Sat, 16 May 2026 20:25:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778963121; 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=AiuvMQPrkjm2/autpHpfklPFo0glfXqUNzfi4B7wSSI=; b=Ngq+Dx+Y0ZeaPKB1T1cF3ZoQ32uH8HNOvySy45T7+V6kZDZoJpsnVk4k1U3L1yrxXZC50N HFhlMumapfkd+splz82zUPqooqAC3gVDfZPjg2bsdQaPBhDWEsmtQ/PHKbJPhpNL/d3AgI ph/SbjvXjIdduEioSp0uCu4VKG4rw9BIqN/KVbpJh1MZih7tlik+lHOoFRA2u5WLSc9LY8 k6uzmi38waLVhTfQ/I1EFMwDrzSy/PeciE13vgaFSsTYIX0v8EnJsOLTEGzRUt4DQvUuQL 2O0kGO+jXRQuUiAx4gQckUPiJmYHQHmX26EulOpHrAST+zu3OHxQY1QQLcjBlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778963121; a=rsa-sha256; cv=none; b=s9g43ZM7HhjjYIU9kn3XkZ7847sLxs2I43/rrIwGYUtZ5wTR/GrzB3uG2dN5BoKyy1NWQF EGLApjPQZmahyG+4u6VvrF1+Ca+yznQ7S3DmbSb7CYK0lJyxMUu63fAjB1HzGd5Pq7MWem xHWaNOwz3Z/UN3wM0Iuil3eb59ZlkoH++7T4ahcOYeVBNcmFT1UfquwCGmbbA3SC4kPrZt Cya34kQ63upyYbhY4WkVJd3BIvLL1gA7Z3ldXdGmonCCCb06T1iJZNk6UmWaJTqkkXeWar DIxzuYY4+aa0Two3gbS5hvReskwQqAupj/cVJVKSvHs+hbrRmN8kY0g5u3FMxg== 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=1778963121; 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=AiuvMQPrkjm2/autpHpfklPFo0glfXqUNzfi4B7wSSI=; b=kAnEWUD3BuXGMLXlqOHKVha6NwbgkAOHXoDFeYuUl1NLNev+Cstv6Q16OYCASBqlm+7bqo CV5q2s9gCY6/PpwX04H86h4Atbfj37rihia7FL37H1mRGHc12VP2QCrRvMv1in27hZu3xs LkELKVlGXriaqDtw3iHnSLeYuU344pp1LlTkLFNkcwy9CugNPfomm2tVXelAjM9gbEAJOR AvitiTJccj6BjfOjKJMlgaF95H6/c/hMgr445dBG/ixx7UUXCUU0SosAioVL6Xd5AWYnWV DatES3qU29HjOHZamkZDfhj5vrvwA7g+9Y7uhYHOjY1kaNfr467KH3kk42WhrQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gHwYF3m9Dz17Nx for ; Sat, 16 May 2026 20:25:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3a300 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 16 May 2026 20:25:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 755c1e039adf - main - kernel: address executable stack warnings in amd64 gcc build 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 755c1e039adfd68ecf4d5954e13fe54263c34a03 Auto-Submitted: auto-generated Date: Sat, 16 May 2026 20:25:21 +0000 Message-Id: <6a08d2b1.3a300.184d4a75@gitrepo.freebsd.org> The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=755c1e039adfd68ecf4d5954e13fe54263c34a03 commit 755c1e039adfd68ecf4d5954e13fe54263c34a03 Author: Ryan Libby AuthorDate: 2026-05-16 20:24:45 +0000 Commit: Ryan Libby CommitDate: 2026-05-16 20:24:45 +0000 kernel: address executable stack warnings in amd64 gcc build Mark assembly files as not requiring executable stacks. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D56946 --- sys/amd64/amd64/cpu_switch.S | 2 ++ sys/amd64/amd64/efirt_support.S | 2 ++ sys/amd64/amd64/exception.S | 2 ++ sys/amd64/amd64/kexec_tramp.S | 2 ++ sys/amd64/amd64/locore.S | 2 ++ sys/amd64/amd64/mpboot.S | 2 ++ sys/amd64/amd64/support.S | 2 ++ sys/amd64/amd64/xen-locore.S | 2 ++ sys/amd64/ia32/ia32_sigtramp.S | 2 ++ sys/amd64/sgx/sgx_support.S | 2 ++ sys/amd64/vmm/amd/svm_support.S | 2 ++ sys/amd64/vmm/intel/vmx_support.S | 2 ++ sys/crypto/aesni/aeskeys_amd64.S | 2 ++ sys/dev/hyperv/vmbus/amd64/vmbus_vector.S | 2 ++ sys/tools/vdso_wrap.S | 2 ++ 15 files changed, 30 insertions(+) diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 17ff8005e3cd..21e55e64d74a 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -496,3 +496,5 @@ sw1wait: cmpq %rcx, %rdx je 1b jmp sw1cont + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/efirt_support.S b/sys/amd64/amd64/efirt_support.S index 54578f573750..671fd52e5016 100644 --- a/sys/amd64/amd64/efirt_support.S +++ b/sys/amd64/amd64/efirt_support.S @@ -117,3 +117,5 @@ ENTRY(efi_rt_fault) END(efi_rt_fault) efi_rt_panic_str: .asciz "efi_rt_arch_call: too many args" + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S index babfbacf92ef..5ff75fb65740 100644 --- a/sys/amd64/amd64/exception.S +++ b/sys/amd64/amd64/exception.S @@ -1373,3 +1373,5 @@ gsbase_load_fault: #ifdef HWPMC_HOOKS ENTRY(end_exceptions) #endif + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/kexec_tramp.S b/sys/amd64/amd64/kexec_tramp.S index 6a2de676bc35..297a2a715a10 100644 --- a/sys/amd64/amd64/kexec_tramp.S +++ b/sys/amd64/amd64/kexec_tramp.S @@ -89,3 +89,5 @@ CNAME(kexec_saved_image): CNAME(kexec_do_reboot_size): .globl kexec_do_reboot_size .quad . - kexec_do_reboot + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S index 2be555b25160..d0b67d8872b9 100644 --- a/sys/amd64/amd64/locore.S +++ b/sys/amd64/amd64/locore.S @@ -194,3 +194,5 @@ ENTRY(la57_trampoline_end) .globl bootstack .space BOOTSTACK_SIZE /* space for bootstack - temporary stack */ bootstack: + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/mpboot.S b/sys/amd64/amd64/mpboot.S index e3d940088f14..5929b529147b 100644 --- a/sys/amd64/amd64/mpboot.S +++ b/sys/amd64/amd64/mpboot.S @@ -276,3 +276,5 @@ entry_64: wrmsr jmp init_secondary + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index 27694a95653c..09d4ef85b087 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -1996,3 +1996,5 @@ ENTRY(cpu_sync_core) pushq %rdx iretq END(cpu_sync_core) + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/amd64/xen-locore.S b/sys/amd64/amd64/xen-locore.S index ed2aae038b6d..8ee135f45400 100644 --- a/sys/amd64/amd64/xen-locore.S +++ b/sys/amd64/amd64/xen-locore.S @@ -206,3 +206,5 @@ gdt32: .long 0x0000ffff # %ds, %es, %ss .long 0x00cf9200 gdt32end: + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/ia32/ia32_sigtramp.S b/sys/amd64/ia32/ia32_sigtramp.S index 1a80f78a3234..8d700e1fe912 100644 --- a/sys/amd64/ia32/ia32_sigtramp.S +++ b/sys/amd64/ia32/ia32_sigtramp.S @@ -138,3 +138,5 @@ __vdso_lcall_tramp: ud2 #endif .p2align 1 + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/sgx/sgx_support.S b/sys/amd64/sgx/sgx_support.S index 4816f178e657..53fe359f3f41 100644 --- a/sys/amd64/sgx/sgx_support.S +++ b/sys/amd64/sgx/sgx_support.S @@ -66,3 +66,5 @@ sgx_onfault: popq %rbx POP_FRAME_POINTER ret + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/vmm/amd/svm_support.S b/sys/amd64/vmm/amd/svm_support.S index 26bf36b98f71..225a2a83e7b1 100644 --- a/sys/amd64/vmm/amd/svm_support.S +++ b/sys/amd64/vmm/amd/svm_support.S @@ -155,3 +155,5 @@ ENTRY(svm_launch) VLEAVE ret END(svm_launch) + + .section .note.GNU-stack,"",%progbits diff --git a/sys/amd64/vmm/intel/vmx_support.S b/sys/amd64/vmm/intel/vmx_support.S index 877e377f892d..9a3c6b3fd80b 100644 --- a/sys/amd64/vmm/intel/vmx_support.S +++ b/sys/amd64/vmm/intel/vmx_support.S @@ -268,3 +268,5 @@ ENTRY(vmx_call_isr) VLEAVE ret END(vmx_call_isr) + + .section .note.GNU-stack,"",%progbits diff --git a/sys/crypto/aesni/aeskeys_amd64.S b/sys/crypto/aesni/aeskeys_amd64.S index 667e64f441a5..8ae4a54a3d8d 100644 --- a/sys/crypto/aesni/aeskeys_amd64.S +++ b/sys/crypto/aesni/aeskeys_amd64.S @@ -219,3 +219,5 @@ ENTRY(aesni_set_deckey) retq .cfi_endproc END(aesni_set_deckey) + + .section .note.GNU-stack,"",%progbits diff --git a/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S b/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S index a15041ae7e32..f7479dc1f6f8 100644 --- a/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S +++ b/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S @@ -40,3 +40,5 @@ movq %rsp, %rdi call vmbus_handle_intr jmp doreti + + .section .note.GNU-stack,"",%progbits diff --git a/sys/tools/vdso_wrap.S b/sys/tools/vdso_wrap.S index 5a815fd6f499..865a7f1e14aa 100644 --- a/sys/tools/vdso_wrap.S +++ b/sys/tools/vdso_wrap.S @@ -46,3 +46,5 @@ VDSO_BLOB_START(VDSO_NAME): VDSO_BLOB_END(VDSO_NAME): .globl VDSO_BLOB_SIZE(VDSO_NAME) .set VDSO_BLOB_SIZE(VDSO_NAME), . - VDSO_BLOB_START(VDSO_NAME) + + .section .note.GNU-stack,"",%progbits