Skip to content
  • David Howells's avatar
    rxrpc: Fix trace-after-put looking at the put connection record · 4c1295dc
    David Howells authored
    rxrpc_put_*conn() calls trace_rxrpc_conn() after they have done the
    decrement of the refcount - which looks at the debug_id in the connection
    record.  But unless the refcount was reduced to zero, we no longer have the
    right to look in the record and, indeed, it may be deleted by some other
    thread.
    
    Fix this by getting the debug_id out before decrementing the refcount and
    then passing that into the tracepoint.
    
    Fixes: 363deeab
    
     ("rxrpc: Add connection tracepoint and client conn state tracepoint")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    4c1295dc