Re: [PATCH] squashfs: squashfs_read_data need to check if the length is 0

From: Phillip Lougher
Date: Thu Nov 16 2023 - 21:22:04 EST


On 16/11/2023 21:43, Andrew Morton wrote:
On Thu, 16 Nov 2023 11:13:52 +0800 Lizhi Xu <lizhi.xu@xxxxxxxxxxxxx> wrote:

when the length passed in is 0, the subsequent process should be exited.

Thanks, but when fixing a bug, please always describe the runtime
effects of that bug. Amongst other things, other people need this
information to be able to decide which kernel versions need patching.

Reported-by: syzbot+32d3767580a1ea339a81@xxxxxxxxxxxxxxxxxxxxxxxxx

Which is a reason why we're now adding the "Closes:" tag after
Reported-by:.

Which is also one reason why you should always run scripts/checkpatch.pl
on your patch. This alerted me to the need for a "Closes:" tag
after Reported-by: on the last patch I sent.


I googled the sysbot email address and so added

Closes: https://lkml.kernel.org/r/0000000000000526f2060a30a085@xxxxxxxxxx

to the changelog.

Thanks. That is indeed the sysbot issue that the patch fixes.


I'll assume that a -stable kernel backport is needed.



Yes.

Phillip