diff options
author | Bob Peterson <rpeterso@redhat.com> | 2021-03-12 07:58:54 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-03-12 14:55:23 +0100 |
commit | d5bf630f355d8c532bef2347cf90e8ae60a5f1bd (patch) | |
tree | cb7cdc1c95c123fa07ded5b6f017cf68a70f53be /security/Makefile | |
parent | 1a5a2cfd34c17db73c53ef127272c8c1ae220485 (diff) | |
download | linux-d5bf630f355d8c532bef2347cf90e8ae60a5f1bd.tar.gz |
gfs2: bypass signal_our_withdraw if no journal
Before this patch, function signal_our_withdraw referenced the journal
inode immediately. But corrupt file systems may have some invalid
journals, in which case our attempt to read it in will withdraw and the
resulting signal_our_withdraw would dereference the NULL value.
This patch adds a check to signal_our_withdraw so that if the journal
has not yet been initialized, it simply returns and does the old-style
withdraw.
Thanks, Andy Price, for his analysis.
Reported-by: syzbot+50a8a9cf8127f2c6f5df@syzkaller.appspotmail.com
Fixes: 601ef0d52e96 ("gfs2: Force withdraw to replay journals and wait for it to finish")
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'security/Makefile')
0 files changed, 0 insertions, 0 deletions