Skip to content
Unverified Commit e5bfad3d authored by Eric Biggers's avatar Eric Biggers Committed by Casey Schaufler
Browse files

smack: use GFP_NOFS while holding inode_smack::smk_lock



inode_smack::smk_lock is taken during smack_d_instantiate(), which is
called during a filesystem transaction when creating a file on ext4.
Therefore to avoid a deadlock, all code that takes this lock must use
GFP_NOFS, to prevent memory reclaim from waiting for the filesystem
transaction to complete.

Reported-by: default avatar <syzbot+0eefc1e06a77d327a056@syzkaller.appspotmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent 3f4287e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment