diff options
author | Bob Peterson <rpeterso@redhat.com> | 2020-11-24 10:44:36 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2020-11-25 18:10:55 +0100 |
commit | 778721510e84209f78e31e2ccb296ae36d623f5e (patch) | |
tree | 96707ce63859f1cd210625c8b9da7701190d907a /fs/hfs | |
parent | 515b269d5bd29a986d5e1c0a0cba87fa865a48b4 (diff) |
gfs2: check for empty rgrp tree in gfs2_ri_update
If gfs2 tries to mount a (corrupt) file system that has no resource
groups it still tries to set preferences on the first one, which causes
a kernel null pointer dereference. This patch adds a check to function
gfs2_ri_update so this condition is detected and reported back as an
error.
Reported-by: syzbot+e3f23ce40269a4c9053a@syzkaller.appspotmail.com
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions