From mboxrd@z Thu Jan 1 00:00:00 1970 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 666043D811E for ; Mon, 20 Jul 2026 09:53:44 +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=1784541226; cv=none; b=IHdUIBr7R4rm3QQ2yOTcWQ8aTPa4of0Z5Y3AAQFy4axZLNN5wFcIFgas49UBWxvDSEcmHRh8/xyIPJRwUeftacSArpPspldtYusIEew1BXu1fYCgZHegH7dyA6HMxMtpK8Xavy/5z5o15TizFt16TtBWPxVhp80YaSRh777e7Hw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784541226; c=relaxed/simple; bh=nydqANJm962sckL523E7msHrvDF8HoTLQZFcJOKrRaQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=G7OAkM08uLe1GsaikA9WEFDNVxsg/sMPF8M2YPKLGTDsfNXGssHJUfvR8OpABJJFL/pg2ScjjJQGp1tXg2c5boRVibvAn/B5XPZoUl36vBFVZ+yHRfRJXTni/39adq/SSWQxo4EX9h5Ktg1C4V8lRwz3njS4ScphJTqV8xli3wI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wP1OZTFs; 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="wP1OZTFs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32E0B1F00A3A; Mon, 20 Jul 2026 09:53:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784541223; bh=cEEBDo9x+XEYdAX/1fG/N4qSD1K+chMdMhgTZ0GM1PU=; h=Subject:To:Cc:From:Date; b=wP1OZTFs8v2mHgWB8BCzo6ZV2bxIUxvIs0FQ0J9+IaAVNFTahj7AgWx4iq4PGaxXH Cj76SR7Ag7sTsXvdZB9MW7J4WjgPSiew5WHWwMGDNuTmlR2e0oDQjfIBRpogJuWVsW t1XEaofd6hnstjdF4UXFDgLgnBB6Q7RckkimUOpw= Subject: FAILED: patch "[PATCH] rxrpc: Fix socket notification race" failed to apply to 5.15-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:24 +0200 Message-ID: <2026072024-trench-preplan-05a9@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.15-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.15.y git checkout FETCH_HEAD git cherry-pick -x e66f8f32f50116670dbbee5bc9e692cd2cd0c8f8 # git commit -s git send-email --to '' --in-reply-to '2026072024-trench-preplan-05a9@gregkh' --subject-prefix 'PATCH 5.15.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;