]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: check sb_min_blocksize return value
authorEdward Adam Davis <eadavis@qq.com>
Sat, 12 Apr 2025 05:07:18 +0000 (13:07 +0800)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 21 Apr 2025 16:20:36 +0000 (18:20 +0200)
commit27d2f101e7890b1f0d8d91f1bf041921f81d5a31
tree4861ab987c72613c8f517224ccf6cd149bf479b3
parentae9f3bd8259a0a8f67be2420e66bb05fbb95af48
gfs2: check sb_min_blocksize return value

Check the return value of sb_min_blocksize(): it will be 0 when the
requested block size is invalid.

In addition, check the return value of sb_set_blocksize() as well.

Reported-by: syzbot+b0018b7468b2af33b4d5@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/ops_fstype.c