(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

gfs2: fix NULL deref in gfs2_quota_lock() for meta inodes

gfs2_quota_hold() now treats a meta/system inode's NULL i_qadata as success, but gfs2_quota_lock() still dereferences it unconditionally afterwards. Bail out early when there is nothing to lock. Reported-by: syzbot+d84e35a320d14f8c270a@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=d84e35a320d14f8c270a Fixes: 0025112796287599dc79c822ed37124582a0d68a ("gfs2: No quotas for meta inodes") Signed-off-by: ThangNN99 <ngocthang2710.1999@gmail.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>


Author ThangNN99 Committer Andreas Gruenbacher Date Commit Parent 277536c8
+3
1 changed file
+3
1 changed file