linux/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
..
balloc.c ufs: sb mutex merge + mutex_destroy 2014-06-06 16:08:18 -07:00
cylinder.c
dir.c
file.c write_iter variants of {__,}generic_file_aio_write() 2014-05-06 17:38:00 -04:00
ialloc.c ufs: sb mutex merge + mutex_destroy 2014-06-06 16:08:18 -07:00
inode.c ufs: fix deadlocks introduced by sb mutex merge 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
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_fs.h
ufs.h fs/ufs: convert UFSD printk to pr_debug 2014-08-08 15:57:21 -07:00
util.c
util.h