diff options
| author | Bob Peterson <rpeterso@redhat.com> | 2020-11-24 10:44:36 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-11 13:36:46 +0100 |
| commit | 3bce763601f9c9fc1df4fa4658d3fbf1939d0463 (patch) | |
| tree | 6bec84e7a061e7508213af9d0b573cc7b21b84cf /kernel_headers.py | |
| parent | a96661f5554d300536419e17d834d9b187d26ac7 (diff) | |
gfs2: check for empty rgrp tree in gfs2_ri_update
commit 778721510e84209f78e31e2ccb296ae36d623f5e upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel_headers.py')
0 files changed, 0 insertions, 0 deletions
