From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F3273E832A; Wed, 20 May 2026 18:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300104; cv=none; b=lP/aOsIHm+7ulOiG9eaffwh2CqkOblm08wSIuHRB9pHm1ov+lHfoQVgMus9QYHfpO1gbeB9JpCqvbdPWVB974aABogMvFD99/1yPrF+I2/lGgpcFWVopYKF2oeTDaLdmCYq+rTgZ0fyJsOVy16ZglghEi+joQzK2PzoRVCWcXds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300104; c=relaxed/simple; bh=WN7AILZe9iX22WCHJJtTFFruiImDVcJYZzj+HTPOwNU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EXocW8ZC727Bbu5ncp/JidTNZwujG6jfeGPLtJqlhS7o0gF0G4ncO5Mve/nspeW1nhdmQ/43nkPjR9ItaUd7WSslCyYZuDH5Ah4OnQFwJzV3X8vZOO3PBBT8rDLFqvw8KuOA3JJeGYRzfxD+9etlpfJiD2/ebg5Dzqvy1Uj/CTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j3WMkJHZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="j3WMkJHZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E44611F000E9; Wed, 20 May 2026 18:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779300103; bh=+/hYWDvTlmJZlU7Y+N9xD9a8TB1hULVTIMEFU74omSE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=j3WMkJHZ7OUZIxUYivN+SjIyK/Nf0R95vz5PLFJbjwTADBUfc5o7t8UQs92N4IUkZ OHsU1AJts9IgD6GnulZdMT/pFZvnoa4kYGsb6ka5VHeya4U86SexDxDTjMY94daMmU cUwjX3xJgpoxnOrvSTtvu26Er9jhfSy8NYdYbhzI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Arnd Bergmann , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Thomas Gleixner , Andreas Larsson , Sasha Levin Subject: [PATCH 6.12 031/666] sparc64: vdso: Link with -z noexecstack Date: Wed, 20 May 2026 18:14:02 +0200 Message-ID: <20260520162111.909414566@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Weißschuh [ Upstream commit acc4f131d5d57c2aa89db914aeb6f7bb0ab4eb4a ] The vDSO stack does not need to be executable. Prevent the linker from creating executable. For more background see commit ffcf9c5700e4 ("x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments"). Also prevent the following warning from the linker: sparc64-linux-ld: warning: arch/sparc/vdso/vdso-note.o: missing .note.GNU-stack section implies executable stack sparc64-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker Fixes: 9a08862a5d2e ("vDSO for sparc") Suggested-by: Arnd Bergmann Signed-off-by: Thomas Weißschuh Signed-off-by: Thomas Gleixner Tested-by: Andreas Larsson Reviewed-by: Andreas Larsson Acked-by: Andreas Larsson Link: https://lore.kernel.org/lkml/20250707144726.4008707-1-arnd@kernel.org/ Link: https://patch.msgid.link/20260304-vdso-sparc64-generic-2-v6-4-d8eb3b0e1410@linutronix.de Signed-off-by: Sasha Levin --- arch/sparc/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile index c7697884975ea..fc3ada4269f1a 100644 --- a/arch/sparc/vdso/Makefile +++ b/arch/sparc/vdso/Makefile @@ -103,4 +103,4 @@ quiet_cmd_vdso = VDSO $@ $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \ -T $(filter %.lds,$^) $(filter %.o,$^) -VDSO_LDFLAGS = -shared --hash-style=both --build-id=sha1 -Bsymbolic --no-undefined +VDSO_LDFLAGS = -shared --hash-style=both --build-id=sha1 -Bsymbolic --no-undefined -z noexecstack -- 2.53.0