🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #689

Re: [PATCH net] macsec: ignore inactive receive secure channels

#689
From: Sabrina Dubroca
Date: Thu, 08 Oct 2026 13:26
52 lines
11405 bytes
Hello,

This probably doesn't need to be called a bugfix that goes to net
(2554c08e16aa ("macsec: check the resolved SCI for duplicates") went
to net-next).

2026-10-08, 17:26:12 +0900, Sung Byeongchan wrote:
> The receive path looks up an RXSC by SCI without checking its active flag.
> An active child RXSA can therefore authenticate and deliver frames after
> userspace has administratively disabled the RXSC.
> 
> Restrict the receive-only RCU lookup to active RXSCs. Keep the RTNL lookup
> used for configuration unchanged so userspace can reactivate or remove an
> inactive channel.

Function names please. I don't know why LLMs are so opposed to precise
references to the code.


This is a change of user-visible behavior. I don't think it matters
because this flag is probably unused (at least, it's unused by both
wpa_supplicant and MKAdaemon), but it's a change nonetheless and
deserves a mention in the commit message.

(it's one of those things that I implemented because it's in the spec,
but that I should have skipped in retrospect)


> All three baseline runs delivered a valid protected frame while an
> independent state dump reported the RXSC off. All three fixed runs rejected
> the frame. RXSC reactivation and RXSA off/on controls retained their
> expected behavior.

Out of curiosity: why 3 runs, what's different between them?


This would be worth a small selftest, since we don't have a lot of
traffic tests currently. Just something that does:

set up everything with active RXSCs
send a few packets, make sure they arrive
disable the RXSC
send a few packets, make sure they get dropped
re-enable the RXSC
send a few packets, make sure they arrive

(this would be a separate patch, see for example
https://lore.kernel.org/all/20261001-fix-macsec-duplicate-sci-v3-2-0f179fbe1f2d@gmail.com/)

-- 
Sabrina
Technical Details
Message-ID: <aseaDtd5ys5Fom7e@krikkit>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342998-linux-kernel-netdev=dewy.ru
References: <20261008082612.350120-1-tjdqudcks0424@naver.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-342998-linux-kernel-netdev=dewy.ru
From: sd@queasysnail.net (Sabrina Dubroca)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] macsec: ignore inactive receive secure channels
Date: Thu, 8 Oct 2026 15:26:38 +0200
Organization: Usenet Network
Message-ID: <aseaDtd5ys5Fom7e@krikkit>
References: <20261008082612.350120-1-tjdqudcks0424@naver.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="890281"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:92Yycoh9g7Ol/ej3QZSF7QHHV0A= sha256:kSYQ5WeUS9wBouPHhesW8sdlvMtJ7aYtv+E4VkEALYw=
	sha1:by1kF6U6V6cEUvTjSs5LtKn5F9Y= sha256:LmkoKeYOrlhcbCItYRkFz69/fPSohgraJAUUglSHoDU=
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 30E9E10F402; Thu,  8 Oct 2026 16:30:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.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,
	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 (2048-bit key)
	header.d=queasysnail.net header.b=eAQb4LTB; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=gAszhTCY
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 xfl1a5vsa3jj;
	Thu,  8 Oct 2026 16:30:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-342998-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=queasysnail.net
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 2551310F3B3; Thu,  8 Oct 2026 16:30:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id B64DF2A7FF; Thu,  8 Oct 2026 13:27:36 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A7724AF9D5;
	Thu,  8 Oct 2026 13:26:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=queasysnail.net header.i=@queasysnail.net header.b="eAQb4LTB";
	dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="gAszhTCY"
