audit: ignore fcaps on umount
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 23 Jan 2019 18:35:00 +0000 (13:35 -0500)
committerPaul Moore <paul@paul-moore.com>
Thu, 31 Jan 2019 01:51:47 +0000 (20:51 -0500)
commit57d4657716aca81ef4d7ec23e8123d26e3d28954
tree61af3d955d7a01767f7d1e6ede67ca6096cc8a07
parent05c7a9cb2727cd3c3d8e767f48e5cd18486a8d16
audit: ignore fcaps on umount

Don't fetch fcaps when umount2 is called to avoid a process hang while
it waits for the missing resource to (possibly never) re-appear.

Note the comment above user_path_mountpoint_at():
 * A umount is a special case for path walking. We're not actually interested
 * in the inode in this situation, and ESTALE errors can be a problem.  We
 * simply want track down the dentry and vfsmount attached at the mountpoint
 * and avoid revalidating the last component.

This can happen on ceph, cifs, 9p, lustre, fuse (gluster) or NFS.

Please see the github issue tracker
https://github.com/linux-audit/audit-kernel/issues/100

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: merge fuzz in audit_log_fcaps()]
Signed-off-by: Paul Moore <paul@paul-moore.com>
fs/namei.c
fs/namespace.c
include/linux/audit.h
include/linux/namei.h
kernel/audit.c
kernel/audit.h
kernel/auditsc.c