]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jfs: Regular file corruption check
authorEdward Adam Davis <eadavis@qq.com>
Wed, 4 Jun 2025 06:48:43 +0000 (14:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:23 +0000 (18:41 +0200)
commit02edcfda419168d9405bffe55f18ea9c1bf92366
treea78b0745bd9cf6564e6df358dc4d940c3e5e8eba
parent1bb5cdc3e39f0c2b311fcb631258b7e60d3fb0d3
jfs: Regular file corruption check

[ Upstream commit 2d04df8116426b6c7b9f8b9b371250f666a2a2fb ]

The reproducer builds a corrupted file on disk with a negative i_size value.
Add a check when opening this file to avoid subsequent operation failures.

Reported-by: syzbot+630f6d40b3ccabc8e96e@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=630f6d40b3ccabc8e96e
Tested-by: syzbot+630f6d40b3ccabc8e96e@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jfs/file.c