linux-bl808/drivers/net/ethernet/intel/ixgbe
Emil Tantilov a3b8cb1f84 ixgbe: fix panic when using macvlan with l2-fwd-offload enabled
Fix NULL pointer dereference in the case where a macvlan interface is
brought up while the PF is still down:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
IP: [<ffffffffa0170fb2>] ixgbe_alloc_rx_buffers+0x42/0x1a0 [ixgbe]

Call Trace:
[<ffffffffa017336b>] ixgbe_configure_rx_ring+0x2eb/0x3d0 [ixgbe]
[<ffffffffa0173811>] ixgbe_fwd_ring_up+0xd1/0x380 [ixgbe]
[<ffffffffa0179709>] ixgbe_fwd_add+0x149/0x230 [ixgbe]
[<ffffffffa0113480>] macvlan_open+0x260/0x2b0 [macvlan]

Reported-by: Matthew Garrett <mjg59@coreos.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-10-27 14:07:21 -07:00
..
ixgbe.h ixgbe: use IS_ENABLED() instead of checking for built-in or module 2016-09-12 20:27:58 -07:00
ixgbe_82598.c
ixgbe_82599.c ixgbe: remove redundant check on ret_val 2016-07-22 02:04:28 -07:00
ixgbe_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-08-30 00:54:02 -04:00
ixgbe_common.h
ixgbe_dcb.c
ixgbe_dcb.h
ixgbe_dcb_82598.c
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c
ixgbe_dcb_82599.h
ixgbe_dcb_nl.c
ixgbe_debugfs.c
ixgbe_ethtool.c ixgbe: Limit reporting of redirection table if SR-IOV is enabled 2016-09-23 00:20:18 -07:00
ixgbe_fcoe.c
ixgbe_fcoe.h
ixgbe_lib.c ixgbe: Support 4 queue RSS on VFs with 1 or 2 queue RSS on PF 2016-09-23 00:21:52 -07:00
ixgbe_main.c ixgbe: fix panic when using macvlan with l2-fwd-offload enabled 2016-10-27 14:07:21 -07:00
ixgbe_mbx.c
ixgbe_mbx.h
ixgbe_model.h ixgbe: Fix deleting link filters for cls_u32 offloads 2016-06-29 10:05:24 -07:00
ixgbe_phy.c ixgbe: Use MDIO_PRTAD_NONE consistently 2016-09-23 00:17:30 -07:00
ixgbe_phy.h
ixgbe_ptp.c ptp_clock: future-proofing drivers against PTP subsystem becoming optional 2016-09-22 02:18:33 -04:00
ixgbe_sriov.c Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue 2016-09-24 08:21:49 -04:00
ixgbe_sriov.h net: Update API for VF vlan protocol 802.1ad support 2016-09-24 08:01:26 -04:00
ixgbe_sysfs.c
ixgbe_type.h ixgbe: Add support for new X557 device 2016-08-20 19:51:25 -07:00
ixgbe_x540.c
ixgbe_x540.h
ixgbe_x550.c ixgbe: Use MDIO_PRTAD_NONE consistently 2016-09-23 00:17:30 -07:00
Makefile