Skip to content

Commit dc141a4

Browse files
ashishsangwan2jankara
authored andcommitted
UDF: During mount free lvid_bh before rescanning with different blocksize
If s_lvid_bh is not freed and set to NULL before re-scanning partition with default block size, we might end up using wrong lvid in case s_lvid_bh is not updated in udf_load_logicalvolint during rescan. Signed-off-by: Ashish Sangwan <ashish.sangwan2@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent bb2b6d1 commit dc141a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/udf/super.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,8 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
20002000
if (!silent)
20012001
pr_notice("Rescanning with blocksize %d\n",
20022002
UDF_DEFAULT_BLOCKSIZE);
2003+
brelse(sbi->s_lvid_bh);
2004+
sbi->s_lvid_bh = NULL;
20032005
uopt.blocksize = UDF_DEFAULT_BLOCKSIZE;
20042006
ret = udf_load_vrs(sb, &uopt, silent, &fileset);
20052007
}

0 commit comments

Comments
 (0)