X-Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152])
	(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 4166E4AE8B6
	for <netdev@vger.kernel.org>; Thu,  8 Oct 2026 13:26:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.152
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791466006; cv=none; b=Mn3ODrYKPkGs6AsyxZNcQTCIbYK+4bZ9Xqb4SIgLgktHcSxVuTasXMhEPkqsjYpeSa0Axvb5mUph1J/ji22LvmPFOwbrZMMDtBaJts/c68CctlS2BWtU1fM5adtEMGZ1MwqqaUuC7FqkLgoR8QMaskES6lsjX9yGdA80jFfLk68=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791466006; c=relaxed/simple;
	bh=i5DlOW+PyCMo5gC8B63qQaeCNTghqUUh8MRZ01bLvxU=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=kUT6KdYKnZO/70BytabD6gOMUrOtnx7tfhZ7RwP0PsfB2M0jm23E+U3BWH1My66xr4pIMdm1cPKI2Y8CDf8/Uf1/VMh3SIiYUG3iN/hvW0wYoTlQxEF8WdU3wWC4qeqrPa6oZpHjq//WXclnW5MAKDtAPxEKjguOT3X30AE1CjE=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=queasysnail.net; spf=pass smtp.mailfrom=queasysnail.net; dkim=pass (2048-bit key) header.d=queasysnail.net header.i=@queasysnail.net header.b=eAQb4LTB; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=gAszhTCY; arc=none smtp.client-ip=103.168.172.152
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=queasysnail.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=queasysnail.net
X-Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
	by mailfhigh.phl.internal (Postfix) with ESMTP id 277B71400100
	for <netdev@vger.kernel.org>; Thu,  8 Oct 2026 09:26:41 -0400 (EDT)
X-Received: from phl-frontend-04 ([10.202.2.163])
  by phl-compute-01.internal (MEProxy); Thu, 08 Oct 2026 09:26:41 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=queasysnail.net;
	 h=cc:cc:content-type:content-type:date:date:from:from
	:in-reply-to:in-reply-to:message-id:mime-version:references
	:reply-to:subject:subject:to:to; s=fm3; t=1791466001; x=
	1791552401; bh=BndLtfGqitJar+jheezYgK+fO26ay5IMvxPuookmzjY=; b=e
	AQb4LTBjBWyJLJ1ASo3BrIaqucY1JLYEmxGfMkabQhWZt9c2zxvfkCp3v2rV7Bcl
	jGgeLXePw6gf/7wM4FzXwvsuUOCIxEfqON10luxHixBUoto/vg7Ni7nLDGAF7ppm
	UYE+tPNV8xadpolEB7vn8U+Y5IviAv28DPV5ucXBwbv5x/KFEVW4kHSoAw1fOk6A
	hUdgvNYvVJkCPCevSJS/mtKGc/UAX6mxKYPlAuUHyQDLvopAVDyIfEf8Xb6j8wOM
	KUwA12T3ncg7W8T5sXvLCxpb7C4ebcJ2ljHpxTcTIdc1FZk5PDSJLqZiM1L72Jl+
	LhFoWAAqZ7+jqTjbd9cJw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:cc:content-type:content-type:date:date
	:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
	:message-id:mime-version:references:reply-to:subject:subject:to
	:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
	1791466001; x=1791552401; bh=BndLtfGqitJar+jheezYgK+fO26ay5IMvxP
	uookmzjY=; b=gAszhTCY60PyBzqXQAQftmwM1AAo8CB/POzQam8baiZXmVdumgf
	c2inuTzdxp/GEYz1rCNzBJNhmlB1+9urJemdBEBCOHC9E1LyRjaI/2pv//nrOnbf
	hiYbeDIUmZBMoCYjFdIvEdAMdppyU+PAfDp8zlB/0rdC6RvFoO367q93s23tUaU4
	1Bn2mKADp99oI4ox5Beho1hbfP6ASi6Suc91LMgzBRN0QbyCHQkem2yTyG8aywV2
	1siUffb22PTMGHnrcjmvu/5xBn6eg/d/VjlFRkjnV2EgudCkxDD0Z0RkqqpXc6o8
	lkbViNhcqblu7N+xN2cpQB7e/CyVUxcatPA==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=sign d=queasysnail.net a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1791466001; d=queasysnail.net;
	mf=PHNkQHF1ZWFzeXNuYWlsLm5ldD4=;
	rt=PG5ldGRldkB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm3:rsa-sha256:cgbTkNDoMqhG6SACltRk1y2VDK7YBa5h1CzmkyyFYjC5R4P
	ZhEY4TzbJDH8OZ9wuafLbXasCRb1Z+8oOvrIYBBegsyadBqNbUXysVHNs023VyiG
	1a9KmSdWWHwaeDDUlm9WDPTWZ+RcY7/2c9Fc5XxVgDmZItCST/ZxEuHFmImDlLNQ
	z6ScM6+VB9Ynd9lXdDw8oF7j4hsEynzzn1UqBy/pyzgIruEq0UfG1SYt+rdBDMsr
	UY8S1OvZhftXjnrjdgvp5WH0SgKBo61vEAJMdfwp0zk5xGqhf1km2ovk2xkxOphO
	jJq8XlkwPgcYqDYj4LU9Eq0JIJl87rpDb5+0GmQ==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=mi-m=1; hc=12;
	hn=cc,content-disposition,content-type,date,feedback-id,from,
	in-reply-to,message-id,mime-version,references,subject,to;
X-Message-Instance: m=1; h=sha256:6KUpLjbVEw/t+FvVx97O0BprUWv6YlDLxUp09EmPaX4=:i5DlOW+PyCMo5gC8B63qQaeCNTghqUUh8MRZ01bLvxU=;
X-ME-Sender: <xms:EJrHahHwVUQ4Nom_yBqIrySjml4uTUSsO_LvgT08eGnK2DO6Dq9S_w>
    <xme:EJrHasUchjSO_JLbzhvr9eWfQGHG44fjfPaZVd55AN28-DHuoq0EamtvB_b-UW6lS
    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otYdjiCG5hMlw7KDJP7kkJD4ecktKYxTcXs91A>
    <xmx:EZrHahyooZMIEJ5HsmkY2zG-HKL2OpwWGTUx3BfZA9bTX0mz8BUa8THd>
X-Feedback-ID: i934648bf:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 8 Oct 2026 09:26:40 -0400 (EDT)
X-Cc: netdev@vger.kernel.org
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>
X-In-Reply-To: <20261008082612.350120-1-tjdqudcks0424@naver.com>