diff options
author | Ido Schimmel <idosch@mellanox.com> | 2015-08-06 17:41:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 08:54:10 +0300 |
commit | e577516b9db3e0f19df82b6430fe3b06e05d6304 (patch) | |
tree | 4c9eac68dca177a0335932c9b8191ffde55b7941 /net/switchdev/switchdev.c | |
parent | 3bfcd34764cbd3bcb48f6e9009eacf1d19856213 (diff) | |
download | linux-e577516b9db3e0f19df82b6430fe3b06e05d6304.tar.xz |
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions