[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <000000000000085ad3060a3abf6a@google.com>
Date: Wed, 15 Nov 2023 17:14:49 -0800
From: syzbot <syzbot+32d3767580a1ea339a81@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [syzbot] [PATCH] test warning in squashfs_read_data
For archival purposes, forwarding an incoming command email to
linux-kernel@...r.kernel.org.
***
Subject: [PATCH] test warning in squashfs_read_data
Author: lizhi.xu@...driver.com
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ac347a0655db
diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c
index 581ce9519339..cf21494e3994 100644
--- a/fs/squashfs/block.c
+++ b/fs/squashfs/block.c
@@ -330,6 +330,12 @@ int squashfs_read_data(struct super_block *sb, u64 index, int length,
if (next_index)
*next_index = index + length;
+ printk("l:%d, i: %d, ol: %d, mbu: %d, %s\n", length, index, output->length,
+ msblk->bytes_used, __func__);
+ if (!length) {
+ res = -EIO;
+ goto out;
+ }
res = squashfs_bio_read(sb, index, length, &bio, &offset);
if (res)
goto out;
Powered by blists - more mailing lists