]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: fix panic when using macvlan with l2-fwd-offload enabled
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 22 Sep 2016 22:06:52 +0000 (15:06 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:48:06 +0000 (21:48 -0800)
commit8c25edf7156d2dc500dc4a80c89e6670f2495264
treef61bfe26ad21dda04dd19314fd70ad298dd4d423
parent34e706894b89e65fde6ef3225d6040546819366c
ixgbe: fix panic when using macvlan with l2-fwd-offload enabled

Orabug: 24568240

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>
(cherry picked from commit a3b8cb1f84a0de95323902c76bab245675d6d218)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c