alistair23-linux/drivers/net/ethernet/rocker
Jiri Pirko a83165f00f rocker: fix possible null pointer dereference in rocker_router_fib_event_work
Currently, rocker user may experience following null pointer
derefence bug:

[    3.062141] BUG: unable to handle kernel NULL pointer dereference at 00000000000000d0
[    3.065163] IP: rocker_router_fib_event_work+0x36/0x110 [rocker]

The problem is uninitialized rocker->wops pointer that is initialized
only with the first initialized port. So move the port initialization
before registering the fib events.

Fixes: 936bd48656 ("rocker: use FIB notifications instead of switchdev calls")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-01 09:50:52 -05:00
..
Kconfig net: ethernet: rocker: Add dependency to CONFIG_BRIDGE in Kconfig 2014-12-09 15:26:43 -05:00
Makefile rocker: introduce worlds infrastructure 2016-02-17 23:08:34 -05:00
rocker.h rocker: Remove support bridge bypass FDB 2017-06-08 14:16:30 -04:00
rocker_hw.h rocker: rename rocker.h to rocker_hw.h 2016-02-17 23:08:34 -05:00
rocker_main.c rocker: fix possible null pointer dereference in rocker_router_fib_event_work 2018-02-01 09:50:52 -05:00
rocker_ofdpa.c net/rocker: Remove unreachable return instruction 2018-01-28 10:13:40 -05:00
rocker_tlv.c rocker: push tlv processing into separate files 2016-02-17 23:08:34 -05:00
rocker_tlv.h rocker: fix rocker_tlv_put_* functions for KASAN 2017-09-25 20:18:27 -07:00