Article View: linux.kernel.netdev
Article #842Re: [PATCH net v3] net: fix NULL dereference in skb realloc fault injection devname filter
From: patchwork-bot+netdevbpf
Date: Thu, 08 Oct 2026 18:10
Date: Thu, 08 Oct 2026 18:10
27 lines
6581 bytes
6581 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 7 Oct 2026 08:41:58 +0800 you wrote:
> When a device name filter is set in
> /sys/kernel/debug/fail_skb_realloc/devname, should_fail_net_realloc_skb()
> compares it with skb->dev->name without checking skb->dev first.
>
> skb_might_realloc() is called from pskb_may_pull(), pskb_trim() and
> pskb_trim_rcsum(), which also run on skbs that are not associated with
> a device. One example is a netlink broadcast to a listener with a socket
> filter attached, which goes through sk_filter_trim_cap(). With the
> filter set, such an skb makes the kernel oops:
>
> [...]
Here is the summary with links:
- [net,v3] net: fix NULL dereference in skb realloc fault injection devname filter
https://git.kernel.org/netdev/net-next/c/670ff95811b0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179148300651.376744.893341011856074235.git-patchwork-notify@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-343191-linux-kernel-netdev=dewy.ruReferences:
<20261007004158.1266795-1-yanhaishuang@cmss.chinamobile.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-343191-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] net: fix NULL dereference in skb realloc fault injection devname filter Date: Thu, 08 Oct 2026 18:10:06 +0000 Organization: Usenet Network Message-ID: <179148300651.376744.893341011856074235.git-patchwork-notify@kernel.org> References: <20261007004158.1266795-1-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="939372"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8GVK+e9PmGVCFMc/y1QYIvi54HA= sha256:YfRBjkAhxm+48HefeV9InhFXN4ctGsD/c6qaK6ivwiA= sha1:eVReXdIQ+ghDx/nu97tqQXBS4Yk= sha256:yJ48L904gh/ZZPOOsoAQaF2SYVh+7N8Zjr7txLwmrRE= 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 05C9010F410; Thu, 8 Oct 2026 21:15:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.341 X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, 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 7Z6Z1194GKgO; Thu, 8 Oct 2026 21:14:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343191-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 7F66310F4AF; Thu, 8 Oct 2026 21:14:51 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id DB45537CC3; Thu, 8 Oct 2026 18:10:09 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81C92386423; Thu, 8 Oct 2026 18:10:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZO/QaKBE" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E4B64D4885; Thu, 8 Oct 2026 18:10:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791483009; cv=none; b=JifarTp8vP9z0+b7X49M0VeZ5jtcqndyfk0mX4gNLiA15E5ww77T/D6AKgPIVAbKQ3159aI8TbAH3LkrI6G1fObn5BV9LCERiv8jmBCfKumOJo2xZa8rgaPiTtaYWFv6YJO0ONoul5IMiE732Z1WcdmDouwCKJ45afVR2+aCRKU= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791483009; c=relaxed/simple; bh=M81CMcnxJA/B6pZEfbGzCR+knD4hL8uWWpmRrZU2R9Q=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=U23CghUIoKvDWUogQ6cbyCf5FPE9xCbVQ70ZrXTYIg5Gt4oUCpFRAEvG68Ug2sABZASRpFOCHcD80ZZBtvd5Gw79jfYxmT56WFQZyGmE6XzErFRs4ZlJ6mvS4LvOsumn//eJBP3Vk1C2n4uJ1HObZfxwrUJNF03E0dkwesSIdZM= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZO/QaKBE; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06F4D1F000FF; Thu, 8 Oct 2026 18:10:08 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791483008; bh=Mgz/JEEGECPTRgQwrTAyDQTSbYKXx3QIQooxppgQLKY=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=ZO/QaKBEKdt/mDfkwBDFGBqgSTggBDXHYvDpzWpD6hKapIlxL2hZZxDHYijP/NxU3 v7PdO0MZzveOtmCijDmH/bIbjpSA3Tp8FSyLCb/GkJg4SHIQyexP+um+SsAPKqZ51X A0TrTF4Wb34+LmKejWCWfZw/u1Xq6G1zZOek9iejfFXFmresCVidKpwCwABI5WXYhA Ec/+vmedTYxtW+6Y13EcqrYnzbpzlAf+98GdF+z+TNgbBoX/CehILJFa9J0h0bCqjU w0lUdZIqNVIjusPhnYCoi9m8psLvP4iiimHm6xx49XBYtY4PRwysYioYiXRITA5HK8 FXAfUrp34uBfw== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id F1657380CEC8; Thu, 8 Oct 2026 18:10:07 +0000 (UTC) X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261007004158.1266795-1-yanhaishuang@cmss.chinamobile.com> X-Cc: netdev@vger.kernel.org, leitao@debian.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, gnault@redhat.com, akinobu.mita@gmail.com, linux-kernel@vger.kernel.org