linux/drivers/net/ethernet/mellanox/mlxsw
Ido Schimmel e577516b9d mlxsw: Fix use-after-free bug in mlxsw_sx_port_xmit
Store the length of the skb before transmitting it and use it for stats
instead of skb->len, since skb might have been freed already.

This issue was discovered using the Kernel Address sanitizer (KASan).

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-09 22:54:10 -07:00
..
cmd.h
core.c mlxsw: Use correct skb length when dumping payload 2015-08-09 22:54:10 -07:00
core.h mlxsw: Simplify mlxsw_sx_port_xmit function 2015-08-09 22:54:10 -07:00
emad.h mlxsw: Add interface to access registers and process events 2015-07-30 00:05:00 -07:00
item.h
Kconfig mlxsw: Make pci module dependent on HAS_DMA and HAS_IOMEM 2015-08-09 22:54:09 -07:00
Makefile mlxsw: Introduce Mellanox SwitchX-2 ASIC support 2015-07-30 00:05:00 -07:00
pci.c mlxsw: Simplify mlxsw_sx_port_xmit function 2015-08-09 22:54:10 -07:00
pci.h mlxsw: Strip FCS from incoming packets 2015-08-09 22:54:10 -07:00
port.h mlxsw: Introduce Mellanox SwitchX-2 ASIC support 2015-07-30 00:05:00 -07:00
reg.h mlxsw: Make system port to local port mapping explicit 2015-08-09 22:54:09 -07:00
switchx2.c mlxsw: Fix use-after-free bug in mlxsw_sx_port_xmit 2015-08-09 22:54:10 -07:00
trap.h
txheader.h mlxsw: Introduce Mellanox SwitchX-2 ASIC support 2015-07-30 00:05:00 -07:00