[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <500D6B87.7070700@mev.co.uk>
Date: Mon, 23 Jul 2012 16:19:35 +0100
From: Ian Abbott <abbotti@....co.uk>
To: lkml <linux-kernel@...r.kernel.org>
CC: Jan Kara <jack@...e.cz>
Subject: Bug in UDF, setting larger file size when data in ICB
Hi folks,
in fs/udf/inode.c, udf_setsize(), if the new size is larger than the old
size and the old data is in the ICB and the new size still fits in the
ICB (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB and iinfo->i_lenAlloc
= newsize), udf_extend_file() is called which promptly calls BUG()
because it does not like this i_alloc_type value.
I think the simplest fix would be to add a 'goto' after the assignment
to iinfo->i_lenAlloc, bypassing the call to udf_extend_file().
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@....co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists