Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Simon Horman
Sat, 28 Nov 2026 14:22
Re: [PATCH iwl-net] i40e: ensure owner VSI is found before dereferencing in i40e_veb_release()
Author: Simon Horman
Date: Sat, 28 Nov 2026 14:22
Date: Sat, 28 Nov 2026 14:22
21 lines
8885 bytes
8885 bytes
On Thu, Nov 19, 2026 at 09:07:41AM -0800, Ian Rogers wrote:
> i40e_veb_release() counts all VSIs attached to veb->seid in 'n', but only
> assigns 'vsi' when I40E_VSI_FLAG_VEB_OWNER is set. If a non-floating VEB
> has a single remaining VSI without I40E_VSI_FLAG_VEB_OWNER (for example
> if the owner VSI was moved or cleared via debugfs switch operations),
> n == 1 passes the 'n != 1' check while 'vsi' remains uninitialized on the
> stack and is immediately dereferenced.
>
> Initialize 'vsi' to NULL and refuse to release a non-floating VEB unless
> both n == 1 and vsi != NULL.
>
> Found via an x86_64 LLVM=1 (Clang 21.1.8) allyesconfig audit with
> -Wconditional-uninitialized enabled; fix and changelog drafted with an AI
> coding assistant. Build-tested under LLVM=1 W=1 (-Werror) and
> -Wconditional-uninitialized; not tested on Intel XL710/X722 hardware.
>
> Fixes: 08cdde310e22 ("i40e: Fix broken support for floating VEBs")
> Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads