mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
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: [email protected] # 3.16
Signed-off-by: Alexey Khoroshilov <[email protected]>
Signed-off-by: Al Viro <[email protected]>