Commit 1e3161a0 authored by Jan Kara's avatar Jan Kara Committed by sanglipeng
Browse files

udf: Do not bother merging very long extents

stable inclusion
from stable-v5.10.173
commit 965982feb333aefa9256c0fe188b5f1b958aef63
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=965982feb333aefa9256c0fe188b5f1b958aef63



--------------------------------

commit 53cafe1d upstream.

When merging very long extents we try to push as much length as possible
to the first extent. However this is unnecessarily complicated and not
really worth the trouble. Furthermore there was a bug in the logic
resulting in corrupting extents in the file as syzbot reproducer shows.
So just don't bother with the merging of extents that are too long
together.

CC: stable@vger.kernel.org
Reported-by: default avatar <syzbot+60f291a24acecb3c2bd5@syzkaller.appspotmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 89ab4fcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment