diff options
| author | 2017-10-17 20:39:17 +0300 | |
|---|---|---|
| committer | 2018-05-24 14:40:40 -0700 | |
| commit | 1dcbc01f73f9abc4779f71eae5e6dc61bee37229 (patch) | |
| tree | 3811cb75e9780f37d41eb84adec883bc2a25c766 /include/linux/stackprotector.h | |
| parent | net/mlx5e: When RXFCS is set, add FCS data into checksum calculation (diff) | |
net/mlx5: IPSec, Fix a race between concurrent sandbox QP commands
Sandbox QP Commands are retired in the order they are sent. Outstanding
commands are stored in a linked-list in the order they appear. Once a
response is received and the callback gets called, we pull the first
element off the pending list, assuming they correspond.
Sending a message and adding it to the pending list is not done atomically,
hence there is an opportunity for a race between concurrent requests.
Bind both send and add under a critical section.
Fixes: bebb23e6cb02 ("net/mlx5: Accel, Add IPSec acceleration interface")
Signed-off-by: Yossi Kuperman <yossiku@mellanox.com>
Signed-off-by: Adi Nissim <adin@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
