🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6478

[BUG] net/sched: malformed UFO GSO geometry can soft-lock DRR dequeue

#6478
From: shaos
Date: Thu, 22 Oct 2026 14:47
30 lines
10494 bytes
Hello,

A PACKET_VNET_HDR AF_PACKET send supplies UFO GSO with gso_size=1 and hdr_len=65532 for a 524275-byte frame. qdisc_pkt_len_segs_init() computes an accounted length of 4,294,574,091 bytes. With DRR quantum 256, the dequeue path needs about 16.8 million deficit refills before it can dequeue the skb, keeping the CPU in the qdisc path long enough to trigger the soft-lockup watchdog.

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/8a4f7f445aa23601bfe8e04f9c6a5202/raw/f4ca89881f7b8163ddea72fbc54b204385142bb8/console-output.txt
user-namespace positive output:
https://gist.githubusercontent.com/shaos26/8a4f7f445aa23601bfe8e04f9c6a5202/raw/14de8e3a06e7e73c540ebf408e73d301bae3922d/userns-positive.log
kernel config:
https://gist.githubusercontent.com/shaos26/8a4f7f445aa23601bfe8e04f9c6a5202/raw/6ea0e3da68f1e239d565c64f7906d0f9c73bf784/kernel-config.txt
reproducer sources:
https://gist.githubusercontent.com/shaos26/e2add470a38b7aab41f2b79ef021accf/raw/7153646b9233fa53aca81c9af879d48e8f95dd80/poc.c
https://gist.githubusercontent.com/shaos26/e2add470a38b7aab41f2b79ef021accf/raw/e8acddd986023c10a43b5106b4734a456a063deb/drop_priv.c

Build the tested kernel with the attached configuration and boot a disposable QEMU guest. Compile the linked userspace reproducer and privilege-drop helper, then run the AF_PACKET/VNET_HDR test from a fresh user/network namespace.

Impact and prerequisites:
A process with only namespace-scoped CAP_NET_ADMIN and CAP_NET_RAW can keep a CPU in the DRR dequeue path long enough to trigger a host soft-lockup. With softlockup_panic=1, as used in the test configuration, the watchdog panics the kernel. This is a local denial-of-service issue; no memory corruption or privilege escalation is demonstrated.

Validation: Two fresh positives reproduced the soft lockup, including one run from an unprivileged UID mapped to namespace UID 0. The same-frame non-GSO control completed in milliseconds.

Thanks,

