From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0336A2E3FE; Fri, 24 Apr 2026 03:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777002047; cv=none; b=KLyKjs7L6maYicdEQnOU4md+dk3SHIdLjo1f1jn7VOS/NDkKMaGghidMEcCsNu2C23HR9XLWhTQa4Y5kf9a0Zv8e/z5WGomEzC38bjhwWQEfJ2Y0GVTiitZ0XeQxqiUSOn8fBLTQjAbbyusRRC0Hz9NkYuhMZNPoYke7mX67nD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777002047; c=relaxed/simple; bh=0wxYqtxE3UIMzurHgMJXcwbbShaJ/8VU0s3pGn5hVCQ=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=YHtLzBbgZMJRmNxHcVVMXXbCmOUKoIFMBDoXgYtQx+MzwuH4O+SkzhIVOf57TGw1E8XeQ8w/pDGzxkEZVIfwAD67b62i88iQc9RUyHuF8jqfk5hGqi/ikbPKqK3JjUqw6JrRd7I/2fCQR+6hEVlttu3NLyGLLnZzTa+q47UOHJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fh3OoQWm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Fh3OoQWm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90854C19425; Fri, 24 Apr 2026 03:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777002046; bh=0wxYqtxE3UIMzurHgMJXcwbbShaJ/8VU0s3pGn5hVCQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Fh3OoQWmc8PEdQIODW8CjTDGV+ngVllfAeXgRC4UemxvxpTvMBbcS/5JkdKxZFwYZ LoF3dsanzqHLgw3AErCg+cJSDwCbn1goImbOcytfEoIc4BJS9YgpP4HyO4s2HjloE1 BwTJcKe2AWPDLjGu+SM/V5vwD8aKLy7sLFV/COdpirdjv9sEnrJeDE+cs6Z/fl7meQ m0nYHkonS+vj+clTmuP0s30SOmPktk/49PF48HGuSlhClrcndi5j1E1JOf9hbdiHb0 +gxu9Ya3/KnJRPpzurkchvrpmvZmstPXQ72rHlm3b3hjNNiaFUYdP+Cgc/PxMjq3CZ M5PCT/8gu7oeQ== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id B9FC63811955; Fri, 24 Apr 2026 03:40:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf v2] bpf: Fix NULL pointer dereference in bpf_skb_fib_lookup() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <177700200756.900079.314534091561331618.git-patchwork-notify@kernel.org> Date: Fri, 24 Apr 2026 03:40:07 +0000 References: <20260423183831.1325480-2-bestswngs@gmail.com> In-Reply-To: <20260423183831.1325480-2-bestswngs@gmail.com> To: Weiming Shi Cc: martin.lau@linux.dev, daniel@iogearbox.net, ast@kernel.org, andrii@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, john.fastabend@gmail.com, sdf@fomichev.me, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, kpsingh@kernel.org, haoluo@google.com, jolsa@kernel.org, horms@kernel.org, hawk@kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, xmei5@asu.edu, paul.chaignon@gmail.com Hello: This patch was applied to bpf/bpf.git (master) by Martin KaFai Lau : On Thu, 23 Apr 2026 11:38:32 -0700 you wrote: > When tot_len is not provided by the user, bpf_skb_fib_lookup() > resolves the FIB result's output device via dev_get_by_index_rcu() > to check skb forwardability and fill in mtu_result. The returned > pointer is dereferenced without a NULL check. If the device is > concurrently unregistered, dev_get_by_index_rcu() returns NULL and > is_skb_forwardable() crashes at dev->flags: > > [...] Here is the summary with links: - [bpf,v2] bpf: Fix NULL pointer dereference in bpf_skb_fib_lookup() https://git.kernel.org/bpf/bpf/c/1081de1accb2 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html