From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 CF7013396E8; Thu, 29 Jan 2026 11:28:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769686101; cv=none; b=RMjrVlDdtCH249tgEspoPSNDaSKFJuuqjavqXnFn+8mjBrhWpYYbFiggv3fU4+WOWuA7pzjWgcqWlUF1aUEI5tmz6Rkowj5nmntQUGwMhLptBpSeYxS4W0FnJx6iLFEeN/VUGxAONMHL0hF3COEleXLsOq+Vu3xUqozvf9+fLzA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769686101; c=relaxed/simple; bh=cDBBt5AzsVhVbW6f13dBiQSjZ3wuiyq/0VUHoafrcX4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RuvcEvWV11XEZ9Vlekw/w8k9pFTSt7k1Q4ShgvkLHEwflf3104qD54OPokbLq+K2MB31xSig/HT62TI7YMph1Ec46aOvWME8Z7uyDYx7c3bhY69bO2RwdhoWyjSGcOUW9um6XtZFNyROx6u7hWn6Abaiha7+diyf92h/7FxzakE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=M1gFEZji; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="M1gFEZji" Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 60SLbE8O029482; Thu, 29 Jan 2026 11:27:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pp1; bh=SUOh161zhkIWDyOcaI3u3kKKSN0WquOk1hYBaryi2 p8=; b=M1gFEZjizKLN5GEXNMk7sla3zCggfrOjp7UkekOFoxS3mxNrRRNoraY6F hjdEmxJe5B3lHqlw4QCUV4MWw384D2LRtdAqabmzWIdQTAFKHmHbtTdGbjcUP2T6 kYhUHY3XTwamx9tscsTfb4cMyr+B/xJKPGDEYcv7tgF2bnuTXgrnXRsfzxHSHI47 zIiCDsz1iy9oCWYFONIp2WfyjpJM7daYfl8oNeH3Qx3qN5pMhXp7J7iOZimnrTy/ IedLTyo39Fisxn9ahjqShAQyR5xIvQCeQs4sM6oClA6Tcf6cWafb63YSMCmheacc gwnd9EvuJWwzQtv6v/e/hCIn7k6mg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4bvnt80ayx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jan 2026 11:27:34 +0000 (GMT) Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.18.1.12/8.18.0.8) with ESMTP id 60TBRX8v029733; Thu, 29 Jan 2026 11:27:33 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4bvnt80ayg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jan 2026 11:27:33 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 60T6Sawr031069; Thu, 29 Jan 2026 11:27:32 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4bw8dsshph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jan 2026 11:27:32 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 60TBRSTg27919094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jan 2026 11:27:28 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7158D2004F; Thu, 29 Jan 2026 11:27:28 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8AEA620043; Thu, 29 Jan 2026 11:27:27 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 29 Jan 2026 11:27:27 +0000 (GMT) From: Jens Remus To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, bpf@vger.kernel.org, x86@kernel.org, linux-mm@kvack.org, Steven Rostedt Cc: Jens Remus , Josh Poimboeuf , Masami Hiramatsu , Mathieu Desnoyers , Peter Zijlstra , Ingo Molnar , Jiri Olsa , Arnaldo Carvalho de Melo , Namhyung Kim , Thomas Gleixner , Andrii Nakryiko , Indu Bhagat , "Jose E. Marchesi" , Beau Belgrave , Linus Torvalds , Andrew Morton , Florian Weimer , Kees Cook , "Carlos O'Donell" , Sam James , Dylan Hatch , Borislav Petkov , Dave Hansen , David Hildenbrand , "H. Peter Anvin" , "Liam R. Howlett" , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Suren Baghdasaryan , Vlastimil Babka , Heiko Carstens , Vasily Gorbik Subject: [PATCH v6 0/6] x86/vdso: VDSO updates and fixes for sframes Date: Thu, 29 Jan 2026 12:27:20 +0100 Message-ID: <20260129112726.892340-1-jremus@linux.ibm.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: KmyhTpEXJg8HegGafdKfkxfmrZXZHBL4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI5MDA3NiBTYWx0ZWRfXzPvvYI2epdOw 4l5ffEeTLLs0bD6QGaoX5V0WOM1qr1OmTMcAijVu/mIoe3vxqzuTAZQaVv76Wmm37SbpJU/F4SL GLB7pCWWW6YoptFBEw7+72Fmd6dEpEa272HUBTH1q82evQpwXF6lXfwnVYzAeT7CYv8l4Xli8Ky y99NiRPgvcjf70azP/yg+oYRc/mVc6oQOCUQC4jc6r72gLIt+EbUevqaDoVBCATGn+On7K86Q1G +6F6YH2EANo+ecbKrpFZ920qArOabZiax8dEo1AUnUU+74MW8w6xTjSEkoEcg7gc6guqchwsW9g mU5Fox2jrgCzYWQm9BK5rcqneueOAjro8bf8cC+neovZw8H2GLniAbMiLCdUfE+mN62IvSAhSWa E1cuWgnN8teTqWvxGwk7Ote8VArQZKPExapqX9LTY42eGnqL6fiOxDrswQhCsaVMPo9jL8UVFh7 g0JXyZUCWrmUVVsow/g== X-Authority-Analysis: v=2.4 cv=Zs3g6t7G c=1 sm=1 tr=0 ts=697b4426 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=vUbySO9Y5rIA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=meVymXHHAAAA:8 a=VnNF1IyMAAAA:8 a=HwLxJGTS2eH444T7Q8IA:9 a=2JgSa4NbpEOStq-L5dxp:22 X-Proofpoint-ORIG-GUID: R-FiN0dvnPWqON9cIr5F4rUoJQsDj1E_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-01-29_02,2026-01-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 adultscore=0 phishscore=0 suspectscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2601290076 This enables generation of SFrame V3 stack trace information for VDSO on x86-64. It's a continuation of Josh's and Steve's work: https://lore.kernel.org/all/cover.1737511963.git.jpoimboe@kernel.org/ https://lore.kernel.org/all/20250422183439.895236512@goodmis.org/ This series focuses only on the VDSO code. They are helpful fixes and updates that doesn't rely on sframes (although the last patch is sframe related). This series applies on top of the latest unwind user sframe series "[PATCH v13 00/18] unwind_deferred: Implement sframe handling": https://lore.kernel.org/all/20260127150554.2760964-1-jremus@linux.ibm.com/ Like above series it depends on the upcoming binutils 2.46 release to be used to build executables and libraries such as VDSO with SFrame V3 stack trace information (using the assembler option --gsframe-3). Changes in v6: - SFrame V3 support (SFrame V2 is not supported). - Prevent GNU_SFRAME program table entry to empty .sframe section. - Integrate v5 review feedback. (Josh) Regards, Jens Josh Poimboeuf (6): x86/vdso: Fix DWARF generation for getrandom() x86/asm: Avoid emitting DWARF CFI for non-VDSO x86/asm: Simplify VDSO DWARF generation x86/vdso: Use SYM_FUNC_{START,END} in __kernel_vsyscall() x86/vdso: Use CFI macros in __vdso_sgx_enter_enclave() x86/vdso: Enable sframe generation in VDSO arch/Kconfig | 7 +++ arch/x86/entry/vdso/Makefile | 10 +++-- arch/x86/entry/vdso/vdso-layout.lds.S | 9 +++- arch/x86/entry/vdso/vdso32/system_call.S | 10 +---- arch/x86/entry/vdso/vgetrandom-chacha.S | 3 +- arch/x86/entry/vdso/vsgx.S | 19 +++------ arch/x86/include/asm/dwarf2.h | 54 +++++++++++++++++------- arch/x86/include/asm/linkage.h | 33 ++++++++++++--- arch/x86/include/asm/vdso.h | 1 - 9 files changed, 97 insertions(+), 49 deletions(-) -- 2.51.0