mint0x33/fs/udf
Jan Kara 6a502107f7 udf: Fix crash on IO error during truncate
commit d3ca4651d05c0ff7259d087d8c949bcf3e14fb46 upstream.

When truncate(2) hits IO error when reading indirect extent block the
code just bugs with:

kernel BUG at linux-4.15.0/fs/udf/truncate.c:249!
...

Fix the problem by bailing out cleanly in case of IO error.

CC: stable@vger.kernel.org
Reported-by: jean-luc malet <jeanluc.malet@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-27 14:13:52 +09:00
..
balloc.c
dir.c
directory.c udf: Detect incorrect directory size 2018-07-03 11:25:03 +02:00
ecma_167.h
file.c
ialloc.c
inode.c udf: Fix BUG on corrupted inode 2019-02-12 19:46:03 +01:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c do d_instantiate/unlock_new_inode combinations safely 2018-05-30 07:51:47 +02:00
osta_udf.h
partition.c
super.c udf: Allow mounting volumes with incorrect identification strings 2018-12-08 13:03:39 +01:00
symlink.c
truncate.c udf: Fix crash on IO error during truncate 2019-03-27 14:13:52 +09:00
udf_i.h
udf_sb.h
udfdecl.h
udfend.h
udftime.c
unicode.c udf: Allow mounting volumes with incorrect identification strings 2018-12-08 13:03:39 +01:00