🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20923

Re: [PATCH net] xfrm: espintcp: read the socket error queue for MSG_ERRQUEUE

#20923
From: Steffen Klassert
Date: Mon, 23 Nov 2026 11:20
15 lines
9693 bytes
On Fri, Nov 13, 2026 at 01:09:19AM +0900, Baek Kyu, Kim wrote:
> An ESP-in-TCP socket can have a TX timestamp queued and report POLLERR,
> but recvmsg(MSG_ERRQUEUE) returns EAGAIN because espintcp_recvmsg()
> reads the IKE queue instead. If an IKE message is pending, the same call
> consumes that message as though it were an error-queue result.
> 
> Handle MSG_ERRQUEUE through inet_recv_error() before reading the IKE
> queue. This exposes queued error metadata and leaves IKE messages for
> normal receive calls.
> 
> Fixes: e27cca96cd68 ("xfrm: add espintcp (RFC 8229)")
> Signed-off-by: Baek Kyu, Kim <pocj8ur4in@gmail.com>

Applied to the ipsec tree, thanks a lot!
Technical Details
Message-ID: <awQhec8RGS9nkoW1@gauss4>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369281-linux-kernel-netdev=dewy.ru
References: <179449975985.164761.7508657205685376308.c279-espintcp@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369281-linux-kernel-netdev=dewy.ru
From: steffen.klassert@secunet.com (Steffen Klassert)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] xfrm: espintcp: read the socket error queue for MSG_ERRQUEUE
Date: Mon, 23 Nov 2026 12:20:25 +0100
Organization: Usenet Network
Message-ID: <awQhec8RGS9nkoW1@gauss4>
References: <179449975985.164761.7508657205685376308.c279-espintcp@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Injection-Info: usenet.network; logging-data="3861093"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:celuIw8bdm3Uv3s8i22y+GeA88c= sha256:/BCusW1X80vrVXO3ySLgH/91BqLzb4KnfgpluLcQhDk= sha1:J4a1Os4i6fPVIRpUERHWHgM0GRQ= sha256:NoJccCZ97mPlbUJNJK3+aWmqrxEe8fECJB0tiDyhK/4=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id DE564125D9F; Mon, 23 Nov 2026 14:20:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=secunet.com
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F-bi4O1_DWOa; Mon, 23 Nov 2026 14:20:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-369281-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=secunet.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id BACC5125D9C; Mon, 23 Nov 2026 14:20:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id C1457601388; Mon, 23 Nov 2026 11:20:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795432837; b=gfP7x7hQ7xNcNvhlnfdWWHCbY0gqpkqCCmWYT/Ya2dSGYIGT/fX/LlCENDquFzLiI+Dd topaPjDQ9SlCXXYH3vWF8Pv57PUQ4tvnt4DIlxKfGA2SJFmRAEVZTr9BmXICa66ZQBNDG dit1uwdilgqpX4TAVnZsgSjPChn7XOtz6AbImDu2C0ALAscDjxQUb5XlR0Er7wg3zXmRi yy2d0Qbac/2vIGBtvNwFRLeJ/2JV7mXXtpxzvWPHEXZcCYIPdz8+TL5dWjCDsHf/nsUk6 mB/1Dgdl+/6wcBcE/bshXRqqe0hYAfmEdNTQTRY+VSkdUR/gXdO5cYfwVYgoLYvTdSw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795432837; h=X-Original-To:Received:DMARC-Filter:Received:X-Virus-Scanned: Received:Received:DKIM-Filter:DKIM-Signature:Received:Received:Date: From:To:CC:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-ClientProxiedBy; bh=myR6PcZJGPmoZehHTgfNLTaXUI6Jy0x0EK+RRCP7Bnk=; b=Pn7fcgA1n9OXNLXOvpDS303Z8fTmQVx+CSk0G4gZ/BNIeoAmeW6+SO4Un2BeEXIzl9J3 qvKlVyEb2en0K+lPmv6I/Q1Q9QuOyGCP5BltVzuC2QQ30vJrq1gVszRgGYXVjv7+Lu+Ju lO0Sos64lNpofvB2FMg3kWSqK+0LIZTtcwyfaZI6/OGKHP5MzUStb0ndKL9+g7NvIRoi4 XSvjaajGd/6FM4i0UCqoeDAo8Hh58i8mJiPc4NppH54EgyNyJAiQvOl+ZCrGFtLQ7WQ8Q W0L+7J5qhoP0QUqMLAqiUjXhoSImO+4aDRJ55h9gZdh8TRuE3BFP9eGcJZ0AXXeYrcA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=SLn6qVkU; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12668606A32D; Mon, 23 Nov 2026 11:20:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=SLn6qVkU
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=62.96.220.36
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795432836; b=vnJ1FTmFxWrwss/iWbVEcg7Ak84S3Qk+5eQNPUFlMCGEfkxFZXPBrtNVa77U0zSxv0IL uzLSNkbfGCMVbSd1oYSiWewEGO4qru92kBKCcrgTkwFS7lwqbK3NnW+utk74Vpj2DYJpD yJshdCuwnSq1dkQvl9+8JSJQA5HtkqB/SuuR9KADKyrk7zKdRwfx5O0cpunobTZo4DORI 0uzEI8XdGdboA+73ROsTisXWcoMnKnwI7V3QT76eEa723BHi+G1eOkVqy/B3UCShpsEpN UxMBWaNcpwQsrh26IA0vBVo0NWLlwu4t5Lhxo/38lxfWFNjXHarJEQIZZoMxMC5iNyw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795432836; h=DMARC-Filter:Received:X-Virus-Scanned:Received:Received:DKIM-Filter: DKIM-Signature:Received:Received:Date:From:To:CC:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-ClientProxiedBy; bh=myR6PcZJGPmoZehHTgfNLTaXUI6Jy0x0EK+RRCP7Bnk=; b=FkO1AJYtyqM4ZGUgEImtEpeAjRhDQo3DGvp0g+JFTmssHhYWKx+93aAmlTKhxQgz8BeG Z1uamKolLIfVxa/Wzp4drrxg4oF5cFBacPJHYW4yPxNJpAmfMIe2s8WCMpAYU+eMK28Xs IGKXxY38OHlZ9mYCas7+K1w5WtS1ydbqzN5jBkVT2Eg1aFa7bBJdSBX10SF7l9NwxELu1 RI3Y11Kgt9mSvZRq+HIn9jauMPOAhO0/CwdMCcS4gWFAaUTNHImNxqasHq4PDbQALGKks zB0sTydF8sUenom54a5CEPgO8XIMJbbb8OPEIX4cehjvT7VxxcI13qFAIaeSiVXyhrw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=SLn6qVkU; arc=none smtp.remote-ip=62.96.220.36
X-Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D7E7606A31E for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 11:20:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D7E7606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com
X-Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 44D11201AA; Mon, 23 Nov 2026 12:20:27 +0100 (CET)
X-Virus-Scanned: by secunet
X-Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1l3Tc0-JUl0t; Mon, 23 Nov 2026 12:20:26 +0100 (CET)
X-Received: from EXCH-01.secunet.de (rl1.secunet.de [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id C04CF200AC; Mon, 23 Nov 2026 12:20:26 +0100 (CET)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com C04CF200AC
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1795432826; bh=myR6PcZJGPmoZehHTgfNLTaXUI6Jy0x0EK+RRCP7Bnk=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=SLn6qVkU/9dsrmnSicwJUoLhXJV5AQNJVni6XEUSvr1W5I1K2psjgzCdhwi66O/cD MhtuYUJSslG+OUn5WcjEUEajU9EwuBh7lHcGlJyhdzBh3i/xe8Okd6/zLbhrTiZ/rp YR/8dqjnXZKAKTfQNYO4ZSHgEIwlVS3KEw30EgO2vUXoFYx1nzyHieJ/ZXkfRSIyUK KmY/97Z+dUQXE0CzgI3ArtUZYONLs7THG31ddresxHn3T+vpz+qr5NwtFt1vCyp3nk ZPmpTypZAUk1oCikIVda592J9i/f8ckbHs9wqSm8HGTIb0H7Y4L1owLd7KRBDzDbrb VCkbzN6NGvaMw==
X-Received: from gauss4 (10.182.7.102) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Mon, 23 Nov 2026 12:20:25 +0100
X-Received: (nullmailer pid 2088626 invoked by uid 1000); Mon, 23 Nov 2026 11:20:25 -0000
X-CC: Herbert Xu <herbert@gondor.apana.org.au>, "David S. Miller" <davem@davemloft.net>, <netdev@vger.kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179449975985.164761.7508657205685376308.c279-espintcp@gmail.com>
X-ClientProxiedBy: EXCH-03.secunet.de (10.32.0.183) To EXCH-01.secunet.de (10.32.0.171)