🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6492

[BUG] net/sched: act_gate cycle time can wrap hrtimer expiry to zero

#6492
From: shaos
Date: Thu, 22 Oct 2026 14:47
27 lines
9926 bytes
Hello,

An RTM_NEWACTION request installs act_gate with base_time=1, cycle_time=UINT64_MAX and one valid entry. The unchecked cycle arithmetic wraps the absolute timer deadline to zero; the hrtimer callback keeps restarting immediately and the add request never returns.

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/5393c0a25cccdd0b182a72de6d245c78/raw/3498a27c8537da1604402fd68c433e47de80f0dd/console-output.txt
kernel config:
https://gist.githubusercontent.com/shaos26/5393c0a25cccdd0b182a72de6d245c78/raw/e1458ab0ee43d1aa31991c1e3435cf9fee7635f4/kernel-config.txt
reproducer:
https://gist.githubusercontent.com/shaos26/5393c0a25cccdd0b182a72de6d245c78/raw/9cf01ec7c86d32377ec34a6fb0e6b4b214a5e931/poc.c

Build the tested kernel with the attached configuration and boot it in a disposable QEMU VM with softlockup reporting enabled. Compile poc.c statically and run as a process with initial-namespace CAP_NET_ADMIN. Do not run on a production system because the positive intentionally stalls a CPU.

Impact and prerequisites:
The watchdog reports a soft lockup and can panic the machine when softlockup_panic is enabled. This reproduction requires CAP_NET_ADMIN in the initial user namespace; it is a privileged denial of service, not an unprivileged escalation.

Validation: Two fresh positive boots reproduced the lockup. Near-maximum-cycle and patched-validation controls completed normally.

Thanks,

