summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2020-11-24 18:44:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-11 15:25:04 +0300
commit6790f8b9370bf83c6733a537414c7ff7d989be30 (patch)
treedcd0957b616f5f3b6247550e807de2055913e099 /drivers/i2c
parent1093c9a445ae0da5a3faedb7cc5b2f70cf05d82c (diff)
downloadlinux-6790f8b9370bf83c6733a537414c7ff7d989be30.tar.xz
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 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions