From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C1F163BFE2C for ; Thu, 19 Mar 2026 10:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773916570; cv=none; b=R9Pq04mzKo+KXM5ci47uJijluCgSsZGnmTvibviVP4iMwBjpVlYuZSywaRxeZU09aYL+Q/FSj65GUB80UGJaDv/omky5Ro9F4z7tsnl7klyhV/Xq+rY7Z7eUf0M/PVd1V4chiauCXM00zheyTnCin3FWth8ItPF/x48ogdFMzdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773916570; c=relaxed/simple; bh=iluTlPQ1EKFm1merTzzWpHttLYPfm1kkKYdQ+aP4e7o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZHnTCcQxNBFVvg0n+E1owPdDwH5Wsg88fobx7RMjqJzuRNpwIRD+nGSzEKpdCO7M15LDTSJhKEEpIwdF4wLGr/QSJmpJiGbW6+Dkry80GAFoTPpzqG4nz5KT9rfjp8ufMuXD1vW8D2wYmXpPOfBD3mRs5yWyb+1nLcJXdlrlJIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=WEPVfQ0n; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=adtOIEhV; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WEPVfQ0n"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="adtOIEhV" Date: Thu, 19 Mar 2026 11:36:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773916566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CD4atJWUlsIRgcn8TUi96wdc4YQOmyCibWW1Xs10cCE=; b=WEPVfQ0nBF1OFYZM/b/GTpBnYIq1acbkEceWyU05tyWHLiVo9tS8q+QKL3AwW0IQM6tz7Z AiFVqJWJ7js0jyuR/0XvCLt5ppvuKWU6thxB+lV7T0DpAY/W/lbIppUmGbidkOy1aHcd4k P+NlXfgyb45fdYC5lb/X8h9wBYRkv+9BdfITNuRpoYp9qPHTgKh2+YGFiONZc8qXp4Kfu+ WaEOUx2VIc52NSanALC77hpP24TDF2IAYPCAU2RI965jpAfaTyTHtmU2j17n0f4N+2B5Gx zLOVmvGn0Lcfj1YXdGG6H8QyrR4e66K/9BYz+4bsLmrjSCq4eorxlUdG4Y/8wg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773916566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CD4atJWUlsIRgcn8TUi96wdc4YQOmyCibWW1Xs10cCE=; b=adtOIEhVOdBmyRu/ofDAuleWPBe92XrS98rkAbR6RBGSqz1fMJ9Wd5VhIwi0bSV9Y3xDwW sdFSl8OX5S+HheBA== From: Sebastian Andrzej Siewior To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= Cc: Thomas Gleixner , LKML , Mathieu Desnoyers , =?utf-8?B?QW5kcsOp?= Almeida , Carlos O'Donell , Peter Zijlstra , Florian Weimer , Rich Felker , Torvald Riegel , Darren Hart , Ingo Molnar , Davidlohr Bueso , Arnd Bergmann , "Liam R . Howlett" Subject: Re: [patch 8/8] x86/vdso: Implement __vdso_futex_robust_try_unlock() Message-ID: <20260319103604.rLCFNj7P@linutronix.de> References: <20260316162316.356674433@kernel.org> <20260316164951.484640267@kernel.org> <20260317081606-6b19f6a3-34e5-4056-9b8b-e9b90028b960@linutronix.de> <87bjgmokb0.ffs@tglx> <20260317120032-5d3d8bb8-27af-4380-9f82-5a132d84a0af@linutronix.de> <87ikatm7rx.ffs@tglx> <20260319081750-6676c5a6-80c4-4904-a53d-e272a5cfaeb1@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20260319081750-6676c5a6-80c4-4904-a53d-e272a5cfaeb1@linutronix.de> On 2026-03-19 08:41:47 [+0100], Thomas Wei=C3=9Fschuh wrote: > > vdso2c picks them up correctly too. >=20 > What also works is to have GDB look up the debug symbols through their > debug ids. At this point the load address of the vDSO is already known. >=20 > $ make vdso_install INSTALL_MOD_PATH=3D$SOME_DIRECTORY > $ gdb -ex "set debug-file-directory $SOME_DIRECTORY/lib/modules/$(uname -= r)/vdso" $BINARY >=20 > Depending on the distribution the vDSO from the kernel package might alre= ady > be set up to be found automatically. >=20 > Maybe we could add a helper to scripts/gdb/ which uses $(vdso-install-y) > to either populate a debug-file-directory automatically or hook into the = GDB > lookup process to avoid these manual steps. Is this a complete vdso.so as mapped in process or just the debug symbols or both? Looking at my Debian thingy this seems to be there as of https://packages.debian.org/sid/amd64/linux-image-6.19.8+deb14-amd64-dbg/f= ilelist | /usr/lib/debug/lib/modules/6.19.8+deb14-amd64/vdso/vdso32.so | /usr/lib/debug/lib/modules/6.19.8+deb14-amd64/vdso/vdso64.so | /usr/lib/debug/lib/modules/6.19.8+deb14-amd64/vdso/vdsox32.so | /usr/lib/debug/lib/modules/6.19.8+deb14-amd64/vmlinux or do we talk about other things? Usually there is -dbgsym with the stripped out debug symbols under /usr/lib/debug/.build-id/ but the kernel seems different. > Thomas Sebastian