summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorPrathamesh Deshpande <prathameshdeshpande7@gmail.com>2026-10-31 22:57:13 +0000
committerJakub Kicinski <kuba@kernel.org>2026-11-06 11:21:06 -0800
commit29066b0fc046a2965129a74325b98d9abb4647a9 (patch)
treed9f525493a4652eadbb653815c302a6551cb0caa /scripts/const_structs.checkpatch
parent956c49e1f51c5fa9931c0ae1dc9d855ba32a149d (diff)
net/mlx5e: IPoIB, Fix QPN lookup race
The parent RX completion path can load a QPN hash entry before mlx5i_pkey_del_qpn() unlinks and frees it, then dereference freed memory. Use RCU hlist operations and defer freeing with kfree_rcu(). The existing RCU read-side section in mlx5e_napi_poll() covers the lookup. Keep ht_lock for writers and acquire it before looking up the entry to delete. Fixes: 7e7f4780c340 ("net/mlx5e: IPoIB, Use hash-table to map between QPN to child netdev") Signed-off-by: Prathamesh Deshpande <prathameshdeshpande7@gmail.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20261031225749.14214-1-prathameshdeshpande7@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions