Article View: linux.kernel.netdev
Article #6466[BUG] net/sched: failed fq change can still update packet limits
From: shaos
Date: Thu, 22 Oct 2026 14:48
Date: Thu, 22 Oct 2026 14:48
27 lines
9891 bytes
9891 bytes
Hello, An RTM_NEWQDISC request for an existing fq qdisc sets valid PLIMIT=5555 and FLOW_PLIMIT=6666 together with an invalid BUCKETS_LOG=100. The operation returns -EINVAL after fq_change() has already committed both limits. HEAD commit: c03c1a14507dfaf8b856c2608f9ac216021fc222 git tree: 30fd2ef82912c26cf3a58ad0ba6afc375fa851ac source version: Linux 7.3.0, local master compiler: gcc 11.4.0, GNU ld 2.38 console output: https://gist.githubusercontent.com/shaos26/990ab5ed350cb27e983ddd0848c760f9/raw/1668f34550b5cb0135f7fb73eae5a6b52e0751fd/console-output.txt kernel config: https://gist.githubusercontent.com/shaos26/990ab5ed350cb27e983ddd0848c760f9/raw/35a9dbfe64eb6405e86bb0c268e36a4d7238568a/kernel-config.txt reproducer: https://gist.githubusercontent.com/shaos26/990ab5ed350cb27e983ddd0848c760f9/raw/81a61b72ddf5329959cab7c32597b66cf3630e5d/poc.c Build the tested kernel with the attached configuration, compile poc.c statically and run it in a disposable guest/network namespace with CAP_NET_ADMIN. The program submits the invalid mixed request and reads the live fq options back. Impact and prerequisites: A caller with CAP_NET_ADMIN in the qdisc network namespace sees the request fail while two qdisc options change. The same valid limits can be applied by a successful request, so this is misleading error semantics/configuration drift, not a security-boundary crossing. Validation: Two fresh QEMU runs reproduced plimit 10000->5555 and flow_plimit 100->6666 despite -EINVAL. Invalid-only and patched-kernel controls retained the original values. Thanks, shaos
Technical Details
Message-ID:
<20261022144802.65536-1-shawnq1@163.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-350624-linux-kernel-netdev=dewy.ruShow 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-350624-linux-kernel-netdev=dewy.ru From: shawnq1@163.com (shaos) Newsgroups: linux.kernel.netdev Subject: [BUG] net/sched: failed fq change can still update packet limits Date: Thu, 22 Oct 2026 14:48:02 +0000 Organization: Usenet Network Message-ID: <20261022144802.65536-1-shawnq1@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="235348"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:OLGwYffhoeGbQOMdy22CFTBoMe4= sha256:loYiXPBlaW8DcMA2aPkKUvi9PTS9dVl78nYvAmhb/+w= sha1:hjsSIlk/5RIe/qC/z18XWO0MndU= sha256:Wm9BKmv8qav2yaSgbSXEfwR8dBx7gcQ2RUaEjBXoMxA= 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 0159D1112AD; Thu, 22 Oct 2026 17:52:41 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.147 X-Spam-Status: No, score=-3.147 tagged_above=-9999 required=6.31 tests=[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, 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 LF80B-_ls88v; Thu, 22 Oct 2026 17:52:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350624-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=163.com X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id F3748111220; Thu, 22 Oct 2026 17:52:29 +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 C5FA060F86A; Thu, 22 Oct 2026 14:49:47 +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=1792680529; b=ZsXr5n4T2SnJIIqfobWHX0z6Bhqo6Gs8giuaBwgc3PoUU0G9Y2+haOU1wGXUTBpUnO9e je9A6k5ASjlHdpGN+hOKvPlGOomRKRNqhHY6C2Uytt7WOOZ8iAql4DJtK+DJ6H2dOqWcC UtkrPQONzwBAjjqxb8ccpkNpecMvL8FN3qyszPptNZsRE8TtO1XtjT45hg6eKcMgx4/xG uc94gERQS30q8mt8GOI8F63fqby6/PxfiDjkXZp3MNN98mKiHXJeoDxBBvWlkMrTgD/6R VyaRf0PhKedVdXOYKKtuexSZpVxU9H2oh8lUVxS5O7ifP8VO3dasOdCWkvJZO0DMO6w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680529; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-Id:X-Mailer: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:X-CM-SenderInfo; bh=iliA7o8xLw3ABHh/DiDgbgcFqyXSbme0Bi2vn45Ht6U=; b=M+Sa3+kQCDXimZQAFnB3oMBkzrrL5ltCL+D/JaqrCmtkfYkwnsS+itetcczv/MO9YLUg vw5avY+AUmV27uAhc3I4p8SI+E6Xwpxnwr38LzJ2k0Fmw1XzC873VWN1AFWQAcSpfPuPd sX+RIMDUZgNGx6lEZUUpSDO6p9T+9M6gABWUeTnTf+Z4JHwcij5IjaKEu1k7YKaW9YgMx bLV0S4yIojJhqgJkV963k6/9OSgBcuMPEG9xIKUZR0NZx7gmspS2GHq8Tms/QV9cY/9yo xRL9fDSJfD3Qw6oIEt5pbgQGlMfTccYgo5emLzpS1xXUGy06v2uX5FMAjyHhSaCzJtg== 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="QAcx/jEb"; dmarc=pass header.from=163.com; 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 3E95660A5BDC; Thu, 22 Oct 2026 14:48:49 +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=QAcx/jEb X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.4 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792680522; b=hhi8wOrn/QRgOsAFCFlKy4I1gVdEMAkmyu/hc3S9X7r1/nJQJNvwFuu0RhK0Qm+mCrsI AHRKpLDLOyLtjwnmoZzFhSuwbE0fjfMLCuHnwwPvPNCTzi3JL5QBjw/OW5HO/03n4knwR Upjrnl06SdK/Vbqa+/dyBVofOcDIhqD+ztW8+y+sF5Aami7LfyVgmqOaDxmZT7GyKo0Wz o2tfc/d2Oj5kqfU0L0T4HPFAiMfJuUhQ8D9JcFTtnOJ1GHHWWujoEwEh57+l08SAPihvP GQsM+Hx+mRzs2wNTwb80v0sCrKXOkUKGB2ppwtT8dJc4gjZMKQtR1vmVgJrHXjMKxPQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680522; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-CM-TRANSID:X-Coremail-Antispam:X-CM-SenderInfo; bh=iliA7o8xLw3ABHh/DiDgbgcFqyXSbme0Bi2vn45Ht6U=; b=xfQorPL67qzFqwfRgmms3Osgp63FCCSH4U3+mQWBRig0DfWTUbFuAaX6j1InBqJvkg2r 0Zp7frIgRziPrsAnEdYoHyFPeSX2o2OXYqFh/dAASjQoV0Nj5yaWCS9tAkdzx2knUOEyB tyfX+1RQC5EeTOA+NZyb2hY+t9mkk27bVxOzX4R9HZIhNY8SQpeEm5TxSb68n0eCkZ8sf wrXZokud5diBEdvnyNdSHaqVsy1ZRNymxrUjcAljI0pO6KZQFdMoVdPO32Jx+3WBVswSE uWG6tb/UXEQOjmBZN8JpSHtbAZyxeuGaZgaigXVDglQCMmP8YXkByk3nDSptqylt4ZA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=163.com; 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="QAcx/jEb"; arc=none smtp.remote-ip=117.135.210.4 X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.4]) (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 BAE8F60A4ACC; Thu, 22 Oct 2026 14:48:41 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BAE8F60A4ACC X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com 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=il iA7o8xLw3ABHh/DiDgbgcFqyXSbme0Bi2vn45Ht6U=; b=QAcx/jEb4TvU2toM08 GJDt9zmwxFynf48SulfiuGnYP2aapjiaZ6Fq7zSUwgeZ78C8LWJbmWP8enzj08RQ aaZhTxplXeZ5fsYCfEBumqZm7QEHbu7vdrB75IvvrujNBH0FBXo4HgTH8gJFjhTq hxM6fdagKHG7/ozNDAC2B/x8w= X-Received: from shaos.localdomain (unknown []) by gzsmtp4 (Coremail) with SMTP id PygvCgAHOX4iItpq1Zq0BQ--.45216S2; Thu, 22 Oct 2026 22:48:02 +0800 (CST) X-Cc: Jiri Pirko <jiri@resnulli.us>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.34.1 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: PygvCgAHOX4iItpq1Zq0BQ--.45216S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxJF15Gr4UXFW8GF18Wry7trb_yoW8Ar4fp3 yvvFW5t3WDGF15Ga1kKFWku3W3WrZ3AFs8GFn8Gw1UZFn8Kr1UCr1Ik3y7AF9xCrykGa48 ZF4vgan7WF4ruFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jo7KsUUUUU= X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbCzwLh72raIiLLdQAA3N