]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: FPGA, tls, hold rcu read lock a bit longer
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Mar 2019 05:09:05 +0000 (22:09 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Apr 2019 19:33:49 +0000 (12:33 -0700)
commitb2eef540fad83c65b53c7e856b8ac8a7c74f374e
tree120b30a5b675b1247551ca974529946d24ba76bd
parent9f8592f3f83cadcefbe0a33e5620d978ca7cbaca
net/mlx5: FPGA, tls, hold rcu read lock a bit longer

To avoid use-after-free, hold the rcu read lock until we are done copying
flow data into the command buffer.

Fixes: ec116bdf9a22 ("net/mlx5: Accel, add TLS rx offload routines")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c