[Intel-wired-lan] [net-next PATCH] ixgbe: fix panic when using macvlan with l2-fwd-offload enabled

Bowers, AndrewX andrewx.bowers at intel.com
Mon Sep 26 16:21:08 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Emil Tantilov
> Sent: Thursday, September 22, 2016 3:07 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [net-next PATCH] 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:
> 
> #ip link set eth2 down
> #ip link add link eth2 type macvlan
> #ip link set macvlan0 up
> 
> 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 at coreos.com>
> Signed-off-by: Emil Tantilov <emil.s.tantilov at intel.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |   12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list