Skip to content
Snippets Groups Projects
Commit b5112a4b authored by Lizhi Xu's avatar Lizhi Xu Committed by Frieder Schrempf
Browse files

squashfs: squashfs_read_data need to check if the length is 0

[ Upstream commit eb66b8ab ]

When the length passed in is 0, the pagemap_scan_test_walk() caller should
bail.  This error causes at least a WARN_ON().

Link: https://lkml.kernel.org/r/20231116031352.40853-1-lizhi.xu@windriver.com


Reported-by: default avatar <syzbot+32d3767580a1ea339a81@syzkaller.appspotmail.com>
Closes: https://lkml.kernel.org/r/0000000000000526f2060a30a085@google.com


Signed-off-by: default avatarLizhi Xu <lizhi.xu@windriver.com>
Reviewed-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9f698c35
No related branches found
No related tags found
1 merge request!166🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.109)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment