Osama Muhammad d69d7804cf gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
[ Upstream commit 8877243beafa7c6bfc42022cbfdf9e39b25bd4fa ]

Syzkaller has reported a NULL pointer dereference when accessing
rgd->rd_rgl in gfs2_rgrp_dump().  This can happen when creating
rgd->rd_gl fails in read_rindex_entry().  Add a NULL pointer check in
gfs2_rgrp_dump() to prevent that.

Reported-and-tested-by: syzbot+da0fc229cc1ff4bb2e6d@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=da0fc229cc1ff4bb2e6d
Fixes: 72244b6bc752 ("gfs2: improve debug information when lvb mismatches are found")
Signed-off-by: Osama Muhammad <osmtendev@gmail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:27:22 -08:00
..
2023-09-19 12:27:58 +02:00
2021-06-29 10:56:51 +02:00
2022-08-06 14:44:49 -07:00
2022-05-09 23:12:33 -04:00
2023-09-19 12:27:58 +02:00
2022-08-03 10:35:43 -07:00
2022-09-11 20:26:06 -07:00
2023-11-28 17:07:02 +00:00
2023-11-28 17:07:02 +00:00
2022-02-02 07:49:59 -07:00
2022-06-28 20:38:15 +02:00