]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: apparmor: fix sleep from invalid context
authorJohn Johansen <john.johansen@canonical.com>
Sat, 30 Jan 2016 00:53:15 +0000 (16:53 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:21:27 +0000 (10:21 +0100)
commitc2ce2d8ad7746245ff2a9d0c0b5c324f6097ebdb
tree21bae8eb9dfb5f3dd6c6eac1687b71572bda6af3
parentcb4cf6c5cb69b8e157ee3a11de72c3ff4fe39da3
UBUNTU: SAUCE: apparmor: fix sleep from invalid context

This is a patch to an apparmor feature that is not currently upstream

BugLink: http://bugs.launchpad.net/bugs/1539349
Commit 08518549722f0c992a9e4be71a0777f37147e9d2 made it so kern_path() via
getname_kernel() may do a GFP_KERNEL based allocation which is causing the
"sleep from invalid context" lockdep warning. Rework The apparmor mount
code to move kern_path() calls outside of the get_buffers()/put_buffers()
RCU read_lock block.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/mount.c