]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Fix crash on IO error during truncate
authorJan Kara <jack@suse.cz>
Mon, 11 Mar 2019 14:04:18 +0000 (15:04 +0100)
committerJan Kara <jack@suse.cz>
Mon, 18 Mar 2019 15:29:52 +0000 (16:29 +0100)
commit0bc6f70c006820e15ad5db81c7eb17871a1e52ef
tree9a04ef010a6bd97547fe68d0f0ce55213612ab29
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
udf: Fix crash on IO error during truncate

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>
fs/udf/truncate.c