🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by "Nowlin, Alexander" Sat, 07 Nov 2026 04:52
RE: [PATCH iwl-net 02/10] ice: fix IRQ freeing in ice_vsi_req_irq_msix() error path
#12397
Author: "Nowlin, Alexander"
Date: Sat, 07 Nov 2026 04:52
52 lines
23083 bytes
> -----Original Message-----
> From: Petr Oros <poros@redhat.com> 
> Sent: Friday, October 2, 2026 6:08 AM
> To: netdev@vger.kernel.org
> Cc: Oros, Petr <poros@redhat.com>; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Andrew Lunn <andrew+netdev@lunn.ch>; David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@kernel.org>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; Lobakin, Aleksander <aleksander.lobakin@intel.com>; Alexei Starovoitov <ast@kernel.org>; Daniel Borkmann <daniel@iogearbox.net>; Jesper Dangaard Brouer <hawk@kernel.org>; John Fastabend <john.fastabend@gmail.com>; Stanislav Fomichev <sdf@fomichev.me>; Henry Tieman > <henry.w.tieman@intel.com>; Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>; Michal Swiatkowski <michal.swiatkowski@linux.intel.com>; Jesse Brandeburg <jbrandeb@kernel.org>; Preethi Banala <preethi.banala@intel.com>; Kiran Patil <kiran.patil@intel.com>; Dan Nowlin <dan.nowlin@intel.com>; Stephen Hemminger <stephen@networkplumber.org>; intel-wired-lan@lists.osuosl.org; linux-kernel@vger.kernel.org; bpf@vger.kernel.org
> Subject: [PATCH iwl-net 02/10] ice: fix IRQ freeing in ice_vsi_req_irq_msix() error path
> 
> The vectors are requested with the q_vector as dev_id, but the error path frees them with &vsi->q_vectors[vector], which is the address of the array slot. devm_free_irq() finds no matching devres entry, warns and leaves the IRQ requested. The unwind also tries to free vectors that the request loop skipped because they have no rings.
> 
> Forcing request_irq to fail on the fourth vector during ndo_open gives:
> 
>   ice 0000:04:00.2 enp4s0f2np2: MSIX request_irq failed, error: -16
>   WARNING: kernel/irq/devres.c:191 at devm_free_irq+0x30/0x40
>   WARNING: kernel/irq/devres.c:191 at devm_free_irq+0x30/0x40
>   WARNING: kernel/irq/devres.c:191 at devm_free_irq+0x30/0x40
> 
> and the three IRQs stay registered in /proc/interrupts while the interface is down.
> 
> Pass the q_vector as dev_id and skip the vectors without rings, which the request loop never requested.
> 
> i40e fixed the same mistake in commit 915470e1b44e ("i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path").
> 
> Fixes: cdedef59deb0 ("ice: Configure VSIs for Tx/Rx")
> Assisted-by: LLM
> Signed-off-by: Petr Oros <poros@redhat.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_main.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Tested-by: Alexander Nowlin <alexander.nowlin@intel.com>
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