Article View: linux.kernel.netdev
Article #5995Re: [PATCH net] net/sched: cls_fw: allow filter replace without re-specifying mask
From: Wei Tao
Date: Wed, 21 Oct 2026 12:28
Date: Wed, 21 Oct 2026 12:28
21 lines
9264 bytes
9264 bytes
Hi Jakub, > You are expected to reply to these questions. If this is an LLM-based > report please be more considerate of maintainer's time. If you actually > use this feature please include the response to the question above in > the commit message and repost. The repost should not carry a Fixes > tag, it's not a real bug. This was found during an LLM-assisted review of the classifier ->change() replace paths, then verified manually and reproduced in a QEMU VM. The hint came from the cls_route in-place replace fixes (41e85e54e564 and b72e025ac556); auditing other classifiers showed that cls_fw has the opposite problem: fnew->id is inherited correctly, but fw_set_parms() treats a replace like a create and rejects it when TCA_FW_MASK is omitted. I will drop the Fixes tag and post the v2 once net-next reopens. Thanks, Wei Tao
Technical Details
Message-ID:
<20261021122846.358290-1-taowei@kylinos.cn>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350004-linux-kernel-netdev=dewy.ruReferences:
<20261020135321.21517b1d@kernel.org>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-350004-linux-kernel-netdev=dewy.ru From: taowei@kylinos.cn (Wei Tao) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net/sched: cls_fw: allow filter replace without re-specifying mask Date: Wed, 21 Oct 2026 20:28:46 +0800 Organization: Usenet Network Sender: cs_taowei@163.com Message-ID: <20261021122846.358290-1-taowei@kylinos.cn> References: <20261020135321.21517b1d@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="4138988"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:M4oR/6AzmwPRgW4YqPF7PfEwY44= sha256:qZ9QBT5KVN+nh4Ri42WEGIIddbv+cqq0TWUnkAUgevw= sha1:rsgny29Y5foltAbeOx6yR9evgVk= sha256:vc7moIX+gmJP98iIXJlLonqewFIphATOMvWPkAtGe1Q= 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 7CCE8111001; Wed, 21 Oct 2026 15:35:08 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.949 X-Spam-Status: No, score=-2.949 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=163.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 XNQ7NBXYYhuI; Wed, 21 Oct 2026 15:35: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-350004-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=kylinos.cn X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 524C0110FCB; Wed, 21 Oct 2026 15:34:54 +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 22DBA3319A; Wed, 21 Oct 2026 12:29:44 +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=1792585783; b=bbMUIaCT9wIOewIgkX5VXZLs8/C1zP9naat3z2cATV1sDK97r2+sMjF5CXaVhlWsC4pR Nl+mg0nL6bdwXj9uls2Nk5Nbu7/Z+afhHlquX5kMkCySP7x3uPtk491v9JZYaBYgqYt6O bQ4U2ZzOXsqzC6DPHesBz4HZPYL+udDyuvMR9fFpHGr2HCzu0cqo5IGaMmjehPDM4yfXp ujSuKGaenOdSoZqdanNfDXTbLgMPfyYiPkk0btKRLAPonep7Xa4xOuN2LUErh4AELsgIP NcfBTi17D4ap6bA03/yYSvLZKGiGGypu1b4CKFiL4i9oRyw9I5f06xAVgb0ac4rFOMQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792585783; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam:Sender: X-CM-SenderInfo; bh=ALL6UWpxChP2qKHJAg1/hi5H4UckoPojIx6atEGve9I=; b=anHBFsghTvE10AAHeh2LoG20JE8DrMEKTUEgUMN8Lkez4qiCsxkOJnNJn2OhilTORo0M cs4Gl+FQ6+JHWkMg42bmK20DenU5P86YmABU3xWni88hdBtGqvlnXUWpNZhhmfy5x2QOI xaLh+BKcEIzr+jFjGRGof64KHAw2kVmtxTLuAOuyOHitZ233F1JUtPfIetJ2aR1lzz1KY 2Uk8v+v6wSu2S96xovkJociMEZ8TebJqkLGqiAI8PyxPsYCOibOF2tCwTcvmuMxNu1OVE ZThzXxRT8IbM7U4b6Oc1PeNLcvbRsRYZrY/CjtsmszWy4xc4rbnvNH7tgsTaObK/I6A== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b="Q1/VoNY1"; dmarc=none header.from=kylinos.cn; spf=pass smtp.mailfrom=163.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 6E40A606A320; Wed, 21 Oct 2026 12:29:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=Q1/VoNY1 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.5 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792585777; b=GOhte5OORcK2hJ1yByBv/twMCNOn9Ly7yF2Gat5f9klZD6shN2qBH4slTzuuT8Pvx3D+ wChLSgQTHknRcnJNKfGFg5Ebavy6Y0//b5CVqjIhz7IHWKouIBHwOwE/COZiHqpBMoA/M eQ9oBVvWlC+1I47cyoBHhmZBvFG+1khSUMvT1ZVhkWdbR0vcUaxS6SalvszPnrkhe0a5L vzsmQbHCLF7eCujJOVlrS4Sj+mXV0ErZmrAJfRITSKmcsNSQRTIvo7fUTBOsiqYYwQUK/ 4+v6l6pLwm+tT6M5/fwBxXTtZHbG4qpYjZWPVCRd3tNMZ8TuQrvGfz/KzlydtgSSAiQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792585777; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam:Sender: X-CM-SenderInfo; bh=ALL6UWpxChP2qKHJAg1/hi5H4UckoPojIx6atEGve9I=; b=JgLXHkEn0Nq1J1c9lrMCVUwmvH/y2dgoasFgFcHCfQXaiRNe7peIOEduJb0i3gvzxeq0 RsvNJMnKop+2usFYOAnzxPob6Gk6Sk9Qnoj2yUO0FNl6uFj0O/h4ULSkkuEz+lsIhMqhe oLXJG7fVV4cIDTlgRs3asGiFV9PEKedkjg+NLu/L9u8wYrBGpctaUHr93fT6K02GYLZLu SqWNSmtFeS4U+6jMw8iEGvaQQ2HXzdCpl56GjY2Y+j6yeUl2uaAFZTo7pZ3pTHX2L6kLt WhS8zEl9BShHY+N5/A9vWwukvwVq1KovCz0DZpeDMeFM5mCTBtkDaJ4B84wv8oJnnDQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=kylinos.cn; spf=pass smtp.mailfrom=163.com; dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b="Q1/VoNY1"; arc=none smtp.remote-ip=117.135.210.5 X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) (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 11CF4606A319; Wed, 21 Oct 2026 12:29:33 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11CF4606A319 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=AL L6UWpxChP2qKHJAg1/hi5H4UckoPojIx6atEGve9I=; b=Q1/VoNY1IzJHQMHBzC +tvRmlXqZQxj1xzZoNsvv5Zf1R7l4tJGXi/6rIAs7E1fSjB5zh5hDT0Gl2JrD2xQ /qbgGWFQfdwkSmWbtxiWYo+KSALgq4WxkES+lbOVr22AhuiVQsJC6I4oO/fHs9As /mRsiSl+NxHjCDCbJgerGEaY8= X-Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wD3v7D+r9hqCVq1BQ--.8535S2; Wed, 21 Oct 2026 20:28:46 +0800 (CST) X-Cc: netdev-bot+sinfo@kernel.org, jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.25.1 X-In-Reply-To: <20261020135321.21517b1d@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-CM-TRANSID: _____wD3v7D+r9hqCVq1BQ--.8535S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7XFW5XrWDJF47Zr1DtFWxCrg_yoW3KFcEka n5XaykWa1UXa1kXF1xKF4YvFZ7G342yFyUAryqqw13Za4DGrnxu3sakwnYvr1rCFWvqFW5 tFn5Gw1rAwsxujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0TvVtUUUUU== X-CM-SenderInfo: xfvb3tprzhxqqrwthudrp/xtbC4h77PWrYr-5DQQAA3b