Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix kernel bug due to missing clearing of buffer delay flag Syzbot reported that after nilfs2 reads a corrupted file system image and degrades to read-only, the BUG_ON check for the buffer delay flag in submit_bh_wbc() may fail, causing a kernel bug. This is because the buffer delay flag is not cleared when clearing the buffer state flags to discard a page/folio or a buffer head. So, fix this. This became necessary when the use of nilfs2’s own page clear routine was expanded. This state inconsistency does not occur if the buffer is written normally by log writing.
References
https://git.kernel.org/stable/c/822203f6355f4b322d21e7115419f6b98284be25
https://git.kernel.org/stable/c/27524f65621f490184f2ace44cd8e5f3685af4a3
https://git.kernel.org/stable/c/743c78d455e784097011ea958b27396001181567
https://git.kernel.org/stable/c/c6f58ff2d4c552927fe9a187774e668ebba6c7aa
https://git.kernel.org/stable/c/6ed469df0bfbef3e4b44fca954a781919db9f7ab