From nobody Fri Oct 04 23:06:36 2024 X-Original-To: dev-commits-src-main@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 4XL4191sHNz5YV9l; Fri, 04 Oct 2024 23:06:37 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XL4190XSqz4hGg; Fri, 4 Oct 2024 23:06:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728083197; 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=tg2N/59C/8m25OBdNSDHIVK/0zWs+YICxydRHVN7In4=; b=GzBZyCaUdE0FJvDq7YpZMWpupZOmp88gLmbbDhlfPhNDi6DylBuWogc62Wag22WOS2WcVu nj+p3iwZDi7y5t5WMVkTA5soTJ5zlCM5/WVNdomA8dGzbBofE3fObJWvzCYOwzpVGzs7kD rE8rp3lw4OAf09YlGJhjfKvJofWhFG9GEM77+ujl+YPNg2WO7bbWSqLn0fWOMLgTymYKgz 6BMH9b94Zq4QfqgWHZg571ujwyB18oQgmFbjAjHD3uUP8q6Q+3odK74hBktUETMV7nj6iU s0wuVAuj+axdr6NVliVLvJYKtK080ItAMKigw74wDEM5a5ax34FQjfFAj15SoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728083197; 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=tg2N/59C/8m25OBdNSDHIVK/0zWs+YICxydRHVN7In4=; b=Y5s/icw7WhrqVTnzKaUIShDsQvdl9CpCFE1i29deHglM+BLagFLN8WiQpmS1QJQMXE1LA9 VS12ztHxIZK8WJFqeVVa+amPiYdhqo9J0kAXGUoHmcgyOsSop3SmXIwhudAhYnTB2KFYGv f+6buBbOcTmambSojF7QreMJ+czqyV855NjHcu2mQxDPPQa9XEldveLBRzCZgCc5Pr2WEP SOGIP9fuzh9Ifb9sKw+pUQ3JhfVgMxKqKPy/B5bmAPPkb51XUtHlrpbLTSXQF0HHeoFuMA /DoEi4dF1ETWRHC0r+thzyTkQmb7/qzYUm/pxc/BiHLZmnTaLw7ERAHTMdF7eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728083197; a=rsa-sha256; cv=none; b=BRjUwk7FtTjkKLNPpo8rKN2ENNF1MTfwOX0DdHlUhhDZoiGRTkC7RbjOUi4t9kir2GjBOA Nib8j3CqPk4t37GR76+z5RGDxgHH5ZEAOyTal7wdJ9ieoxCG0t5m+cNmmarlmIM59DQ+sy kjd2KyhGqMEYDScbpbsJUPrtSIMy0TBBxEiog5zpsHYgDISV4haRybIGgANuFbpETXD0KR clFh8YZOd7lZcjpqDDMSXkDPUTzHP6eSdt+5+STmY46V1JzDoGQvD/e0eQlCuVjZVoBmXD ukH+VWVgNsEDX7lDvuP2EBCDQ/iWX7oYEMQSqSjvzg6viKXSyrXPt9OhqXO7iA== 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 4XL419083VztbQ; Fri, 4 Oct 2024 23:06:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 494N6acD077216; Fri, 4 Oct 2024 23:06:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 494N6a3V077213; Fri, 4 Oct 2024 23:06:36 GMT (envelope-from git) Date: Fri, 4 Oct 2024 23:06:36 GMT Message-Id: <202410042306.494N6a3V077213@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 74f6ec6fe3cf - main - lib{c,sys}: .note.GNU-stack in syscall stubs List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 74f6ec6fe3cf47cc0482cd5fb10d5c3c967bfd1f Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=74f6ec6fe3cf47cc0482cd5fb10d5c3c967bfd1f commit 74f6ec6fe3cf47cc0482cd5fb10d5c3c967bfd1f Author: Brooks Davis AuthorDate: 2024-10-04 21:13:41 +0000 Commit: Brooks Davis CommitDate: 2024-10-04 22:01:45 +0000 lib{c,sys}: .note.GNU-stack in syscall stubs Explicitly disable executable stacks in the syscall stubs on all architectures. Previously, aarch64 and riscv64 didn't include the .note.GNU-stack note due it being disabled by default in those ABIs. This appears to have been harmless in practice, but better to be clear in case a different compiler/linker has different defaults. This also reduces special cases in the Makefile. Reported by: jrtc27 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44883 --- lib/libsys/Makefile.sys | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/libsys/Makefile.sys b/lib/libsys/Makefile.sys index d18f4bc23227..7454f5a47720 100644 --- a/lib/libsys/Makefile.sys +++ b/lib/libsys/Makefile.sys @@ -129,12 +129,7 @@ SYM_MAPS+= ${LIBSYS_SRCTOP}/${LIBC_ARCH}/Symbol.sys.map # Generated files CLEANFILES+= ${SASM} ${SPSEUDO} -.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \ - ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" NOTE_GNU_STACK='\t.section .note.GNU-stack,"",%%progbits\n' -.else -NOTE_GNU_STACK='' -.endif .if ${MACHINE_CPUARCH} == "aarch64" FEATURE_NOTE='\#include \nGNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL)\n' .else