Article View: linux.kernel.netdev
Article #18974Re: [BUG] bpf, sockmap: data left in ingress_msg is dropped without moving copied_seq, and TLS RX then warns
From: Jiayuan Chen
Date: Thu, 19 Nov 2026 05:59
Date: Thu, 19 Nov 2026 05:59
17 lines
8985 bytes
8985 bytes
On 11/19/26 11:04 AM, Kyuwon Cho wrote: > Hi John, Jakub, Jakub, Sabrina, > > While testing v7.4-rc3 with an LLM-guided test generator that we are > developing as a research prototype, we found that setting up TLS RX on > a TCP socket right after it was removed from a sockmap can find the > socket's receive queue and copied_seq out of step. > tls_strp_read_sock() sees tcp_inq() > 0, but tcp_recv_skb() finds no > skb at copied_seq: Thanks for the report. We have too many copied_seq bugs in sockmap now, I think we need to rework it.
Technical Details
Message-ID:
<01a31252-3194-4b2e-9327-f4eeb7a251ea@linux.dev>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366752-linux-kernel-netdev=dewy.ruReferences:
<179505708397.3511192.17406955708229395086@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366752-linux-kernel-netdev=dewy.ru From: jiayuan.chen@linux.dev (Jiayuan Chen) Newsgroups: linux.kernel.netdev Subject: Re: [BUG] bpf, sockmap: data left in ingress_msg is dropped without moving copied_seq, and TLS RX then warns Date: Thu, 19 Nov 2026 13:59:39 +0800 Organization: Usenet Network Message-ID: <01a31252-3194-4b2e-9327-f4eeb7a251ea@linux.dev> References: <179505708397.3511192.17406955708229395086@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2801619"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:PTrapS+aMJfZ4u5TRav0TPaqM/s= sha256:xwNZDB4ZIf4l586wgWwJsXW+b1CoS201rg/a7YYEGUE= sha1:mJn+MuEAqY/B8tYnCyh35e2UdfU= sha256:SwAYhCHet1LO8js9EUfkIoyN2RwP2/LwDQRctwezOm0= 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 D9159115503; Thu, 19 Nov 2026 09:00:10 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.05 X-Spam-Status: No, score=-2.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HK_RANDOM_FROM=1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev 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 UxDfspA-5eXq; Thu, 19 Nov 2026 09:00:05 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366752-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 77F50115501; Thu, 19 Nov 2026 08:59:57 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id F15B31A7D98; Thu, 19 Nov 2026 05:59:54 +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=1795067993; b=B08m4BkuYxF6ppjsMx/4Ta2X5Hh7E6nmQmisK2ptRtS5RlZRKby1lRwvbsA93BDn/b0J T9SS8Zy5/HrieJMPK41wugpI4HDxY1yjo7O2javS2LWnUGZb7WNfF41rjKacZNC3l1dPq gzDOTq1nc6z95x0LknRhwTLaRn1U4S0O5yRflQVF9K4h8YWzLPiFdmoCMW9Q+5qdENBgd 7w0n2JugMLvcHboAI09cgWx49zVXVsgwMLGPgC6C8KS8P+HteBHxtELYntDdcYBTQJC0k BkMt0dnz7qMqMffEuh+qV2fdL+EfFYmbP8QIc1+iq4eNQYsbBLXHvA4/4VR1cUulRTw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795067993; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=zJJW9ImHGeQI9HkBzIrCR9incErrDrQZ8U5oqxXIi8w=; b=BMzZKNMDv0Vrbpv5r7/d7Yf+YuDb4oGSjj/ziB2Ko/kq4FTUaeOelFcbh9r5aAKDi1QG eoWKpGpsL9PQc50cnUBTyyDEEqHU/ujlZ/ND2LZ8oY5QaIzpV34vg9nYh+q0vzqRu2Pj6 Z9IBMdxvrhfVnp30hYQNYCuzRCbPkefHmB5IUenb8vz/T80ufU8lfHL5/Emyt2es3JGEQ 0uBZRpONSXLCg5eD4rCcK9lUcOPazToDUNki3GwsureTCbU9+uLBDG7V3nQQBb/eGu/Wu xYMD49YW7G2WCJwk/bg8alUBh155v9Mx753tItkjUjqc5V61G//jzsjV66MTGp8eObA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=tpSCjllo; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; 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 B069B606A330; Thu, 19 Nov 2026 05:59:53 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=tpSCjllo X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.35 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795067992; b=rAR37K9/l+iyF9EWO/yDPQYz50Wgxaos7U9qSmPL3tVYz/nUIA0KiKW1gtN20YkuNdo0 49ra/R9vZtnfCM6vJEhfR2CHhk6XH8cwOC2urFdpUCSes0PQ0aFx5Rm+JGSLwiuqOEbVw JQLsZ3oMM6tpaiPSXUOQ+6aKTjdCF3aSrqY74nc6UaPeJo6sb57pkViBVIRQcZKCwDCdy tYoyn4TloMKuY1yOrkjBbzg7UdYSPuez8C7BFoFdKN2zFZzCnX09dMz2lsVqLlr+c3IdA 6YRBiCjkhRU9mdqnbhjqmgMHyMoT6jlzgFZ2EvoY3StQKVATCzfZMcL5UIT9MLQbmEw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795067992; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=zJJW9ImHGeQI9HkBzIrCR9incErrDrQZ8U5oqxXIi8w=; b=EBOtEilDTaMY9Vhho64d5SM7e/Kpj2nqFkmUXYNgIIegeN52cujqCy2lNh4cdnE46NdF Okk2DrOC29FH7CKF12Y4gPUuw+QBO6clRCgC0QcL2/CMIYsvUTZ8gqnOqcGB7hDU+yF63 q7cMOryRnwps2wZ+0SIH7osqkx4gxOGSHBKJ7XEmJ9nJFdCzHKvPtad3YSYCNTfUOZ2vC mEZ3vBibAfHTRBf4bqDwVg8tJf5Vwtl0+coodIQGT8k3401FuD4wb8tBTmpCqc8twD2v7 R/S2JbzDWlwSNH4K3wGKpHsJ3whXeRKUT6zcCmn7jyQi6pFMLxz3RWTv+94i9WvsXkQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=tpSCjllo; arc=none smtp.remote-ip=91.218.175.35 X-Received: from mta0.migadu.com (out-35.mta0.migadu.com [91.218.175.35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0309F606A320 for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 05:59:46 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0309F606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=zJJW9ImHGeQI9HkBzIrCR9incErrDrQZ8U5oqxXIi8w=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795067985; v=1; x=1795672785; b=tpSCjlloQ6hcZJFh5lmnsxKaU1HKE9z6Vi8cecHmFQOvJvo5kFhedCRr/9oALIMXLHphJc0b hJsdumD9/o4vCZrJ4WUNwmM+iu6+2S3wxzQamVOMaTmnGu+dZ/Nn8myjgKeGqzTnd2WvMIwq0RI GxjqTCHgIQFzZMpf1OZvvYL8= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id a21f34f1ed7e6d6b; Thu, 19 Nov 2026 05:59:45 +0000 X-Mizu-Trace-ID: a21f34f1ed7e6d6b X-Migadu-Flow: FLOW_OUT 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-User-Agent: Mozilla Thunderbird X-Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Jiayuan Chen <jiayuan.chen@linux.dev>, Alexei Starovoitov <ast@kernel.org>, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <179505708397.3511192.17406955708229395086@gmail.com>