From: Christoph Hellwig Date: Mon, 11 May 2026 07:16:52 +0000 (+0200) Subject: isofs: handle set_blocksize failures X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25ef4c4d9f0e96fb89c0ae0d7127c3f12a31bc32;p=thirdparty%2Fkernel%2Flinux.git isofs: handle set_blocksize failures isofs uses buffer_heads, which don't handle block size > PAGE_SIZE well. Without this, mounting we will hit the BUG_ON(offset >= folio_size(folio)); in folio_set_bh on the first __bread_gfp call. Signed-off-by: Christoph Hellwig Link: https://patch.msgid.link/20260511071701.2456211-8-hch@lst.de Signed-off-by: Christian Brauner (Amutable) --- diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index efee53717f1cd..337836a0a1704 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c @@ -818,7 +818,8 @@ root_found: * entries. By forcing the blocksize in this way, we ensure * that we will never be required to do this. */ - sb_set_blocksize(s, orig_zonesize); + if (!sb_set_blocksize(s, orig_zonesize)) + goto out_freesbi; sbi->s_nls_iocharset = NULL;