1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel
Joshua Hay dd19e827d6 idpf: fix kernel panic on unknown packet types
In the very rare case where a packet type is unknown to the driver,
idpf_rx_process_skb_fields would return early without calling
eth_type_trans to set the skb protocol / the network layer handler.
This is especially problematic if tcpdump is running when such a
packet is received, i.e. it would cause a kernel panic.

Instead, call eth_type_trans for every single packet, even when
the packet type is unknown.

Fixes: 3a8845af66 ("idpf: add RX splitq napi poll support")
Reported-by: Balazs Nemeth <bnemeth@redhat.com>
Signed-off-by: Joshua Hay <joshua.a.hay@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Salvatore Daniele <sdaniele@redhat.com>
Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2024-04-03 13:07:28 -07:00
..
e1000 intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
e1000e e1000e: move force SMBUS from enable ulp function to avoid PHY loss issue 2024-03-27 11:44:34 -07:00
fm10k intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
i40e i40e: Fix VF MAC filter removal 2024-04-01 21:33:08 -07:00
iavf iavf: drop duplicate iavf_{add|del}_cloud_filter() calls 2024-03-06 09:32:58 -08:00
ice ice: fix enabling RX VLAN filtering 2024-04-03 09:16:19 -07:00
idpf idpf: fix kernel panic on unknown packet types 2024-04-03 13:07:28 -07:00
igb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-11 20:38:36 -07:00
igbvf net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
igc igc: Remove stale comment about Tx timestamping 2024-03-25 09:57:21 -07:00
ixgbe ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa() 2024-03-25 09:57:21 -07:00
ixgbevf net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
e100.c intel: make module parameters readable in sys filesystem 2024-03-04 20:49:58 -08:00
Kconfig igc: fix LEDS_CLASS dependency 2024-03-04 20:49:58 -08:00
Makefile idpf: add SRIOV support and other ndo_ops 2023-09-13 14:59:24 -07:00