shaos
Technical Details
Message-ID: <20261022144755.65025-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-350620-linux-kernel-netdev=dewy.ru

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-350620-linux-kernel-netdev=dewy.ru
From: shawnq1@163.com (shaos)
Newsgroups: linux.kernel.netdev
Subject: [BUG] net/sched: malformed UFO GSO geometry can soft-lock DRR dequeue
Date: Thu, 22 Oct 2026 14:47:55 +0000
Organization: Usenet Network
Message-ID: <20261022144755.65025-1-shawnq1@163.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="237134"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Wq83Hx5Ujmfth0sW9zUhwfF4JJ8= sha256:71oosPfZU6UQDEWYLMCYSRJx+iKpMvBKQlaavKT3ftI=
	sha1:JoKBakv2cgahxqooXyvJdqYuWpE= sha256:tkIhRbESzFDa3o1WDkhTtYm8bXAh02rnmiCHngzipe0=
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 B80FD1112B7; Thu, 22 Oct 2026 17:57:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.046
X-Spam-Status: No, score=-3.046 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, URIBL_BLOCKED=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 tGP7_k9sXUZP;
	Thu, 22 Oct 2026 17:57: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-350620-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 989E31112B1; Thu, 22 Oct 2026 17:57:26 +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 737DC34908; Thu, 22 Oct 2026 14:48:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1792680508;
	b=ApkWN4vvKioPc8DbXrGRl89XLlyC8raLn3T27dub2NDBILbIefvdv3Hd4Ee/CinIJlvQ
	 LTW9c1kMpZDd3sVDMYd9xR2H/bGQVwVJvzcGJbOMWlSlp+11VaGS90LOWZtFi88wuz4lZ
	 +s5n14pxIFZjfnzStVZZ0pdwwVgrCUD2qcJDVC43HcurwAb4XOrRVIeVGusTN0+aspvTe
	 l6Y8mpzII7eDnRaR8WeHL5R/X2jJd3Xo3xFdDSRl3n57RffFyYKV58gviF1RCBi8ei+Md
	 05rtiwrt0z4w0bZRaNBVdsWp3kMzzjTTGGblrJNLAodJOCiihEZADuxptzoDrS238ug==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680508;
	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=XIsvbOAnIRW8H1+jITaPE6AgA1HppDDLCXUtfjSNNOo=;
	b=fy8w4SXQ2Zdv3AwBL2ICygOvhqZ7r9124uwzWiDu6snBqlyjwTvIxIV6hy0Z0ZLSLLfp
	 wapndW0AeMYry2SPcGREFxb3CgPSElTErltDfqeTt58XeCxR1g0MvhstqTj3fKp021L+F
	 G5kT/eQ74xuZMgQMfPKefDjiwfh5selTxIzSSMKs1+IFOcRwLtzH40FCeJPPanQGDZX0U
	 u5/vss9SwPFd33MCmAK3YInC98Pb/Ng5NoB4+izOcJfrMDqzEHAQZmrnSPcstcOBsmBNO
	 pR/9j+CFXQywkSfATnN4zeZh/vZYoSAgCEZ+CmwQe69n0kHru/v98WccbiqFOon6glA==
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=bQVhcy4W;
	dmarc=pass header.from=163.com;
	spf=pass smtp.mailfrom=163.com;
	arc=fail 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 3CB6B60A2618;
	Thu, 22 Oct 2026 14:48:28 +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=bQVhcy4W
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.3
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792680507;
	b=JEEfINdMqUDhzP3hnaURuD2YWe/13Cg5JToKtoLlYK/VdRB6wkyWLSs6jp9YKxGcgtzL
	 Lrspbr32mmYkVQE5dDs531uW9Bsg1wzIwA8CjlKzmz8bE3wioiz7T9lqAE2LcpKOElQ9k
	 9nYlGUP2LvVoONPJMwLMo31m1OB88cxAiaTWAQHO1+XgNq146OigmBoIiGVgq+fvLN0hB
	 qoP7XSxliP62QOdoPsxN/k05DQ2YKW8hluszcJ/vs4tW5HR8e3T/sSXzwIf8ypTcwTbmM
	 cwjMRCFTqt+jBpUo2UMOBTX7MIY5qnssIWFMn9hMJfFoH06Vm57PyA9+NY3CKwM/fUg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680507;
	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=XIsvbOAnIRW8H1+jITaPE6AgA1HppDDLCXUtfjSNNOo=;
	b=cWod/5iIvFcvL7Ztgxbvxi/l0tvw1HpzuNHy1GFpDIeRI77atADp66H8yjRAKDpgsaNB
	 J/tDk/pq+R0iZHX3OyqAulT2H73AFFt4UjaYB+bC581og5+7hHoRNdenkB21MlKD3a2K3
	 sIzOEgsVtyKUuDYlZRG77AjNdLTZUkZZFfiVQJ6t7FDlNjXDZ3ktXtX7KAE1E/XTX94nB
	 NLzF71TAb0nQ9eQSVmyRiDr941Rah1MJtiSjN9sKxCik0EnSavBUnH4ggbx2czxSYiFES
	 Ti5tkjxhdAU/0r14fVGUmPFK0diuPcw0FGNom6gC/BJWSNSODCXMTOfx4wQJXbsUvBA==
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=bQVhcy4W;
	arc=none smtp.remote-ip=117.135.210.3
X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.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 0E74D606A32F;
	Thu, 22 Oct 2026 14:48:25 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0E74D606A32F
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=XI
	svbOAnIRW8H1+jITaPE6AgA1HppDDLCXUtfjSNNOo=; b=bQVhcy4WNHo6CIKTcF
	svcdcED6/+/QyTtGg6CE4WtgNMCTSNPKwLoNA3lGcYeeioNMLlYbCArgWnVEcE/5
	ADy3OInDnFCya+qbxCcsuR8DuixTs5pKPEK/gsJl+NYk0YgkPRl88u32MxN6XEr8
	eHyvCaSiG0fEZ07ejDNM7Q6RY=
X-Received: from shaos.localdomain (unknown [])
	by gzga-smtp-mtada-g0-0 (Coremail) with SMTP id _____wD33wQbItpqVzhsCA--.3667S2;
	Thu, 22 Oct 2026 22:47:56 +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,
	security@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: _____wD33wQbItpqVzhsCA--.3667S2
X-Coremail-Antispam: 1Uf129KBjvJXoW7Zr1fGr4kZw4xCF1Utr4fKrg_yoW8KrW5pF
	yqyayayF17Kan8WF1vgFWkXa18u3s3Cr4jga1UXr1UZw43Cw10yr1Iy34Y9F97JrykKrZY
	va4UK3Z3Xw18XFDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
	9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UXeOXUUUUU=
X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbC8hzg7mraIhw2TwAA3X