Bob Peterson 6790f8b937 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>
2020-12-11 13:25:04 +01:00
..
2018-07-02 16:27:17 +01:00
2020-05-20 08:18:41 +02:00
2018-06-04 07:56:51 -05:00
2018-07-25 00:08:59 +02:00
2020-02-11 04:34:07 -08:00
2018-02-01 11:25:31 -07:00
2018-01-23 07:38:53 -07:00
2018-07-25 00:06:24 +02:00
2018-07-05 17:47:16 +02:00
2018-06-21 07:39:44 -05:00
2018-08-03 13:20:02 +01:00