]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/audit_watch.c
audit_get_nd(): don't unlock parent too early
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 2 Nov 2019 17:11:41 +0000 (13:11 -0400)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:01 +0000 (14:22 -0300)
commitb2b348bb35b5e83118d8521ded7e72124469bfaa
tree47e5911a9d4c8263bb4f2672fa47ce48b2685ac8
parent88b42651afcf56ebff827d1fe5c9e1aa495f6d8f
audit_get_nd(): don't unlock parent too early

BugLink: https://bugs.launchpad.net/bugs/1857158
[ Upstream commit 69924b89687a2923e88cc42144aea27868913d0e ]

if the child has been negative and just went positive
under us, we want coherent d_is_positive() and ->d_inode.
Don't unlock the parent until we'd done that work...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
kernel/audit_watch.c