Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EE8603D669C for ; Mon, 20 Jul 2026 09:53:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784541231; cv=none; b=P1PHGks+pyG1NJ4ZQOc5Ei2Ilb02L5Zn20OFD67vtFVBwNYPp/boZG2KHo+7KNy0jTdZtF7oG+rhwndAms+y9SZ6F5CRijNddP6tKLFwirxIYtZcgN2bbtN+iWlPgtMQRGzIsLiw+y/641c0Vwtr/M8F4LtWbwrQRGrW11KwdvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784541231; c=relaxed/simple; bh=q1Cdm9EwWUg8gDruH9P6vbWHNIYszkk1wZHDsJIeQDk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=D2O8z40p1VR6Eqwno51r+LhMX3nIpHOAD3Ex+Cc+vXObHasPrZwkz3ZTDnzpn8qk18KSxXbtYucXsG0op/OSUcE7XJOBfgZbvOqYvlqIZxk+hsUJbaRpvXr2VVyRS8R4o2uOGZrwJ57pNxbHkstIJQZSuaMdkb+Dt52Ql08zo9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VXbKqoS9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VXbKqoS9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FCD21F00A3A; Mon, 20 Jul 2026 09:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784541229; bh=7i/mTt8/uXCOQgIIpzk0Q9kxxx1glApe6/o4OtLR3cM=; h=Subject:To:Cc:From:Date; b=VXbKqoS9Bs1E05Jwbw3cWBCOPRK4+DfjJ6Lte7xoQ5jgtciZ/b0CdiGnaHNgr76Ru RS2bup0uRMTExGR3Xdc5ny7Xj1GkHdYemC0fwU9dvAxu2DAIwiwrqwMbJQqm/y8Fay sK1DlpMc6T4hM/26VNqR30OD8o8sbumduifCrtr0= Subject: FAILED: patch "[PATCH] rxrpc: Fix socket notification race" failed to apply to 5.10-stable tree To: dhowells@redhat.com,horms@kernel.org,jaltman@auristor.com,kuba@kernel.org,marc.dionne@auristor.com Cc: From: Date: Mon, 20 Jul 2026 11:53:25 +0200 Message-ID: <2026072025-implode-raider-540f@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y git checkout FETCH_HEAD git cherry-pick -x e66f8f32f50116670dbbee5bc9e692cd2cd0c8f8 # git commit -s git send-email --to '' --in-reply-to '2026072025-implode-raider-540f@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From e66f8f32f50116670dbbee5bc9e692cd2cd0c8f8 Mon Sep 17 00:00:00 2001 From: David Howells Date: Wed, 24 Jun 2026 17:38:16 +0100 Subject: [PATCH] rxrpc: Fix socket notification race There's a race between rxrpc_recvmsg() and rxrpc_notify_socket(), whereby the latter's attempt to avoid disabling interrupts and taking the socket's recvmsg_lock if the call is already queued may happen simultaneously with the former's discarding of a call that has nothing queued. Fix this by removing the shortcut. Note that this only affects userspace's use of AF_RXRPC; the AFS filesystem driver doesn't use the socket queue. Fixes: 248f219cb8bc ("rxrpc: Rewrite the data and ack handling code") Link: https://sashiko.dev/#/patchset/20260616155749.2125907-1-dhowells%40redhat.com Signed-off-by: David Howells cc: Marc Dionne cc: Jeffrey Altman cc: Simon Horman cc: linux-afs@lists.infradead.org cc: stable@kernel.org Link: https://patch.msgid.link/20260624163819.3017002-10-dhowells@redhat.com Signed-off-by: Jakub Kicinski diff --git a/net/rxrpc/recvmsg.c b/net/rxrpc/recvmsg.c index f382a47c6eb0..9962e135cb73 100644 --- a/net/rxrpc/recvmsg.c +++ b/net/rxrpc/recvmsg.c @@ -27,8 +27,6 @@ void rxrpc_notify_socket(struct rxrpc_call *call) _enter("%d", call->debug_id); - if (!list_empty(&call->recvmsg_link)) - return; if (test_bit(RXRPC_CALL_RELEASED, &call->flags)) { rxrpc_see_call(call, rxrpc_call_see_notify_released); return;