Article View: linux.kernel.netdev
Article #6479[BUG] net/sched: failed fq_pie flow change still commits the new limit
From: shaos
Date: Thu, 22 Oct 2026 14:48
Date: Thu, 22 Oct 2026 14:48
27 lines
9871 bytes
9871 bytes
Hello, Create fq_pie with limit=10240 and flows=1024, then request limit=123 together with flows=0. fq_pie_change() publishes the new limit before rejecting the immutable flows request with -EINVAL. 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/76c412e475cb36c49649b9825e807ff5/raw/ae794ca3a9b896c8e195876de08f79b82f67c5f9/console-output.txt kernel config: https://gist.githubusercontent.com/shaos26/76c412e475cb36c49649b9825e807ff5/raw/6ea0e3da68f1e239d565c64f7906d0f9c73bf784/kernel-config.txt reproducer: https://gist.githubusercontent.com/shaos26/76c412e475cb36c49649b9825e807ff5/raw/3a875172daae5e614f50f4ec313e3dbb85893d1d/poc.c Build the tested kernel with the attached configuration; compile poc.c statically and run it in a disposable network namespace with CAP_NET_ADMIN. It creates fq_pie, submits both the invalid mixed request and the close controls, and dumps the resulting limit. Impact and prerequisites: The failed rtnetlink update changes live qdisc state for a caller with CAP_NET_ADMIN in that namespace. The same limit can be applied directly with a valid request, so the impact is control-plane inconsistency rather than privilege escalation. Validation: Two independent fresh QEMU boots reproduced the limit change after -EINVAL. Invalid-flows-only and valid-limit-only controls behaved as expected. Thanks, shaos
Technical Details
Message-ID:
<20261022144805.65699-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-350623-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-350623-linux-kernel-netdev=dewy.ru From: shawnq1@163.com (shaos) Newsgroups: linux.kernel.netdev Subject: [BUG] net/sched: failed fq_pie flow change still commits the new limit Date: Thu, 22 Oct 2026 14:48:05 +0000 Organization: Usenet Network Message-ID: <20261022144805.65699-1-shawnq1@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="237293"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Iwy1b7DuEZXxhoDjLWnfJJw4Jbo= sha256:Fxvo4pztOaAI0k1zDU3ydQ5UDodYW2i3B+rRQJ3sYLY= sha1:KHHy1wjWoYE1vxYa2t9O3mFY264= sha256:pBpPQcmzH9g8yzRygZqKnrNQ2OB/fAF5u0r4sJioOVY= 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 152331112BD; Thu, 22 Oct 2026 17:58:02 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.047 X-Spam-Status: No, score=-3.047 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, 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 RrLw2ag7gvcB; Thu, 22 Oct 2026 17:57:59 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350623-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id D4FB61112B1; Thu, 22 Oct 2026 17:57:50 +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 BDEE937204; Thu, 22 Oct 2026 14:49:40 +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=1792680526; b=QsweUqk5qDfDonvbDK9pmuAyamiPnZ5ROa+lm3S27Pxb0bYqSkrpTiLP7M9zIa7s8sw+ ytEZVifDoGqSWeXRMkCIeQ4I9PAOI/BjsVDfA9WkdILnSEem9+wqph9LqhiURkT8v3GXm GHVkAPn5Ycso89ew46Pyz91GmwvUV8uKdOnJSJNr5kgNBZx7KMoWGiND1G8Shu/P4uHeU Hl7q8v4Lph18/PIgGVNSuiuJo9AeOXQMigmu2uEQx2d73ooYazGiHuMYjokAC3Js88U4F /5erMjfnfPVuad9+UAylnc6m7ucwvEYLNGSsTunnHswiLlC3hhg14KsVkRI7CfhGugA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680526; 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=vm38/MPbNIU1t2ouDzv5D6+sE0FkxX+qIWQN96y4HJo=; b=cUam++1Nrzv1y1OyKwRNJEVKgsWsc4DnGs/JmaQ4plXC1srGPHc1kJbrfI8NpguNkOMj REDwD1Fg90NS34cWO/w3uE2pa+7eXF705hRZv9r87y8ohG5z+JlKF9zfmweCbCQqAPLO2 OM1/KZuNbuCUpazSj9uTas0JSh0KyEwP36ew/TFxglAHyI63PlAh8zELp3sk0wmKyrKZn 1R9WzXrEsA4VdeRgFHddkQMeyivgI6KrHsJk0L16rITY+JKMENFnr1xSQmGM4wNyTPuRP AQ03ytxg/np1RS4INn7QZwuJrWHLiRvEmMGoUL8xb2Q360rxporRa4DRoFH743lJVpg== 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=JW6ckQEb; 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 6DE1D60A5BC5; Thu, 22 Oct 2026 14:48:46 +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=JW6ckQEb X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.31.3 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792680520; b=ifKyzC3dGsYRlE+75gdYfHUIqoUWqFNvKU/R4qtzt3tiSc/HuAE2yAZu3EHvZfx61RoC 4EGu7+ulYRe2wndLVcrl97PlLf+SU6zwawqwdMp7xYTrm4D7/6o/uE9/lXMgDzvaH0qWL MTBrrPdkBRMxU+cYmzesm07pAc71mvu0oxJiraWjO9H8fJslaAYfNrtHPOymNzYMWF4ta FEJdhKyEcKM8VaersUX7yU8f0/PLhuSMRFk6TZwn0FwjG0Ug6fTZbu03MHFJQIVE1G/9Q jT/ZUK1D4ANCW36Mz5OID6Ju2Czl1XSKILaN/U7Rk9P4/bJj0rbERgF3b6BeYQGGPMQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680520; 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=vm38/MPbNIU1t2ouDzv5D6+sE0FkxX+qIWQN96y4HJo=; b=HgKXUxkf4k2XSdtTJPaGfszTrAX3FG5stsBZrmjB4l+PAyaMaYwm/5iGikmFVAN39Vj2 L+SGY7bSLrJx9S+ckYNvfXCqWVRx6cDRYaQ7hZvNLP+ImP7n3zxrblgJI3iQbxcIPeMPk d7GtRsfgCC5azDYzgb9ZsjTYFznCfU5CV7F+5NbJa6zu0MOoHJw8F/hIOcUmon/5O/ZmD Fs9nj7JPhO9AQSiTb4+pXZZhr8RGNsbUEs9IK4xdDA0KR3qLlX0OyFbTmxVpVAXU8o+uA Ovy9nU81Tg2Er5/FS1qL4AOo/ZZErkfOeV0UVESazH0AU56NzF7QdLPu6xPuzri0acA== 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=JW6ckQEb; arc=none smtp.remote-ip=220.197.31.3 X-Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (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 77E3D60A261A; Thu, 22 Oct 2026 14:48:39 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 77E3D60A261A 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=vm 38/MPbNIU1t2ouDzv5D6+sE0FkxX+qIWQN96y4HJo=; b=JW6ckQEbrSqHQDq7L6 8i7s+Xg6CopZkroisZtzuoLNTJfnvHJRUfuOOoDnKRXilBHPYtfdr/GyIct0g09y zWVPAANkdIZx0g4emkJyMC+a9xIFWKVK6ph3zZa7pkRR7DEsdYbb1ezoUje0W7jc ktvt/D/Lb1UI/MqRRjedoOCPw= X-Received: from shaos.localdomain (unknown []) by gzsmtp2 (Coremail) with SMTP id PSgvCgB3sQglItpq+dZbBQ--.34036S2; Thu, 22 Oct 2026 22:48:05 +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: PSgvCgB3sQglItpq+dZbBQ--.34036S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Cw13Aw1rGr4xCrWxXr4kXrb_yoW8WFWkpr Z2va4ak3WqyF45W3Z7KF4xu3Z2gwnayrW3JF95XrZ5Ar43Cw17CrWIkryYqFn3ArykG34F va1Iga4vga15uFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jo7KsUUUUU= X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbC0Abi8GraIibdrgAA3D