linux/drivers/net/ethernet/broadcom/bnx2x
Yuval Mintz ecf01c22be bnx2x: Prevent NULL pointer dereference in kdump
In scenarios in which a previous driver was removed without proper cleanup
(e.g., kdump), it is possible for the chip to generate an interrupt without
any apparent reason once interrupts are requested.

Due to an erroneous initialization of resources, some of the bnx2x structs
which are required for interrupt handling are initialized only after an
interface's interrupt is requested from the OS.

As a result, once such a spurious interrupt occurs, it will cause a NULL
pointer dereference - the driver will access those structs in its interrupt
handling routine.

This patch change the interrupt request scheme so that bnx2x would only
request interrupts from the kernel after it has finished initializing
all the inner structs required for interrupt handling.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-25 04:00:56 -04:00
..
bnx2x_cmn.c bnx2x: Prevent NULL pointer dereference in kdump 2013-04-25 04:00:56 -04:00
bnx2x_cmn.h bnx2x: Prevent NULL pointer dereference in kdump 2013-04-25 04:00:56 -04:00
bnx2x_dcb.c bnx2x: fix assignment of signed expression to unsigned variable 2013-03-24 17:27:28 -04:00
bnx2x_dcb.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_dump.h bnx2x: add `ethtool -w' support. 2013-01-15 15:07:59 -05:00
bnx2x_ethtool.c bnx2x: Fix KR2 link 2013-02-28 15:37:29 -05:00
bnx2x_fw_defs.h bnx2x: Semantic renovation 2013-01-23 13:58:27 -05:00
bnx2x_fw_file_hdr.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_hsi.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_init_ops.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_init.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_link.c bnx2x: Fix KR2 rapid link flap 2013-04-07 17:17:00 -04:00
bnx2x_link.h bnx2x: Fix SFP+ misconfiguration in iSCSI boot scenario 2013-03-08 00:35:44 -05:00
bnx2x_main.c bnx2x: Prevent NULL pointer dereference in kdump 2013-04-25 04:00:56 -04:00
bnx2x_mfw_req.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_reg.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_sp.c bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_sp.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_sriov.c bnx2x: SR-IOV version compatibility bugfix 2013-01-23 13:58:30 -05:00
bnx2x_sriov.h bnx2x: correct memory release scheme 2013-01-23 13:58:29 -05:00
bnx2x_stats.c bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_stats.h bnx2x: fix occasional statistics off-by-4GB error 2013-03-18 13:12:20 -04:00
bnx2x_vfpf.c bnx2x: remove dead code and make local funcs static 2013-02-24 20:16:02 -05:00
bnx2x_vfpf.h bnx2x: SR-IOV version compatibility bugfix 2013-01-23 13:58:30 -05:00
bnx2x.h bnx2x: Fix compilation with stop-on-error 2013-01-23 13:58:29 -05:00
Makefile bnx2x: Segregate SR-IOV code 2013-01-07 19:49:14 -08:00