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 20FD347DFAB for ; Wed, 22 Jul 2026 09:07:43 +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=1784711265; cv=none; b=fucvofqrgvIyVKdR8ETWqekrpmCtMirr9Z8xOIQnkZxxzC7g0Q1i+y8M4k5IH8LnawzQqm+pAz1cDHjb1fzgXEx03S9y7+FkvHG3mJOxzpqSlVLHN5JTyPr1ZvYwncLaaNsZcOQRuPQucRlBrVstpiY571hqMobWCogQfzMAfbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784711265; c=relaxed/simple; bh=bccwXNQenUNL/34CRL4LDK89BVReeKWKNV2TbCaS9kc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BRRCL9xJ58JOpXvkD8HmtOtFgkmEPN26Vf9bpJG2CHNud1qJeQNfV3odPkvWBFWyb7g6DwzE1hSejDlKyO+PhZ0GzHUU1hfLlzanKeioQE+qCRygSfnQXTvhYs9Cyod/QzxxWPk9VHpSo2BFt3y2DS4CCYhUjrDE5PkOJiNDuss= 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=FkUeQ+MJ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Vz1RSELR; 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="FkUeQ+MJ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Vz1RSELR" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784711261; 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; bh=MJ6My1kcc2rfpDz6JJvXAoGwCUk24EH1HlDzUbeVWZs=; b=FkUeQ+MJN/CV2+gCDEXC5NEoVjHuzRcPy81+10F/y2WHlGazF6iu0cotmcaqooCI8WwqDv HeTqXWXSGbhBUtOHI6KHhZ00Ng/Sk0nzzKGq2v9Y/gsyWXV/KmoQ6Wl80dxHMo3DyVt1GA J00eQZl3IFNTs+py0aqIlJfdfVrR9ypmnZNbt74OwLJoPtH23v+eZnPH9BgoR0HRbPSROx kFCCi769MaFgGufGl4Kf0Frr67I4UWIUh4XUKDKgcDCMcfB0Z5QCreLmpvSZGcwZrWgh55 ac4AU/7jGW4RnIe7kEBvfNXZXuHrCN51pLLwFZPP2e1PLOVYoOPJNEaNoG48qQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784711261; 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; bh=MJ6My1kcc2rfpDz6JJvXAoGwCUk24EH1HlDzUbeVWZs=; b=Vz1RSELRRH9mEkgLR5sQHkoxcUHB2BcKWdZ40rCthSS85yP4pIcJ+/8nmwlvLXXoI7dB2G uq9k2RVP9exxHpBA== To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Mathieu Desnoyers , Thomas Gleixner , Peter Zijlstra , Sebastian Andrzej Siewior Cc: Nam Cao Subject: [PATCH v4 0/3] riscv: vdso: Implement __vdso_futex_robust_try_unlock() Date: Wed, 22 Jul 2026 11:06:41 +0200 Message-ID: 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-Transfer-Encoding: quoted-printable This series adds new vdso futex entries, allowing user to address the robust futex race condition regarding clearing the robust_list_head::list_op_pending pointer. Thomas wrote a summary of the problem: https://lore.kernel.org/lkml/20260602084648.462672743@kernel.org/ The core infrastructure has been implemented along with x86 support. This series adds RISC-V support. The first 4 patches prepare compat vdso Makefile. The final patch is the main show. v4: - fix minor whitespace issue - stop touching -march in Makefile, instead use .option arch v3: - add missing include guard - switch to if/else for compare-and-exchange vs load-reserved/store-condi= tional v2: - address Sashiko's comments Nam Cao (3): riscv: compat_vdso: switch to standard kbuild rule riscv: compat_vdso: Allow *.c source files riscv: vdso: Implement __vdso_futex_robust_try_unlock() arch/riscv/Kconfig | 1 + arch/riscv/include/asm/cpufeature-macros.h | 2 + arch/riscv/include/asm/futex_robust.h | 16 ++++ arch/riscv/include/asm/vdso/futex.h | 14 ++++ arch/riscv/kernel/compat_vdso/Makefile | 16 ++-- arch/riscv/kernel/compat_vdso/futex.c | 3 + arch/riscv/kernel/vdso.c | 61 +++++++++++++++ arch/riscv/kernel/vdso/Makefile | 7 +- arch/riscv/kernel/vdso/futex.c | 87 ++++++++++++++++++++++ arch/riscv/kernel/vdso/vdso.lds.S | 8 ++ 10 files changed, 206 insertions(+), 9 deletions(-) create mode 100644 arch/riscv/include/asm/futex_robust.h create mode 100644 arch/riscv/include/asm/vdso/futex.h create mode 100644 arch/riscv/kernel/compat_vdso/futex.c create mode 100644 arch/riscv/kernel/vdso/futex.c --=20 2.47.3