Skip to content
Commit dec12778 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efivarfs: use I_MUTEX_CHILD nested lock to traverse variables on resume



syzbot warns about a potential deadlock, but this is a false positive
resulting from a missing lockdep annotation: iterate_dir() locks the
parent whereas the inode_lock() it warns about locks the child, which is
guaranteed to be a different lock.

So use inode_lock_nested() instead with the appropriate lock class.

Reported-by: default avatar <syzbot+019072ad24ab1d948228@syzkaller.appspotmail.com>
Suggested-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent cb16dfed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment