Article View: linux.kernel.netdev
Article #15154Re: [PATCH net v4 2/2] xfrm: fix selector matching for IPv6 atomic fragments
From: Florian Westphal
Date: Thu, 12 Nov 2026 13:20
Date: Thu, 12 Nov 2026 13:20
9 lines
7523 bytes
7523 bytes
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr> wrote:
> + if ((flkeys.control.flags & FLOW_DIS_IS_FRAGMENT) &&
> + ipv6_find_hdr(skb, &offset, -1, NULL, &fh_flags) >= 0 &&
> + (fh_flags & IP6_FH_F_FRAG) &&
> + !(fh_flags & IP6_FH_F_NON_ATOMIC)) {
Since you need to send a new version anyway, maybe avoid
double-neg, i.e.: (fh_flags & IP6_FH_F_ATOMIC) ?
Technical Details
Message-ID:
<avW9OrfvkAF99uP_@strlen.de>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-361855-linux-kernel-netdev=dewy.ruReferences:
<20261109213803.1785516-2-Jeremy.Jean@oss.cyber.gouv.fr> <20261109213803.1785516-6-Jeremy.Jean@oss.cyber.gouv.fr>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-361855-linux-kernel-netdev=dewy.ru From: fw@strlen.de (Florian Westphal) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4 2/2] xfrm: fix selector matching for IPv6 atomic fragments Date: Thu, 12 Nov 2026 14:20:58 +0100 Organization: Usenet Network Message-ID: <avW9OrfvkAF99uP_@strlen.de> References: <20261109213803.1785516-2-Jeremy.Jean@oss.cyber.gouv.fr> <20261109213803.1785516-6-Jeremy.Jean@oss.cyber.gouv.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1092395"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uhFqxQB3SGQcrttQSMp1K3E1Ajk= sha256:Wyiw0S4XraQAyf7RYHpq1g+GrZz38LJFR71qkJjdAEQ= sha1:FfH98l6HJBKE6DAzvpdqJ2Nf2Rk= sha256:17ust7Gf9RGZBY5k+S48Lti1ZOcbd8gS2fIrKgeM3oI= 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 6FA1111424B; Thu, 12 Nov 2026 16:23:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[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-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 skx_F62r1gMK; Thu, 12 Nov 2026 16:23:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-361855-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=strlen.de X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 646FB114248; Thu, 12 Nov 2026 16:23:41 +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 55FB9621A1B; Thu, 12 Nov 2026 13:21:45 +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=1794489674; b=H4LwauovsMpA3apHkejiCB/RDl1XdyUbLkml6rUxEAJE3eLvnaLI2FblNY7ZZDUZC9OC Ou40zqGORbBiALJeJLqVydxwOhFrREjpSKHC6e6CrPqA3YsqkcnL+O0KCZVlyiLt4ioN/ w8AqeQlkomI/u1buq80J5sXT+utdXQ5YkeMpAknSppbdayOz7QacPyJf5191+qoldp7Lq RqK6Cg4xgOz5kGPXpmaw/xRpVyk1y8B+MoUKevojzoFyKFUxlwlWKRDhrxtLzOynVqcX9 2bc1q8uEuZy9m84M736T/qxHkuBbwqcpqbkxqAxnp4Tn4wS5vvBoDB1g62rlHbDkgWw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794489674; h=X-Original-To:Received:DMARC-Filter: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:Content-Transfer-Encoding: In-Reply-To; bh=R3hdk29zJfSKaQC7f5o/MlPMpOfwLVhFpVG8+0Hp5xU=; b=0npLeAywks3JJD/dmrb7IuawQFe47NfvVZ3j29O/JgsoiTt9zud9ovM+1+DLSC5M/Z5w 8jSd6iKsaJYerT/fQvBQIAoySA56vj4VDR+Qo/W/QXuc8J2eAdAjw2je329wOYSV6e0lH rFn7p0OKf4omqJqq3p0FL7+Gy5zTid00/fjQSQwkcWo6RBCAsP/D9q511T3ND8u4oGNgm o6q4svv4fOGsdADvhzydzQLMyWZvdFUJ1xFF3kg7b4e8KjNo0gISvGaZ/rqAV3us3HI8A y0eAPIiDYzB1lEiCucEiBjrRDVCPNyMicUx1ZYQRfHdjNT1J3FdecPjFg8mNIedKpOQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; 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 341D2606A334; Thu, 12 Nov 2026 13:21:14 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.216.245.30 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794489668; b=RV9GGx7E50ZfOr9NC5Lv+kzy64sD6alZhs+nTceauuoCAKC8RIQ+W3+m8BNv63yQ05Aq 0I3OR//ESi78/RUN71JMfc3SIrbePcwlvnYACR0ACuP4Amw8YDvXJbLfSEnCXejBAxCmP LC7875ffjk7RTLwxqDinZ/7rApS7OSOwni5jvsYVlZhubrsSCGdxbmW6VhS0F9+kaR8Sm iX/bGYz8R5jN4gWTlcEiHH39XhBhFWgiHl0YAuaPcbbTCsbZavk1t1sw2rvLxiMr6jj5M w1hgr6MzNvJa2Jio5nwK2ZmGtKdbwrdqy3GU8vKoeQn0E3XADDuT72Fvru5sONuye5Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794489668; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=R3hdk29zJfSKaQC7f5o/MlPMpOfwLVhFpVG8+0Hp5xU=; b=nI+xg+akdreo2mQGEvMFTSFMM0sfG6877s64fiw+nserxHU0QyoobN+kp5AFrAoegHz5 HCX6CjFV1wE/dg7GLNEJ3y2IMubkXMon41SljpH17S3kRxxC9A8RDjm6gwIHfQpqNILxq t2UfYkZd9Z/+K83JU0Iq28gpIzuTLWUMSRCYUV6Sq1frNkdwhSD5HthXbNRyi1fv3NZs3 Q8TX+FnkWztjHfSEGa+4tFvSXiZTKIMcYama3tdIJJk3LnvuPYJF2DkEG0TGuKeJGkC2m Mqe1WwiM7SsThi3poz6OUTPCRTM2CMbbwH/frob9KIUfL1JizAIMP0TKbubX7TIwKyw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.remote-ip=91.216.245.30 X-Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A597F606A330; Thu, 12 Nov 2026 13:21:07 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A597F606A330 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de X-Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id 1D025602AB; Thu, 12 Nov 2026 14:21:05 +0100 (CET) X-Cc: Steffen Klassert <steffen.klassert@secunet.com>, Herbert Xu <herbert@gondor.apana.org.au>, "David S. Miller" <davem@davemloft.net>, David Ahern <dsahern@kernel.org>, Ido Schimmel <idosch@nvidia.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@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: <20261109213803.1785516-6-Jeremy.Jean@oss.cyber.gouv.fr>