[PATCH v6.6] erofs: fix NULL dereference of dif->bdev_handle in fscache mode

Gao Xiang hsiangkao at linux.alibaba.com
Thu Jun 27 19:50:26 AEST 2024



On 2024/6/27 17:35, Gao Xiang wrote:
> 
> 
> On 2024/6/27 17:11, Hongbo Li wrote:

..

>>
>> The reason is the same with 8bd90b6ae7856("erofs: fix NULL dereference of dif->bdev_handle in fscache mode") in mainline. So we should backport this
>> patch into stable linux-6.6.y to avoid this bug.
> 
> Yes, commit 8bd90b6ae785 should be backported to
> Linux 6.6.y LTS immediately.

BTW, It seems that

commit "erofs: Convert to use bdev_open_by_path()" was
backported as a dependency since v6.6.23 even I
explicitly commented that this patch is unnecessary
and I tend to manually backport instead as below:

https://lore.kernel.org/r/ZgDHG8Ucl3EkY4ZS@debian


However, my comment was eventually ignored and
some other related fix like
"erofs: fix NULL dereference of dif->bdev_handle in fscache mode"

wasn't backported along with
"erofs: Convert to use bdev_open_by_path()"

So the affected 6.6 LTS versions seem to be
v6.6.23 ~ v6.6.35 (current)

Thanks,
Gao Xiang



More information about the Linux-erofs mailing list