shaos
Technical Details
Message-ID: <20261022144732.61188-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-350616-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-350616-linux-kernel-netdev=dewy.ru
From: shawnq1@163.com (shaos)
Newsgroups: linux.kernel.netdev
Subject: [BUG] net/sched: act_gate cycle time can wrap hrtimer expiry to zero
Date: Thu, 22 Oct 2026 14:47:32 +0000
Organization: Usenet Network
Message-ID: <20261022144732.61188-1-shawnq1@163.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="241538"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cLKsGkZbve1THNtEo9NtHWy4FeY= sha256:/YBr30Dm1KdhtcyDsbxfxo+MCQK18+7ncqNs87qYzTg=
	sha1:MvU0slFDaApY5awHL1gKiw81NoQ= sha256:cH0FHgPYFRzcap/aiyHJ/fJDft2zDB0CVIKbv7+GqqU=
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 A3F741112CB; Thu, 22 Oct 2026 18:14:22 +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 TSpicHlNcCpU;
	Thu, 22 Oct 2026 18:14:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-350616-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id DEC961112BC; Thu, 22 Oct 2026 18:14:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id E40C42F666; Thu, 22 Oct 2026 14:49:10 +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=1792680513;
	b=MUyDCvznhVqFMYZqIMNOUJQGu6FHeL4BNFt9wxMSJbaFnSdCTlUe1aufIgA++x+iX7xl
	 1uvi2V2G38Xw/Dub9uwgME1l35VahZBBanQG3XsZVBoPJQ/PVCLQiuJ63G8+MdFm3M8YU
	 UCD/z6YznK/EqEbg7kSCnLDg3sVi/L33R2hyGXdQ+1HFroemzResDPwdhxyvi4Tq1qEba
	 4wDB5WDzLa5QbezotcmiI+Ur0x4I3D+DZ6e1+p3OFNsObLN8/97BGC7np4xjbSem6310h
	 QmucxaL3ROgVCxrhWcEYHWWht2Y5uGG77T13HNcOadYq8gs0njN4chJLvq66oSZot3w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680513;
	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=JIZAZ3c9LS1qnten8xy0SvIuFnFh5L4naIL9e+hozVQ=;
	b=tcnOVOROa4N8LZ3sw/ThDrOfe/NrT7fO3mfPFQ6Q8LubK/Z4G/nvJQF5VA7i5108OULU
	 L2jzuCGTS49o1Mwl8fEiYUZk0dLWIOHepOEPmZ7TNP1jokP2pnix9RcRu+O3BG/YYQK0u
	 0Oza+iN687D61dyejnoYnb45lqMnK2ZBQqg6pVYLQlFFx1p5rvxSPjZxCLDLyayFbgcXo
	 amt/s/zViWM1NBBjmby1mo/n9LAdv3jmGLaXW47NCKmH+aBWXOaroaD2EXkLgn7NOoVRE
	 vwX/p8COqMTQmdC3agPCQQrlXQhkBNDFvUFu+ArqbY0A1r35+sD/hEM5DGf5AyPt28g==
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=lU5rHfNN;
	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 B890560A3804;
	Thu, 22 Oct 2026 14:48:33 +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=lU5rHfNN
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.31.2
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792680502;
	b=WshhdZMW+uR7X/nM89UkX2UtBBBKbOGmcJx3pQGGIKc/tDcH5MXDo3jt4n8dtmCwHVg7
	 maP/E8PTw6+N6oQCdkXTvVhN3ZSO9a+gcHgb0uJrg1GQK0oxbqyOtlZwr8wcMZqGjMsA0
	 9Sq7q4s5xO55sBxaJ6gMnAd3kmeBiYV7shGvnA31FG6k6NVBNG6uDInTb42HXFm9xIP/K
	 7+Pas+IW6z4mIZWJfb4Y4rWXbsVB+Bva0RtNRuJzMmbjytnJuTBm3DO1ztAZfVQQrTWSW
	 sDWjKvhct1CnSkn75FUcOKO1FTNWctin/G7QA19tCXyjABFxjIakef6jn4E8mh0d6xw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680502;
	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=JIZAZ3c9LS1qnten8xy0SvIuFnFh5L4naIL9e+hozVQ=;
	b=a1ApZsiLFKfRv+eI3nPIsZHiExRPpk7r3U3OWVT07CkDzbaN+1WEC4f8wENpfp6usASf
	 LRiMRrYPG5m6ES8SAi809NT6xG/4IrS4339CM3tluEqiFe8Fr3S3hC17J4n7rxbd6iWcX
	 7j4A+CQ5MtZRNbtHNE4PWuNpQFjRk4s/pDK3hpoAD0/edjLGUz2ZlR0oic4Zqu6a3qqIi
	 /Wsa3BtGg9aNiNoDLnJRFWBzcRZjJJNRb6iuItfgEs0bDBzrDPPltnMQtTizoU0h57amp
	 Z/5K4Lb7jK0vU0kQXWSnyisccG3EEVeZ05fWussHRw3ShoiQNF0UZTTiJSAiJ5oAhrQ==
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=lU5rHfNN;
	arc=none smtp.remote-ip=220.197.31.2
X-Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2])
	(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 650FD606A320;
	Thu, 22 Oct 2026 14:48:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 650FD606A320
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=JI
	ZAZ3c9LS1qnten8xy0SvIuFnFh5L4naIL9e+hozVQ=; b=lU5rHfNNguWBgrWZSy
	RzyZB3atWdAlF2oRwBZEd3jSEJjNVnrKFMd6GCDHIg576GD0gTo9kdTz1FlyMIJY
	GOWdu9TwdArApZ8E0Bo+ph8c9k8D6qEO57jUOIk6JlMljTKJ43FfR640p+ldhqkq
	iHK15P9CZjvq8/A57R3YUvQa4=
X-Received: from shaos.localdomain (unknown [])
	by gzga-smtp-mtada-g1-3 (Coremail) with SMTP id _____wDXP14FItpqmG_qBg--.11453S2;
	Thu, 22 Oct 2026 22:47:33 +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: _____wDXP14FItpqmG_qBg--.11453S2
X-Coremail-Antispam: 1Uf129KBjvJXoW7KryxXrWkuF17XF48GFWkCrg_yoW8AF18pF
	WvvFWYy3Wqkw1DWFn3KFWxX3WIgwn7Jr45JFn8Jay8Zan0kwn2kF4Sy34YvFn3Zr95CFWF
	vanYga97XFWUuF7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
	9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j5rcfUUUUU=
X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbCzwXa6GraIgXJlQAA3z