]> 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)
commit85e0352bf171dfa66ee93c7737be527e0c835e7b
tree120b30a5b675b1247551ca974529946d24ba76bd
parent52a5453b67f992fa94f99312b6ee198b716c89c8
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: 2dce8a77dbd0 ("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