diff options
author | Cong Wang <[email protected]> | 2019-01-05 23:45:26 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-01-07 14:40:27 -0500 |
commit | 26d92e951fe0a44ee4aec157cabb65a818cc8151 (patch) | |
tree | e0233475d3922cc26be5157b077f62b5b31e2031 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 7acf8b36a2ac6eb4fdc53c4d862570089e56c69e (diff) |
smc: move unhash as early as possible in smc_release()
In smc_release() we release smc->clcsock before unhash the smc
sock, but a parallel smc_diag_dump() may be still reading
smc->clcsock, therefore this could cause a use-after-free as
reported by syzbot.
Reported-and-tested-by: [email protected]
Fixes: 51f1de79ad8e ("net/smc: replace sock_put worker by socket refcounting")
Cc: Ursula Braun <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Reported-by: [email protected]
Reported-by: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions