diff options
author | David Howells <[email protected]> | 2022-12-24 14:49:00 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-12-28 09:59:23 +0000 |
commit | 0e50d999903c009b6a9cd2277c82d6798d982e31 (patch) | |
tree | 2c8c72932a63fcd1c526699b15ec3ce9ae72c85a /scripts/gdb/linux/vmalloc.py | |
parent | d3805695fe1e7383517903715cefc9bbdcffdc90 (diff) |
rxrpc: Fix a couple of potential use-after-frees
At the end of rxrpc_recvmsg(), if a call is found, the call is put and then
a trace line is emitted referencing that call in a couple of places - but
the call may have been deallocated by the time those traces happen.
Fix this by stashing the call debug_id in a variable and passing that to
the tracepoint rather than the call pointer.
Fixes: 849979051cbc ("rxrpc: Add a tracepoint to follow what recvmsg does")
Signed-off-by: David Howells <[email protected]>
cc: Marc Dionne <[email protected]>
cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions