diff options
author | Eric Dumazet <edumazet@google.com> | 2019-10-14 06:04:38 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-16 12:20:17 -0700 |
commit | 2ca4f6ca4562594ef161e4140c2a5e0e5282967b (patch) | |
tree | 9196047d3ab696992874cb25df1958ba90ea5d6c /scripts/gdb/linux/tasks.py | |
parent | bd74708cd979f4934f0744055ce3b47da68733ce (diff) |
rxrpc: use rcu protection while reading sk->sk_user_data
We need to extend the rcu_read_lock() section in rxrpc_error_report()
and use rcu_dereference_sk_user_data() instead of plain access
to sk->sk_user_data to make sure all rules are respected.
The compiler wont reload sk->sk_user_data at will, and RCU rules
prevent memory beeing freed too soon.
Fixes: f0308fb07080 ("rxrpc: Fix possible NULL pointer access in ICMP handling")
Fixes: 17926a79320a ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions