diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-16 12:52:19 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-08-03 23:05:23 +0200 |
commit | c5e6aecd034e70e73af4d7a2b8a115239e3568b5 (patch) | |
tree | eebbcf35eb1eceaa76b022a64b134b51dd31b62a /security/apparmor/audit.c | |
parent | sunrpc: remove __rcu annotation from struct gss_cl_ctx->gc_gss_ctx (diff) | |
download | linux-c5e6aecd034e70e73af4d7a2b8a115239e3568b5.tar.xz linux-c5e6aecd034e70e73af4d7a2b8a115239e3568b5.zip |
sunrpc: fix RCU handling of gc_ctx field
The handling of the gc_ctx pointer only seems to be partially RCU-safe.
The assignment and freeing are done using RCU, but many places in the
code seem to dereference that pointer without proper RCU safeguards.
Fix them to use rcu_dereference and to rcu_read_lock/unlock, and to
properly handle the case where the pointer is NULL.
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'security/apparmor/audit.c')
0 files changed, 0 insertions, 0 deletions