aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
diff options
context:
space:
mode:
authorJohn Johansen <[email protected]>2020-01-02 13:31:22 +0000
committerJohn Johansen <[email protected]>2020-01-04 23:56:44 +0000
commit8c62ed27a12c00e3db1c9f04bc0f272bdbb06734 (patch)
tree7bbe5954a3d15944b17e1cc732eb0f479276ffda /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
parentapparmor: only get a label reference if the fast path check fails (diff)
downloadkernel-8c62ed27a12c00e3db1c9f04bc0f272bdbb06734.tar.gz
kernel-8c62ed27a12c00e3db1c9f04bc0f272bdbb06734.zip
apparmor: fix aa_xattrs_match() may sleep while holding a RCU lock
aa_xattrs_match() is unfortunately calling vfs_getxattr_alloc() from a context protected by an rcu_read_lock. This can not be done as vfs_getxattr_alloc() may sleep regardles of the gfp_t value being passed to it. Fix this by breaking the rcu_read_lock on the policy search when the xattr match feature is requested and restarting the search if a policy changes occur. Fixes: 8e51f9087f40 ("apparmor: Add support for attaching profiles via xattr, presence and value") Reported-by: Jia-Ju Bai <[email protected]> Reported-by: Al Viro <[email protected]> Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions