Article View: linux.kernel.netdev
Article #6483Re: [BUG] net/sched: malformed UFO GSO geometry can soft-lock DRR dequeue
From: Eric Dumazet
Date: Thu, 22 Oct 2026 14:57
Date: Thu, 22 Oct 2026 14:57
58 lines
11462 bytes
11462 bytes
Le jeu. 22 oct. 2026 ร 16:48, shaos <shawnq1@163.com> a รฉcrit :
>
> 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,
>
Related recent work:
commit 8f735d64382dcf162f4276d6699d03ad2f859c0b
Author: Jamal Hadi Salim <jhs@mojatatu.com>
Date: Tue Aug 25 04:14:03 2026 -0400
net/sched: bound qdisc_pkt_len to prevent qdisc soft lockup
Technical Details
Message-ID:
<CAL4WiipjAy2M5kok3bkB1Ny=9ryJvrWkt1jz_awuSoPY3Nx_vQ@mail.gmail.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-350638-linux-kernel-netdev=dewy.ruReferences:
<20261022144755.65025-1-shawnq1@163.com>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-350638-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [BUG] net/sched: malformed UFO GSO geometry can soft-lock DRR dequeue
Date: Thu, 22 Oct 2026 16:57:13 +0200
Organization: Usenet Network
Message-ID: <CAL4WiipjAy2M5kok3bkB1Ny=9ryJvrWkt1jz_awuSoPY3Nx_vQ@mail.gmail.com>
References: <20261022144755.65025-1-shawnq1@163.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="239227"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nhb7tlF9QbfREhMLA210oPzG0OI= sha256:715aZ+/kqMRjkXoAOCPEIyE0dIS9jeeQae9kxqpyufQ=
sha1:PKt5Zcw5+IUJ8NJxPhjFxBIadxY= sha256:j/I9lX7KVoxUbqJgZGX9EcoKqkKzgjE/oT9OM73tjrc=
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 9E49C1112C1; Thu, 22 Oct 2026 18:03:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.738
X-Spam-Status: No, score=-3.738 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
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 sZrPx79Ys3-b;
Thu, 22 Oct 2026 18:03:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350638-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 11810111267; Thu, 22 Oct 2026 18:03:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 8E6AC33E5A; Thu, 22 Oct 2026 14:57:27 +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=1792681047;
b=zEBSv1gti5Fgt40kQelsu5aTCXt8gHQnsTAZ/j33QLyXhqCFWyFadEwSBePTJdGqdiaL
7krpyGZOhMLaWurWveivUJpgg5N/l6y5ZxfAspsl1McaB8rcR2HXUYHw8YzHSv0DzJRAq
J7op5V6A6zHtpl/UZkD+lf/Zko7BO41Vh7GPxasqc6tg9k2kcV0XEFSu4LLZQAuegapD5
f1KaMlg9dzX6isw3IAmGySq5bsnoWtH0J5wKeW4tlRpo4/xAE1qyE0yPW0Rn6hhPCSVcu
J90S0ycOlK18FWilcmmA9WsIQIF7WNQWZcFyATRyOceRFBZ19G56pEUjtx3Du6G6XhQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792681047;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type:Content-Transfer-Encoding;
bh=lSB1/qSQSVVMedalAK+a89GjHY0Aht+HPppY0CFMDs4=;
b=L1aD8/KUn2a09MRCjIJWlrMz/YXOzKlIb8zYFE+kRBg4GmH6WN6K+/xdGvdyertYk7S5
zXYPfAhsrc0GHINC0+UJW4P8Nhqai5tWLahED3CiqgRBbMnpn1AiPaGGsxDH5Tv00yLr2
rAG88vVXN3QLBEk0r7pZVeflNw/5zcJ8hp4es7FYjNRJlhFQu0ZgWR5ik7zvc5Qn05Twb
DWAD8SG/MnYvNSf61LNZQziGa0Sxj40Ij8RlwMZbDnqcNoKzoG339g6U3i2YU1phFc/G7
exlFrqHfAjvZkFm4rRxry6aw8os86EFpIOq6DBu2RA+DtAQHit5Bda64PBhCmLcPMLQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Spa0GefT;
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 60E98606A322;
Thu, 22 Oct 2026 14:57:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Spa0GefT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792681046;
b=ssXI5T+U+iHHyGHPW0YrDt04GkbwiynZLKG/r4rpplpmTsIynl1AG5yTfkXKpEltEspD
yWGNeIUci6ApIE2MYe9SyuZAVk4uJRksP16X2+kCpQemKOy6qcOw6rnCimQHrAwcOJ7rK
El+ZI8I3E//MnGzQFt0AYCUhs+nYkyHUDb0/9miqPe5zR0AhxPIC9jG16EZqlmrtUz3f6
BF8oxxLvl3jud5FZAEtrIQaUeVDYNPAfhiboINuKY9qfX85qVTzZ34IHqNX7yR6OMuoEO
pGsoFuHgzu//uxPjPgl0d+rz+EEakguU0UWiD0jHQcW6NXZfefEqW/6s8U26CSyYV9w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792681046;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=lSB1/qSQSVVMedalAK+a89GjHY0Aht+HPppY0CFMDs4=;
b=OIOG3MSrnQpN0P8vMxvUPk0isgd/r5+AwBy1VBEmEQl976m9mc4+H7p1reQckmNHerwg
Gd9SdSV5Kc+J+A/6PiTzhcAKppn51YwOdf5yvD7C88AJur6MvAwbreF8Wllnr11/ZFqK0
D3cOkRL9Z8Noo8Ne4DJyplEI7c3/Fbr0q4tICRfa9xJ8C6smPfnoiNs8zW0XrgETAC3iw
xAZPPavCWQe30SMiFF38ihEUipKAy/UJxZv8n6AdxFaQZo5EUexXX+ZulkqGpXXNYyAkc
2mjtQISzG8fTB2ubqFNDDMe4zWkdmDMjM3eyNXu2eRs0DOYV9zrUC+oPgjvtsZDL4/w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Spa0GefT;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47A3E606A319
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 14:57:26 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF95E1F000C1
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 14:57:25 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1792681045;
bh=lSB1/qSQSVVMedalAK+a89GjHY0Aht+HPppY0CFMDs4=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=Spa0GefTgAjge9vB8SL83iquJ2oDN2KWw2R3G9fzs84ZGdYnoKpqD0E0WRFUpkx+1
QHPKEPPx++wBzTPu59hvZC8s4TlBKUc9dg6yGOehjRAWtH/KnKJU8WOs9Re9EP8vQQ
1rx+Evuw1DjIanV+dsaSXQqanlRadUKfMuWL/D5ylnpYDfB+WNiXOZ2VerSc0wuRj7
6YGSyInixYz0Ier+DO/lGxehRL5qAEE4iCknO9k/pnqfC7DQZKL+4W+ts1Zs8lrGAi
/xk8DxVUOUtz9O+YnqcZvDxygb2LLjYxhs/lEHiPIu68I9pJcSIBt44Y7JEj+8oTMa
0F3BL7FP4d7Nw==
X-Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-6dd4f3f696aso1044916eaf.1
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 07:57:25 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AKwUvBx9P6D1OCp721Mjr2stgE5mfxJmVANQ3fnAS5k+G+VzRhxQ6Vfxj/144MI64I/+OoNAyoapl7Q=@vger.kernel.org
X-Gm-Message-State: AFq9FYKOs0BM/L6Bg4RwkRT3hy2YXas3qFIoFLy+G9vL0UYo9e8Yo4cB
dydf/Pho6uTludz9s2j436YHrnYsGrrYSaeFT6twDtRQa80MlgRBLHFWAt7xiUMpXp9bGLYax2v
ZVMUArVsATzrvLHOcYPhujzVssa3mZIQ=
X-Received: by 2002:a05:6820:4b81:b0:703:b7b6:3093 with SMTP id
006d021491bc7-709413c4d40mr2962513eaf.65.1792681044587; Thu, 22 Oct 2026
07:57:24 -0700 (PDT)
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-In-Reply-To: <20261022144755.65025-1-shawnq1@163.com>
X-Gmail-Original-Message-ID: <CAL4WiipjAy2M5kok3bkB1Ny=9ryJvrWkt1jz_awuSoPY3Nx_vQ@mail.gmail.com>
X-Gm-Features: AclHuK_ZymQtBac5SLmvPX2cY8IcEsAwKR4_uxsEP0hW1yO_0q-mPrvDW3qvIJ4
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