original_kernel/fs/ufs
Alexey Khoroshilov 9ef7db7f38 ufs: fix deadlocks introduced by sb mutex merge
Commit 0244756edc ("ufs: sb mutex merge + mutex_destroy") introduces
deadlocks in ufs_new_inode() and ufs_free_inode().
Most callers of that functions acqure the mutex by themselves and
ufs_{new,free}_inode() do that via lock_ufs(),
i.e we have an unavoidable double lock.

The patch proposes to resolve the issue by making sure that
ufs_{new,free}_inode() are not called with the mutex held.

Found by Linux Driver Verification project (linuxtesting.org).

Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2014-09-07 13:26:39 -04:00
..
Kconfig
Makefile fs/ufs: convert printk to pr_foo() 2014-08-08 15:57:21 -07:00
balloc.c
cylinder.c
dir.c
file.c
ialloc.c
inode.c ufs: fix deadlocks introduced by sb mutex merge 2014-09-07 13:26:39 -04:00
namei.c ufs: fix deadlocks introduced by sb mutex merge 2014-09-07 13:26:39 -04:00
super.c fs/ufs: convert UFSD printk to pr_debug 2014-08-08 15:57:21 -07:00
swab.h
symlink.c
truncate.c
ufs.h fs/ufs: convert UFSD printk to pr_debug 2014-08-08 15:57:21 -07:00
ufs_fs.h
util.c
util.h