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 7F10D3815E7 for ; Fri, 19 Jun 2026 14:11:32 +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=1781878293; cv=none; b=aFesk+4+iTszOUPoZ1eqlJuQK47VEITe4+Wb4e90QNbCrzuQsjub5T+3KKmYPGwZid4S8zyUn+/w/lZ8NwE2aCxDu8rgJJbHKCa4QV++Z/y1U3o9hDLe+061F84KMtFjUSnlBrZj8hGL5oer9CkL3r7upmuYO4MMha7bJcdjF3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781878293; c=relaxed/simple; bh=Ow2EtZdrNG+85Y6WrIENeEsZ7ioJyDBS0psK+VcnbcI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PT1aAxB9/pBGeKhM++V/DwEKygA236T2iP4zJt+bC3pc1ekL8RAxFS98lsK4sNqxQDJfwlJSQ2tDr2abAEQxRgPHvP96OfUBjpabbRBtS2m8k/A3HTMMmndrXKahPKuDwG6IQ40Hwp0pWxKvrr/7tk2ie85lwuhx/NuQ9Xi2wvE= 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=dnqKsWYb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=oNRmoxKw; 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="dnqKsWYb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="oNRmoxKw" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1781878290; 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=bIkCcr3s/ET6GXkklbPYzwQfPQJ0+2OoEtXusV9PgKc=; b=dnqKsWYbwOF6Sr/ovR9wYxFtTKLMrRUtbLObMbW8Ug2tjqxgJJYCzBOt3XrNHTRnJSUPeu UwaSENsy7T8xeSLDhYSwBrJbAXaQ57igXnGD63EWeJ9546LpL9alIa0ZWy+laK5bK+Wvd1 TZm2mA+dXRJzuPAVvTWoG7G0sqGGvai8GPd73mfvEjA9trlNc0ddeMA0aukvzf/pe52yDI mUb07+tfwifVvqLfRQ45TwKKGZuRXfkjAK+mllB79oipHjxzM1E1lhSfPGDwD6oFpY1iE5 l/Bs4DR/KMyTpaZN11zholcGe7xpYIAlZARrOxVMn/5odr3E9sDwCyK4GChl6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1781878290; 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=bIkCcr3s/ET6GXkklbPYzwQfPQJ0+2OoEtXusV9PgKc=; b=oNRmoxKwXPy7YYIPsPfwddBgExKgxjxoOYBXFZ28/T1lI2Oc9vRthZOD4z8u/9thcR2oMP rBjFKKYBk76G4mCA== 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 0/5] riscv: vdso: Implement __vdso_futex_robust_try_unlock() Date: Fri, 19 Jun 2026 16:11:16 +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 | 26 ++++--- arch/riscv/kernel/compat_vdso/futex.c | 3 + arch/riscv/kernel/vdso.c | 56 +++++++++++++++ arch/riscv/kernel/vdso/Makefile | 14 +++- arch/riscv/kernel/vdso/futex.c | 84 ++++++++++++++++++++++ arch/riscv/kernel/vdso/vdso.lds.S | 8 +++ 10 files changed, 209 insertions(+), 10 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