]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix races and leaks in vfs_quota_on() users
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Aug 2008 08:29:18 +0000 (04:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Aug 2008 15:25:25 +0000 (11:25 -0400)
commitced90a447a4c5a939b1440bcf39a8ce67144199f
tree02ddee5ac85ceb632eab2aff994ffbd3233e51eb
parent8ff94e699385375296f772917e99e13be51a480f
[PATCH] fix races and leaks in vfs_quota_on() users

* new helper: vfs_quota_on_path(); equivalent of vfs_quota_on() sans the
  pathname resolution.
* callers of vfs_quota_on() that do their own pathname resolution and
  checks based on it are switched to vfs_quota_on_path(); that way we
  avoid the races.
* reiserfs leaked dentry/vfsmount references on several failure exits.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dquot.c
fs/ext3/super.c
fs/ext4/super.c
fs/reiserfs/super.c
include/linux/quotaops.h