From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6D9C51991C4; Thu, 6 Jun 2024 14:20:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683658; cv=none; b=k7ujSRtyGZwIEFE/H/NI+KdZy08D44apkKZi44IuPV8MiQwrdaBY1HH1cYf5URUD/WgkqvE1GSy9NZ0z22qQcb3TzhjKC8ALisjcwuhl2XwSShZe+HVj0fnZLeXMadgBpmqKUwwtmK7AWYPEuUTWYD4Y/bNmtvezKf2B71UUdnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683658; c=relaxed/simple; bh=tW0XCU/oTRi9tVlOBkuOtchp2sNVQwm8BzoiSjgrv4U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q771TYPFbpuwsZxPFrsZLo0eOeOcnEXBeLTiVM3hK6MYgk8/Ogofqqkqh4QK0y09e7dVcYCrO5jSXsKF6Anuec3mCpDe6BYkvzAHhu1kBPeRorOyJLtmqTCucyVC7wnnsVdSiXuDbn10mKR7mMNlYCeX+clxy6zYOoyHNKx6kzw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fBmI9hWK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fBmI9hWK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E236C2BD10; Thu, 6 Jun 2024 14:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717683658; bh=tW0XCU/oTRi9tVlOBkuOtchp2sNVQwm8BzoiSjgrv4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fBmI9hWKM7X/6kx7Ml+QLNZyv9XFFA00KqF7IU2PfrnZVowKUHfZ2Uf28bAZzZTyC 0kmV4/XSk0F47UZ+JoPqObiiHb2wO3r1fXse+9jtecbYPUgkcTYd+kBEJvbKlv7lXc ZWl3kNnYmPYPMmVoYC28+zTABT71Hnc+oLrXPF3k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jens Remus , Alexander Gordeev , Sasha Levin Subject: [PATCH 6.6 537/744] s390/vdso: Create .build-id links for unstripped vdso files Date: Thu, 6 Jun 2024 16:03:29 +0200 Message-ID: <20240606131749.686154879@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131732.440653204@linuxfoundation.org> References: <20240606131732.440653204@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jens Remus [ Upstream commit fc2f5f10f9bc5e58d38e9fda7dae107ac04a799f ] Citing Andy Lutomirski from commit dda1e95cee38 ("x86/vdso: Create .build-id links for unstripped vdso files"): "With this change, doing 'make vdso_install' and telling gdb: set debug-file-directory /lib/modules/KVER/vdso will enable vdso debugging with symbols. This is useful for testing, but kernel RPM builds will probably want to manually delete these symlinks or otherwise do something sensible when they strip the vdso/*.so files." Fixes: 4bff8cb54502 ("s390: convert to GENERIC_VDSO") Signed-off-by: Jens Remus Signed-off-by: Alexander Gordeev Signed-off-by: Sasha Levin --- scripts/Makefile.vdsoinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.vdsoinst b/scripts/Makefile.vdsoinst index c477d17b0aa5b..a81ca735003e4 100644 --- a/scripts/Makefile.vdsoinst +++ b/scripts/Makefile.vdsoinst @@ -21,7 +21,7 @@ $$(dest): $$(src) FORCE $$(call cmd,install) # Some architectures create .build-id symlinks -ifneq ($(filter arm sparc x86, $(SRCARCH)),) +ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),) link := $(install-dir)/.build-id/$$(shell $(READELF) -n $$(src) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug __default: $$(link) -- 2.43.0