Home
last modified time | relevance | path

Searched hist:"4 c1295dccc0afe0905b6ca4c62ade7f2406f2cfb" (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/net/rxrpc/
H A Dconn_service.cdiff 4c1295dccc0afe0905b6ca4c62ade7f2406f2cfb Mon Oct 07 04:58:29 CDT 2019 David Howells <dhowells@redhat.com> rxrpc: Fix trace-after-put looking at the put connection record

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: 363deeab6d0f ("rxrpc: Add connection tracepoint and client conn state tracepoint")
Signed-off-by: David Howells <dhowells@redhat.com>
H A Dconn_object.cdiff 4c1295dccc0afe0905b6ca4c62ade7f2406f2cfb Mon Oct 07 04:58:29 CDT 2019 David Howells <dhowells@redhat.com> rxrpc: Fix trace-after-put looking at the put connection record

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: 363deeab6d0f ("rxrpc: Add connection tracepoint and client conn state tracepoint")
Signed-off-by: David Howells <dhowells@redhat.com>
H A Dconn_client.cdiff 4c1295dccc0afe0905b6ca4c62ade7f2406f2cfb Mon Oct 07 04:58:29 CDT 2019 David Howells <dhowells@redhat.com> rxrpc: Fix trace-after-put looking at the put connection record

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: 363deeab6d0f ("rxrpc: Add connection tracepoint and client conn state tracepoint")
Signed-off-by: David Howells <dhowells@redhat.com>
H A Dcall_accept.cdiff 4c1295dccc0afe0905b6ca4c62ade7f2406f2cfb Mon Oct 07 04:58:29 CDT 2019 David Howells <dhowells@redhat.com> rxrpc: Fix trace-after-put looking at the put connection record

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: 363deeab6d0f ("rxrpc: Add connection tracepoint and client conn state tracepoint")
Signed-off-by: David Howells <dhowells@redhat.com>
/openbmc/linux/include/trace/events/
H A Drxrpc.hdiff 4c1295dccc0afe0905b6ca4c62ade7f2406f2cfb Mon Oct 07 04:58:29 CDT 2019 David Howells <dhowells@redhat.com> rxrpc: Fix trace-after-put looking at the put connection record

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: 363deeab6d0f ("rxrpc: Add connection tracepoint and client conn state tracepoint")
Signed-off-by: David Howells <dhowells@redhat.com>