2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/ethernet/intel/ixgbe
Piotr Kwapulinski 61fb097f9a ixgbe: Fix possible skb NULL pointer dereference
The commit c824125cbb ("ixgbe: Fix passing 0 to ERR_PTR in
ixgbe_run_xdp()") stopped utilizing the ERR-like macros for xdp status
encoding. Propagate this logic to the ixgbe_put_rx_buffer().

The commit also relaxed the skb NULL pointer check - caught by Smatch.
Restore this check.

Fixes: c824125cbb ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/intel-wired-lan/2c7d6c31-192a-4047-bd90-9566d0e14cc0@stanley.mountain/
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Saritha Sanigani <sarithax.sanigani@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-02-11 09:13:11 -08:00
..
ixgbe_82598.c ixgbe: Break include dependency cycle 2024-11-13 10:30:21 -08:00
ixgbe_82599.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_common.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_common.h ixgbe: downgrade logging of unsupported VF API version to debug 2024-12-03 10:11:53 -08:00
ixgbe_dcb_82598.c ixgbe: Convert ret val type from s32 to int 2024-02-06 13:17:14 -08:00
ixgbe_dcb_82598.h ixgbe: Convert ret val type from s32 to int 2024-02-06 13:17:14 -08:00
ixgbe_dcb_82599.c ixgbe: Convert ret val type from s32 to int 2024-02-06 13:17:14 -08:00
ixgbe_dcb_82599.h ixgbe: Convert ret val type from s32 to int 2024-02-06 13:17:14 -08:00
ixgbe_dcb_nl.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_dcb.c ixgbe: Convert ret val type from s32 to int 2024-02-06 13:17:14 -08:00
ixgbe_dcb.h ixgbe: Convert ret val type from s32 to int 2024-02-06 13:17:14 -08:00
ixgbe_debugfs.c
ixgbe_e610.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_e610.h ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_ethtool.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_fcoe.c netdev_features: convert NETIF_F_FCOE_MTU to dev->fcoe_mtu 2024-09-03 11:36:43 +02:00
ixgbe_fcoe.h
ixgbe_ipsec.c ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa() 2024-03-25 09:57:21 -07:00
ixgbe_ipsec.h ixgbe: propagate XFRM offload state direction instead of flags 2022-05-06 08:32:52 +02:00
ixgbe_lib.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_main.c ixgbe: Fix possible skb NULL pointer dereference 2025-02-11 09:13:11 -08:00
ixgbe_mbx.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_mbx.h ixgbe: Break include dependency cycle 2024-11-13 10:30:21 -08:00
ixgbe_model.h
ixgbe_phy.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_phy.h ixgbe: Correct BASE-BX10 compliance code 2024-12-03 10:11:53 -08:00
ixgbe_ptp.c ixgbe: fix timestamp configuration code 2023-09-13 12:23:46 +01:00
ixgbe_sriov.c ixgbe: downgrade logging of unsupported VF API version to debug 2024-12-03 10:11:53 -08:00
ixgbe_sriov.h ixgbe: add the ability for the PF to disable VF link state 2022-03-08 07:41:18 -08:00
ixgbe_sysfs.c
ixgbe_txrx_common.h ixgbe: pull out stats update to common routines 2024-03-06 09:32:58 -08:00
ixgbe_type_e610.h ixgbe: Add support for EEPROM dump in E610 device 2024-12-20 10:14:01 -08:00
ixgbe_type.h ixgbe: Add support for E610 FW Admin Command Interface 2024-12-20 09:39:52 -08:00
ixgbe_x540.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_x540.h ixgbe: Add ixgbe_x540 multiple header inclusion protection 2024-12-20 10:14:02 -08:00
ixgbe_x550.c ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_x550.h ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
ixgbe_xsk.c dma-mapping updates for Linux 6.10 2024-05-20 10:23:39 -07:00
ixgbe.h ixgbe: Enable link management in E610 device 2024-12-20 10:14:03 -08:00
Makefile ixgbe: Add support for E610 FW Admin Command Interface 2024-12-20 09:39:52 -08:00