Article View: linux.kernel.netdev
Article #8267Re: [PATCH net v2 2/2] net/sched: sch_teql: fix use-after-free on lower qdisc drop
From: Simon Horman
Date: Wed, 28 Oct 2026 14:27
Date: Wed, 28 Oct 2026 14:27
44 lines
9845 bytes
9845 bytes
On Tue, Oct 27, 2026 at 05:19:26PM -0400, Jamal Hadi Salim wrote: > On Tue, Oct 27, 2026 at 2:29 PM Simon Horman <horms@kernel.org> wrote: > > > > This is an AI-generated review of your patch. The human sending this > > email has considered the AI review valid, or at least plausible. > > Full review at: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/QDISC-Y0BY.v2.r0.20261024060625-1@mojatatu.com?part=2 > > So this email was stuck at sashiko because the email fields wouldnt > allow it. Set at: > email_status: Muted, smtp_enabled: false > The same with patch 2/2 Fun times in AI-land. > I will respond to both here. Summary is: i will not be sending an update. > > For patch [1/2] net/sched: sch_teql: fix slaves_lock IRQ deadlock > The High is pre-existing and not introduced by this patch, which only > converts slaves_lock to a raw spinlock. > I have a separate fix that bounds the walk by a slave_count maintained > under slaves_lock; it will be posted after this series gets merged. > > Patch [2/2] net/sched: sch_teql: fix use-after-free on lower qdisc drop: > > 1) Low: agreed, the changelog is misleading (the code is intended as written). > NETDEV_TX_OK and NET_XMIT_CN are both counted as good transmits, > matching net_xmit_eval(); any other consumed result is charged to > tx_dropped. > I don't think it warrants a respin on its own unless something even > semi-serious shows up in the code. > > 2) Medium: the non-rotation is pre-existing. Before this patch the > drop path never advanced master->slaves either; it just retried the > freed skb, which is the use-after-free being fixed. > Advancing to NEXT_SLAVE(q) here is a load-distribution improvement, > not a correctness requirement of this fix. > IMO: I would rather not inclued a policy change into the UAF fix; I > can send it separately. Thanks for the feedback. I agree with your suggested approaches. Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261028142706.GV257209@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352885-linux-kernel-netdev=dewy.ruReferences:
<QDISC-Y0BY.v2.r0.20261024060625-2@mojatatu.com> <20261027182608.448075-1-horms@kernel.org> <CAM0EoM=53FJSOSFzO6sPuHqDi4wxNPxK_mYRBveUz_Y6ks9swg@mail.gmail.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-352885-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 2/2] net/sched: sch_teql: fix use-after-free on lower qdisc drop Date: Wed, 28 Oct 2026 14:27:06 +0000 Organization: Usenet Network Message-ID: <20261028142706.GV257209@horms.kernel.org> References: <QDISC-Y0BY.v2.r0.20261024060625-2@mojatatu.com> <20261027182608.448075-1-horms@kernel.org> <CAM0EoM=53FJSOSFzO6sPuHqDi4wxNPxK_mYRBveUz_Y6ks9swg@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1790408"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+szFQETrOihCLLE4Hb1Bij7Nqf8= sha256:+oKG383fBl9GOQiSjco0ACLVuPfJOK5Puh59VGqkfds= sha1:LVcrX/2FEpnX96jcloVv1yQh2JY= sha256:1wMQVgO3EEXASy8vrf3zuMvIKBoc5+TZcCJ1v4vUjbc= Content-Disposition: inline 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 0566A125C32; Wed, 28 Oct 2026 17:41:17 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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] 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 8A71JnsjPRbF; Wed, 28 Oct 2026 17:41:14 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352885-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 C4950125C37; Wed, 28 Oct 2026 17:41:04 +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 C1D7B2993C; Wed, 28 Oct 2026 14:27:21 +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=1793197633; b=c8y1qMAV1qzBVuHP/wUbvbpO4xawyXqsst+XeNi8FZm5QQffWvXLvaEgOG2TidCbWvkm qkg0pzJrrAiEuDoCMxGx1Q3l6TTvZUyIWxA1IJveznk9aayU2NNcH/4b3SeeGHaXzVcMS yGXzA0IBgfZekENIcBmpxjz8PoW6ti/ZWNwe2/3CF5wXpQ7VisQ2k/9gHVG9nz85UN95X fkmAYlIaB/tdr87w0GtZ+aggupIOW5Znlk9Mvxpk9RuxhwVh580TkqAs7ZRn1raicFurE SPkGct33p1ldvOy5C5ovjw5Cdj4Nb2PQCz74FZ6ajjLmhpGgipdeUEXbrk+MNqpsBKw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793197633; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=RyRP6893UE0rWEYYIRvTbvq1/0IgRI1V3wsjtlSLgFI=; b=LDiE2BfLkSa3aEliavfjl/upEGesMgubtRopGhlV8v5Q9HRSJOJljSA5K46LctLNQ3ah NL7rs2RfqqnPXtAinJrSZh/QJzQTgrga4w0Ekp2ZNnLs2sn5XtkqbYitoim8P1BvwM6CR 5pHT3UHUnku1hS1HKdKjaOhw2/HJ8ciDI78WIXaEjs9PrrFxFUEXuYTM8I4P2CcREvnmh Kyk7AWuICv8JiA29i4rYZ09sFbYpyMM3vb5Q17XO+t+nRQcUAh0a242Sv7PEF1CMwiO/S JNp5thH0YtxvAOsoEva9wnQ76hMIKdeJs8vjpoh1x7jff1rj0euP7k3FiVfVvgsrG6w== 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=JVjCA6Re; 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 1A045606A31F; Wed, 28 Oct 2026 14:27:13 +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=JVjCA6Re 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=1793197632; b=DfISGwH4pmjrgOatoUe/dsY+gzmuSWGg2v53McRSzIyzVghw3l1rwqfEebc7SDtUi4rz TS7RE4+VC2vUGvgddu4Lqmc7kdGFELGXgSiDvJXAPc4A14BdIhGPSkD6M7gd7j5BnpIa/ TPBxy1SHtb82CEI7Z+gXef0MmrCnXtQP0yc/Ztr6Zpa/3P80KOpeCMP9c2YAEcuJ9j5RF +c600n/onvan4xDSfFr1KZV651HZa+bEflAaJHk26cnyGgTfcvpaDG8vd7DQaYXvuYlJj 8p969C9r+BO9HBVU2qEvcX+tILy56kDf3QT9A8unC9ZIUWuMkqihdvSd+o3RXog4jaA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793197632; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=RyRP6893UE0rWEYYIRvTbvq1/0IgRI1V3wsjtlSLgFI=; b=25/4XL5N4yLCq8AqY/wWMKtcRUg8OwN/CAfwc+K3qpcezJhcIfPW0j7VQRIObVVqtALh DmAXlVw/5zUG2nhUEwjylu7eBHXrLuzcNM6/Dx2Z6Ls+KfILrmtLwOM9bPZA4q+bAi7BA J4SzEgNIZXjw3dhF40Pft/XDv/t2rpqeXaY9Tec486Q+8ODfonyYv00LyTvFfnqWjMLtW Z9XuXAyKnlX/vRbTKkqrpQFihWx4cY5SkbQbl0F+o57jLEbkFflRu1FRPKBxaJZhZpUeL wgRVies0STwuPaWmMiuE3/U1ELtVtpQB163n7kn0DJuEMLmSpxH5i1ICXabauoJ+TvA== 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=JVjCA6Re; 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 E4E7A606A31A; Wed, 28 Oct 2026 14:27:11 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D44A1F01825; Wed, 28 Oct 2026 14:27:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793197631; bh=RyRP6893UE0rWEYYIRvTbvq1/0IgRI1V3wsjtlSLgFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=JVjCA6ReIrVf7NJxWt1lAJnRIz+lL/HaaUx8lFRg83tHXp4nIFupZjZZRpkVrHnj/ qxcZwyqwqGMm536IG/3e0q5weJ26ikgncaPhxQm/0bg8UnN1gmW6n33+VCJ+bdWV0s KS11A2WBLjKk5JBVUpBsFIqB4vbQmew7x2R6OLOS9QDQ690pMLfI1fqcd+Uvl8jvdD wwLUOJ97nys0BM+VWwwecp/SVB4ruqkAcITsPs1Bdu4wmN2wRzon4ikOsUQThehaxU bfiCIudRV/xW1e+jtnq/Kgbppz8FbdnJOn6nevTKDXYi++VBWPp26AK2rMEgQmyL35 6NvOiml9NyAAQ== X-Cc: netdev@vger.kernel.org, owen@verialabs.com, jiri@resnulli.us, victor@mojatatu.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, sashiko-bot@kernel.org, stable@vger.kernel.org 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: <CAM0EoM=53FJSOSFzO6sPuHqDi4wxNPxK_mYRBveUz_Y6ks9swg@mail.gmail.com>