aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2023-01-17 13:39:37 -0600
committerMartin K. Petersen <[email protected]>2023-01-18 19:14:56 -0500
commitf484a794e4ee2a9ce61f52a78e810ac45f3fe3b3 (patch)
treec110ea8faf7e5b614aa67e2133a373887fd8298a /tools/perf/scripts/python/event_analyzing_sample.py
parent6f1d64b13097e85abda0f91b5638000afc5f9a06 (diff)
scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
If during iscsi_sw_tcp_session_create() iscsi_tcp_r2tpool_alloc() fails, userspace could be accessing the host's ipaddress attr. If we then free the session via iscsi_session_teardown() while userspace is still accessing the session we will hit a use after free bug. Set the tcp_sw_host->session after we have completed session creation and can no longer fail. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mike Christie <[email protected]> Reviewed-by: Lee Duncan <[email protected]> Acked-by: Ding Hui <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions