[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181224.144635.854624726050744324.davem@davemloft.net>
Date: Mon, 24 Dec 2018 14:46:35 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: mironov.ivan@...il.com
Cc: netdev@...r.kernel.org, ariel.elior@...ium.com,
sudarsana.kalluru@...ium.com, everest-linux-l2@...ium.com,
linux-kernel@...r.kernel.org, skalluru@...vell.com
Subject: Re: [PATCH v2] bnx2x: Fix NULL pointer dereference in
bnx2x_del_all_vlans() on some hw
From: Ivan Mironov <mironov.ivan@...il.com>
Date: Mon, 24 Dec 2018 20:13:05 +0500
> This happened when I tried to boot normal Fedora 29 system with latest
> available kernel (from fedora rawhide, plus some unrelated custom
> patches):
...
> After some investigation I figured out that recently added cleanup code
> tries to call VLAN filtering de-initialization function which exist only
> for newer hardware. Corresponding function pointer is not
> set (== 0) for older hardware, namely these chips:
>
> #define CHIP_NUM_57710 0x164e
> #define CHIP_NUM_57711 0x164f
> #define CHIP_NUM_57711E 0x1650
>
> And I have one of those in my test system:
>
> Broadcom Inc. and subsidiaries NetXtreme II BCM57711E 10-Gigabit PCIe [14e4:1650]
>
> Function bnx2x_init_vlan_mac_fp_objs() from
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h decides whether to
> initialize relevant pointers in bnx2x_sp_objs.vlan_obj or not.
>
> This regression was introduced after v4.20-rc7, and still exists in v4.20
> release.
>
> Fixes: 04f05230c5c13 ("bnx2x: Remove configured vlans as part of unload sequence.")
> Signed-off-by: Ivan Mironov <mironov.ivan@...il.com>
Applied, thanks.
Powered by blists - more mailing lists