Re: [PATCH] jffs2: keep alloc_sem held when a write retry cannot reserve space

From: Song jeonghak

Date: Sun Nov 29 2026 - 07:50:24 EST


Hi Richard, David,

Gentle ping on this patch. It fixes the double unlock of c->alloc_sem
reported by syzbot when the write retry in jffs2_write_dnode() or
jffs2_write_dirent() cannot reserve space.

Shuai Liu has independently reproduced the bug and tested the fix on
v7.4-rc3 and replied with a Tested-by. The patch still applies to
next-20261126.

Zhihao, I have added you to Cc since you have been reviewing recent
jffs2 patches. Any comments would be welcome.

Is there anything else needed from my side?

Thanks,
Song jeonghak