Article View: linux.kernel.netdev
Article #4006Re: [PATCH net] calipso: update payload_len when removing the CALIPSO option
From: Joas Antonio dos Santos
Date: Fri, 16 Oct 2026 14:26
Date: Fri, 16 Oct 2026 14:26
25 lines
9473 bytes
9473 bytes
On Wed, Oct 14, 2026 at 9:39 AM Paul Moore wrote: > while basic CALIPSO labeling is tested via an automated test job, this > particular code path is not part of the automated testing. > Improvements to the tests are always welcome. Hi Paul, I opened a PR adding a forwarding test to tests/inet_socket: https://github.com/SELinuxProject/selinux-testsuite/pull/106 It builds a client -- router -- server setup with network namespaces and checks both directions: the router removing the CALIPSO option and the router adding one. On Fedora 44 (6.19.10, without the fix) only the removal subtest fails, with the forwarded packet dropped as truncated; with the fix all inet_socket and sctp tests pass, both as unconfined_t and sysadm_t. Until the fix reaches the kernel used by the CI, the removal subtest will fail there; I'm happy to gate it on a kernel version if you prefer. Thanks, Joas
Technical Details
Message-ID:
<179216077404.22091.15636720633867774901@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347377-linux-kernel-netdev=dewy.ruReferences:
<179138670045.80227.16292613517250896744@gmail.com> <CAL4WiirbJrQThGS4BUo=a=AV9ckJk2AyedO8AgJgozjHOwu5Vw@mail.gmail.com> <CAHC9VhT5w3K1MvmP=1Mxf6KKWZD5BbK14bVHJGYFN93080j5jg@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347377-linux-kernel-netdev=dewy.ru
From: joasantonio108@gmail.com (Joas Antonio dos Santos)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] calipso: update payload_len when removing the CALIPSO option
Date: Fri, 16 Oct 2026 11:26:14 -0300
Organization: Usenet Network
Message-ID: <179216077404.22091.15636720633867774901@gmail.com>
References: <179138670045.80227.16292613517250896744@gmail.com>
<CAL4WiirbJrQThGS4BUo=a=AV9ckJk2AyedO8AgJgozjHOwu5Vw@mail.gmail.com>
<CAHC9VhT5w3K1MvmP=1Mxf6KKWZD5BbK14bVHJGYFN93080j5jg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2788825"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:KBQ1BXnkWPXRnI4curPq0bGOeck= sha256:k9Ta7KUES5aIIIep1kybsantFSRN2qvaBalFybxR7HM=
sha1:/Hl2WocVU9FW0694xSCkkurSVxM= sha256:eNniKlYkRhXE0UrSiySEzS+OcZIsEBpLBwdD8BpMozw=
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 A72B4110540; Fri, 16 Oct 2026 17:28:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
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=gmail.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 j0X_p52l_cTe;
Fri, 16 Oct 2026 17:28:26 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-347377-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id BCEEA11049C; Fri, 16 Oct 2026 17:28:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 2995E27BAC; Fri, 16 Oct 2026 14:26:25 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 533D8360EFA;
Fri, 16 Oct 2026 14:26:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NRUpRL1M"
X-Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9EB735675E
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 14:26:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.179
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792160782; cv=none; b=JnrHvGbQK5ShuJduN97MciJXSzGp5eMFEOdgtJcnymvF/butJKeYaCf6gvfcHlEQ5XjQv0DU9EPvex8KDMbUh+UMGwHG87QQac950/X2KB3nxSeNMwOBK3U3ciTw1jK6XVNo0BopZ194rN2T0t1gOUA0BUAWExSRrDFbFVaIW98=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792160782; c=relaxed/simple;
bh=BA3ZOMsHyP2GTKp/rqwxW3xgiYBeA3bbd1xCYOxEnto=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
Content-Type:MIME-Version; b=pcqW0LzTsAdaYwb2ou8wYpRk8Tx12sUVcLt8lp2JsiGiFgox97sBzqoq9BqItVTWwfbzz0s/duKK+WI1v5EfOyqHT3vgQ2m/nodvS35ssfuJmQWC+GrV2EVz9a8VXjsP9S0rE7yL2EfRCloYJfJq5+rE8MbL3g73h32mT0UYaCc=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NRUpRL1M; arc=none smtp.client-ip=74.125.82.179
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-3535bf8b3e0so5288645eec.0
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 07:26:20 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792160780; x=1792765580; darn=vger.kernel.org;
h=mime-version:content-transfer-encoding:content-type:references
:in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=BMcQDGMpfF+Xt2i/WNjW/x8k2X+ctHzEstRfrAzmcvk=;
b=NRUpRL1MzMDAaRTXXFuHrqn4wko3xp/8JnOIn7pYQnxhCO99toCDQkZmTO/2bTJcnv
H27wEl9FegfrAHFdfBpSt9Yg3x5ZTbOiqmd1gsMZCczKn8TpsQ3iWwwuI50XfFtW3k5t
Rf+e2PaT7aVBSAL+fPosWssDsQo/R7fA+kfWTvK34LkN8M9S22wL9nbP5+NnwvxGVyqq
lPEQHlXLh36DzpNw6lokYGHVhIwzKehLN+PgmkUISoOyKg0o0TjZzoY+OLSDyNuRMze7
VwQ69ZsZRMMfvy6qwjuN7PWYzzWc2SXTVfU0OBrPlP8A2XRp1V89hx264PDzphYX6Z2G
41LQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792160780; x=1792765580;
h=mime-version:content-transfer-encoding:content-type:references
:in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=BMcQDGMpfF+Xt2i/WNjW/x8k2X+ctHzEstRfrAzmcvk=;
b=kSuhLSstLTOy7+nfA8YwQ2awTfrLQDj9Nab2TrVc941RRDijLdnP8vkFAYaGEZkN8z
RYJkjkzHcpIxBi2W2++FjgBKMWbhiEOvSR29BBRPsKr+Ihpx7FJsOGTQ3yyXBP9p6eBu
htuxSFB844ERzscHIZr561BUBdL/k2m3U5EFFTUwOeXbgdKPIuC4O7W9yYXw/wBAh/Jw
O8lpEwy4GnhCvKxayTg2Z7ZgajzWvyMmHAgpjQ1UmwKP0YNrWAhzxs7RXIKhIiQTxgs9
X/ducgySDNtTOcyxN16ypqokCbHAg1CmdwmnkIBiZvXIzXD/rDZlueYwbJeucYEnqF61
gmdw==
X-Forwarded-Encrypted: i=1; AKwUvBzoUCA/Wk6rYuapV9QRnuOWbBAZjm17KYsLma74j+l9ub0TkDZh68qB17qitFTjQcgUHhdRPCE=@vger.kernel.org
X-Gm-Message-State: AFq9FYJtJSHBt1V5gVj3+jf/RFnx6Gqtr0qbvPNtCj/YYHZJ8QjSgw//
rEJ+4yKLg24smWUANp0Kor9XiqqFHFaHsd4Z09K3l+p6LuEHcDfsPjI8
X-Gm-Gg: AYBFou0GSpASJFaJdlxeyh1rFnEUOSNxLmA0YUg+teq2Txb4FupmkfTCVi4gH3v0pFz
gyhBN1uwMfZH1deHG0qtUfroF5lVhtFHFjLzeJ59QU7ZtyWEhp6s3hz6HfCflv/K6Fdin/AHEf3
71H8wruhkCimN1MeU0rLoI/9ATVjQKEibGmcUCFIjBeSPPX/dU8v8AomPuwMXf9nqtfpCpndmaV
erarDTbkS1Ia+TRpcihG3O4HORTSXvlLWZyYg27E86atkHpsEOBE8yozQSVGGbIh1P1zJHP/9Xh
9b2ZwWmoVfTPNnzKJqZE4cj5yxDgdle+ciJM5HAUyG7l0TEKWLBc0eY0lgZAQDgZBvgSEfTBm2K
4fCGpbxjR1D17LVRk6dMYsSHQFEdRRoP5tAzwxC8cf3i997W/jyScldMia0gpbABcTDf9N2uKfA
+dZ+RyQJOoGM+LEsOS8v+R0g9PHqlsiZrWUaUSapVbTY/MpAIFRs4q3l/I17+GhJA8LN/6gpkjo
I6yKiGw7CmOtLSWYuMoPx5WUofzQhwUyCnP3YosbYvukFprnHRwDZUsQNQeO1qBpMa2XNct1fqy
ikm4b7KgCV4+naYbuOGVND+mgli0SXU9IKVtEYs1G3EOK3rfLT9oDQnC
X-Received: by 2002:a05:7022:28b:10b0:16f:c9db:c5af with SMTP id a92af1059eb24-185118eded7mr132172c88.11.1792160779405;
Fri, 16 Oct 2026 07:26:19 -0700 (PDT)
X-Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa ([2804:7f0:b100:ece0:b5:bb23:a54:ce61])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-18314ef8ed8sm6348059c88.3.2026.10.16.07.26.15
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 16 Oct 2026 07:26:18 -0700 (PDT)
X-Cc: Eric Dumazet <edumazet@kernel.org>,
"David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, linux-security-module@vger.kernel.org,
Alice Mikityanska <alice.kernel@fastmail.im>
X-In-Reply-To: <CAHC9VhT5w3K1MvmP=1Mxf6KKWZD5BbK14bVHJGYFN93080j5jg@mail.gmail.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>