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 74E96274652 for ; Thu, 2 Jul 2026 13:34:52 +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=1782999293; cv=none; b=qw0a8VYD1lVd7uuykQ0J7cIZgcJGrAnIDj3dFDts+eftHNvj6xBayyURGj5/cRS8fUhy76zgXMmoBMSDsnMKMH4ma5EshpLJ6tXc77QvoAGz2xQ1hjMvEGxBKP5iHtAlIMLeKOz9OsBAeAtCg9XOLKflmay/mpitCpqiSvz/Ht8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782999293; c=relaxed/simple; bh=pXzfJbTH/byNavVH7gsvdbn8B3/RjSncKvI6Zv9H8xA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uXnVUeTZSII8moCvX+7a9VlN4nJh4l3YnqCPX1zQz5+P46Dy+YnPnAo5Q4oviOtKFsngRI4BDWYCQ3vCgtKZBnLgmevqToKyvzpNGdQmnyKmL/4ifJuUeB5SP6lqgzHRtp9sf7jygNGEcSoCkU6Z/fIuy8ZyymdhyedPMHHz5SQ= 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=pKPKhvYQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=srcclTVt; 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="pKPKhvYQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="srcclTVt" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1782999290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fgaEeE4rkfFa+pYvFYVTAxs9hRvx+lYZqfvMiA1sh6s=; b=pKPKhvYQ/yeSjvNaokKeHUWiNygbXfB2aAU/X1st8O//kL7w2bjQrwCm1WhVf1bUdHOUl6 uE1CPkiM2citGWvPyJsoc7vSAjo45ryHqg3ed7NQsWS3kepmeJweYks0Ipe8X+lQr7Agnr KIM9FZkHxB+Oe92Y0aDxn5CokLvTmM7M+pjGzHENHe8pjDe7buJZgHPwbv1JfaHssFagf4 Nr03p13m9jA2f6UW5MzwPqDf/MEzAr4my0dONnaE3aRZn289VTMIRYzBwEQCc/A/jtpwWW +PR7yx4YzOMOM4HVbSzLesch0nOAL9VOsEPO7UHoXdWf4LFTuv7aFVHzFSsJJQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1782999290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fgaEeE4rkfFa+pYvFYVTAxs9hRvx+lYZqfvMiA1sh6s=; b=srcclTVtTal003qWKqa5yZeRxmK8qY+yAU+v3YLnyX75/na2V8rLsOO3NXdK4eg6heUsSO 80b8y7XqnU/4/8BA== 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 v2 0/5] riscv: vdso: Implement __vdso_futex_robust_try_unlock() Date: Thu, 2 Jul 2026 15:34:36 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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_pendi= ng 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 ma= in show. Nam Cao (5): riscv: compat_vdso: switch to standard kbuild rule riscv: compat_vdso: Allow *.c source files riscv: compat_vdso: Introduce COMPAT_MARCH variable riscv: compat_vdso: Build with zacas if available 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 | 9 +++ arch/riscv/kernel/compat_vdso/Makefile | 27 ++++--- arch/riscv/kernel/compat_vdso/futex.c | 3 + arch/riscv/kernel/vdso.c | 57 +++++++++++++++ arch/riscv/kernel/vdso/Makefile | 14 +++- arch/riscv/kernel/vdso/futex.c | 84 ++++++++++++++++++++++ arch/riscv/kernel/vdso/vdso.lds.S | 8 +++ 10 files changed, 210 insertions(+), 11 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