diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-07-29 12:26:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-05 11:06:51 +0300 |
commit | 6e0fdf004d8539df351f3a33e45e01575352b61c (patch) | |
tree | 8c75300c7becdbc6968754c42ff6447246d8acb0 /arch/arm64/lib/strlen.S | |
parent | a4bdf2cd63b5f14e16791e69927a92232523e1a3 (diff) | |
download | linux-6e0fdf004d8539df351f3a33e45e01575352b61c.tar.xz |
mlxsw: core: Increase scope of RCU read-side critical section
[ Upstream commit 7d8e8f3433dc8d1dc87c1aabe73a154978fb4c4d ]
The lifetime of the Rx listener item ('rxl_item') is managed using RCU,
but is dereferenced outside of RCU read-side critical section, which can
lead to a use-after-free.
Fix this by increasing the scope of the RCU read-side critical section.
Fixes: 93c1edb27f9e ("mlxsw: Introduce Mellanox switch driver core")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm64/lib/strlen.S')
0 files changed, 0 insertions, 0 deletions