aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorSascha Hauer <[email protected]>2024-09-04 14:17:41 +0200
committerJakub Kicinski <[email protected]>2024-09-06 18:20:55 -0700
commit54001d0f2fdbc7852136a00f3e6fc395a9547ae5 (patch)
tree89c468be7c6b834ac8c560c6cad1fde69c49977e /tools/perf/scripts/python/mem-phys-addr.py
parent7ab50d5e884077b4c01931d16124a5f2cc86f1db (diff)
net: tls: wait for async completion on last message
When asynchronous encryption is used KTLS sends out the final data at proto->close time. This becomes problematic when the task calling close() receives a signal. In this case it can happen that tcp_sendmsg_locked() called at close time returns -ERESTARTSYS and the final data is not sent. The described situation happens when KTLS is used in conjunction with io_uring, as io_uring uses task_work_add() to add work to the current userspace task. A discussion of the problem along with a reproducer can be found in [1] and [2] Fix this by waiting for the asynchronous encryption to be completed on the final message. With this there is no data left to be sent at close time. [1] https://lore.kernel.org/all/[email protected]/ [2] https://lore.kernel.org/all/[email protected]/ Signed-off-by: Sascha Hauer <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions