Article View: linux.kernel.netdev
Article #6481[BUG] net/sched: rejected non-root taprio creation clears live mqprio map
From: shaos
Date: Thu, 22 Oct 2026 14:48
Date: Thu, 22 Oct 2026 14:48
27 lines
9963 bytes
9963 bytes
Hello, With a live root mqprio qdisc, request a taprio qdisc below a classful parent. taprio_init() adds the new object to its list and returns -EOPNOTSUPP for the non-root parent; failed-init cleanup calls taprio_destroy(), which unconditionally runs netdev_reset_tc() and clears the existing mqprio mapping. 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/d6cb2b6c066a10408dfa57513e998893/raw/40ff06d00c93a18c5f6e9cd5cceabfe8ac1ad5fb/console-output.txt kernel config: https://gist.githubusercontent.com/shaos26/d6cb2b6c066a10408dfa57513e998893/raw/6ea0e3da68f1e239d565c64f7906d0f9c73bf784/kernel-config.txt reproducer: https://gist.githubusercontent.com/shaos26/d6cb2b6c066a10408dfa57513e998893/raw/20c2e2bcbd51b34914e3a6571beb81777802e3cd/poc.c Build the tested kernel with the attached configuration, compile poc.c statically and run it in a disposable QEMU guest/network namespace with CAP_NET_ADMIN. It creates root mqprio, attempts the rejected non-root taprio qdisc, and reads the surviving mapping. Impact and prerequisites: A rejected qdisc request removes the live device traffic-class mapping and its subordinate bindings. The request is available to CAP_NET_ADMIN in the namespace; no privilege escalation is demonstrated. Validation: Two fresh final boots and a persistent-package rerun reproduced num_tc 2->0. A failed cake_mq control returned the same error while preserving num_tc=2. Thanks, shaos
Technical Details
Message-ID:
<20261022144824.67408-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-350631-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-350631-linux-kernel-netdev=dewy.ru From: shawnq1@163.com (shaos) Newsgroups: linux.kernel.netdev Subject: [BUG] net/sched: rejected non-root taprio creation clears live mqprio map Date: Thu, 22 Oct 2026 14:48:24 +0000 Organization: Usenet Network Message-ID: <20261022144824.67408-1-shawnq1@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="238356"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:p+tfD/G5+CV8uRN8aS19L2mG1WQ= sha256:vd6oZYbA7iOyHgwYAaJxjH8BjWxIFIYdH5fy84zP324= sha1:6dV3eoiCUDcgLeAegM+xsADt26U= sha256:o595Uj7zaPlxKgp1AFwigYvco+nqSHyBf2KBYkKOs6Q= 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 9FDFE1112BC; Thu, 22 Oct 2026 18:00:41 +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 OclxPFZdLa93; Thu, 22 Oct 2026 18:00:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350631-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 D232111129C; Thu, 22 Oct 2026 18:00:22 +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 8FC1D42458; Thu, 22 Oct 2026 14:50: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=1792680553; b=iY+KXX7nfKJ65kPCL5zzbBY6yJVEQv2TmEwOzd5c1Db+P0YuQ5d9DOZKOACLB4GArcVC LPZZqtw7D1jjZRqtteFB3aF+ckV0NtinYmpu4IQSf3Hl9LNEtsQ5rT/2jk0891RBDAdvs EA77dcS1aZ2RvEB24BB5vW9yaeRNlf4eEpkPbdmW6zr/qqXR6+uKTJC+ED5jyDf7dkoZ3 Yd7GtRuwZEPxnr8G2Bg8nBfSliw32RiWi1biBKzE7cZSmn2ombr3U6LEGv2od5ahDd5jb HY8Sjh81rTA/iP0kpwbUvzm/JSg+Qhj0bCZejpf49IJCqIM+QUrNP10xqmpsjT/eB2g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680553; 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=BD2YUmGBZ0fJuN8/rGz/WIoqbRwZ2f4JKzdSerHPyfA=; b=YrB9D7eOR//k+0Ccycs6ftmOrSOCZK3y81AbM+RRTcuxuXVT0YRswVsji9zUHhaN8OVP njMQw01DvJCsHnGmp61ZNc+7L8OtAX6oKqMDrT4DAhVGuaHcm49137r9MVEqFqj/TkzY/ N8IPe8g+VL7ucQITxjxSZg1yIw1uihZRYZ6IeMyzjBXxWQ5aP7DQ90AyPjAQXvTFjZao1 2Gr8oXq+lT9pGSiCthWLjdQE1AqbMcrDX3DplWCfve0ZvVcE3JNqpsuxw52TXq9Tvo+1q PnEtkhnW5BgMkEwcBZTTnDiVmFBFZsitiIQmURxoFmJVS/LXx2xfoQZ3MjBjKLWeN1A== 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=QHbc5L82; 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 06B44606B07C; Thu, 22 Oct 2026 14:49:13 +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=QHbc5L82 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.31.5 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792680547; b=A/xxbNOPZRXHetSunxsEQ2leQZ2FKPSwW3REPSJQHrfX9OH9yW9XxJrwfFSRoZkM8BON EQoKoUquThG3yQUr0DVYDwHPXdhh9SxSGSB0c0ZHMGb37ZwubJt1SYZYpPf2kJSy1vsPu s2RqbrLspuFHzouZh5ikwMUCrMmCpDu7/Rbl98WmsUYoK16Kec3RgoJhpiTkpXzmOA3S7 ZVPOKulwv6lZL5HhuQLYuROBO73HBGHlOmIOgW95PXZBweNIIQJg1q7ShDbps1fW/cbxZ ry/1oTt4nrtNP78EEoHvsLIgnkCEiHV4nuMLOTmbzs4CLNXlzLOfRldvuzcuGYucgVw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680547; 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=BD2YUmGBZ0fJuN8/rGz/WIoqbRwZ2f4JKzdSerHPyfA=; b=uPKaui4nCUY4vW0MBnUkbRLQyy0wMUoDAqWDwkDhaZCXnyX/lN/+SoMbIxEy9k75lFNI gFBsQrsLoFJg3aCezX2JGKyoNCyMjOxVbM4UNJWr8cC331mGc0LftVlZNGHjQID9oLWas WjSflZqj56p+BUth9zkDjZ+nFUhMm5QiW4elRhZxsb7mWyHVB/Ws8wQsKz+jBMO0jEE8C U/9AGWRnvmJ6e2qeay+gjAipCAJBJW+zpRQCXvvB/oHUSoKpyz7K3Xqsa7weUWMgvL1zn ISqF6uwpRUZFmIyLL1pBJZoyYn/i06yq1TynPMBUzmJqYdxnf5gmqy/6V9Ti9UcZa+Q== 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=QHbc5L82; arc=none smtp.remote-ip=220.197.31.5 X-Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.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 D2202606B040; Thu, 22 Oct 2026 14:49:05 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D2202606B040 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=BD 2YUmGBZ0fJuN8/rGz/WIoqbRwZ2f4JKzdSerHPyfA=; b=QHbc5L82PdTaNLvsWr ANfStZ2TaQHlv38AxETCBuBxbsXqGn5WT8t6G0wrllwBNR46eq9blELeZ10Fzicx JWFhWECu3JO2KcbuiU0aouQY+lJuOKrve7O2fI1EKDVJMT197AW5hCciRqQW08qm sr2d747xpxsFD9GOYbwBNkITE= X-Received: from shaos.localdomain (unknown []) by gzga-smtp-mtada-g0-4 (Coremail) with SMTP id _____wD3_zg4ItpqZHaSCA--.62907S2; Thu, 22 Oct 2026 22:48:24 +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: _____wD3_zg4ItpqZHaSCA--.62907S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KrW3AryUWrWrWry7Gw1DGFg_yoW8AF17pr Wvya90yaykWF17trs7GFW8W3WrXas3Aw43Ga4kGr4kZrsxCw1jyr4Ikay5AF97Jr1xGa9Y yrs8K3WxWw4vgrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07josjbUUUUU= X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbCzxjn9WraIjjNBAAA3m