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 262E242FCBC; Tue, 21 Jul 2026 19:47:38 +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=1784663259; cv=none; b=bEU6AKKsjB0wKqiZlVF8x2v0vb+HhcjVvn3GB8+cIyt6oQe6nBC7qji59nYSY6CFWtcPBGM490IyJP9czXlU8pijOPCgtJBqGOJjU/ul148fyvxnDBGjoJAGx8uvMxxUsbT2UR8pjLUa3nmdADlD25rSu30cJsOxr8RmBINVzS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784663259; c=relaxed/simple; bh=zj0GWjXq/c5Ze4UdfMfApQHpfcnnWmlnl/IdYAgiFGU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DPC4VD2gv1BjnoNoRuOtJBMEhaYBCsMD4S17yZep15YipCzfdE9Gd67j5469U3HusgyrWXRNYjOyuseVZucymj93Hi0ZFhvHftzvTmxaO8qXlmRjJdhwu72jS624NUMQdwkFvAQMuKJUpJSPMhAGc2/oZdAv9i8uRdidP7BrQoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zgMPSVQq; 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="zgMPSVQq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C5B11F000E9; Tue, 21 Jul 2026 19:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784663258; bh=PT8tPQ9RLtc4pYTHNA8RzL0AUc2ThlJg3rlAjN7tyB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=zgMPSVQq714FDRq/wBuUXUgIB43b2GVxbs5AN24vvHALIEL5F5Oy6TLIFm7DYMvrV 54Yx+rgPKTkfqvi1TuaF2Q7pCsBEZF4qXMRCEpJGyEUcqAI02XWYnDVqZQhFh2q8Gz AcjBEhcLPg00G3hrfk7j9jCQ9f0f52pmo8AOhTIU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Howells , Marc Dionne , linux-afs@lists.infradead.org, "Christian Brauner (Amutable)" , Sasha Levin Subject: [PATCH 6.12 0738/1276] afs: Fix callback service message parsers to pass through -EAGAIN Date: Tue, 21 Jul 2026 17:19:41 +0200 Message-ID: <20260721152502.596883499@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Howells [ Upstream commit 0f36469d7ce98b362934113c550d08bb0c784231 ] The AFS filesystem client uses an rxrpc server to listen for callback notifications. Each callback call type handler has a delivery function that parses the incoming request stream, and this should return -EAGAIN the last packet hasn't yet been seen, but all currently queued received data is consumed. afs_extract_data() does this, but the -EAGAIN return is switched to 0 inadvertantly Fix callback service message parsers to pass through -EAGAIN Fixes: d001648ec7cf ("rxrpc: Don't expose skbs to in-kernel users [ver #2]") Closes: https://sashiko.dev/#/patchset/20260609081738.770127-1-dhowells%40redhat.com Signed-off-by: David Howells Link: https://patch.msgid.link/20260622090856.2746629-14-dhowells@redhat.com cc: Marc Dionne cc: linux-afs@lists.infradead.org Signed-off-by: Christian Brauner (Amutable) Signed-off-by: Sasha Levin --- fs/afs/cmservice.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c index 99a3f20bc78691..0638cab00c6182 100644 --- a/fs/afs/cmservice.c +++ b/fs/afs/cmservice.c @@ -391,7 +391,6 @@ static int afs_deliver_cb_init_call_back_state3(struct afs_call *call) ret = afs_extract_data(call, false); switch (ret) { case 0: break; - case -EAGAIN: return 0; default: return ret; } @@ -504,7 +503,6 @@ static int afs_deliver_cb_probe_uuid(struct afs_call *call) ret = afs_extract_data(call, false); switch (ret) { case 0: break; - case -EAGAIN: return 0; default: return ret; } -- 2.53.0