[lvc-project] [PATCH v4] fs: minix: Fix handling of corrupted directories
Fedor Pchelkin
pchelkin at ispras.ru
Thu May 29 11:00:18 MSK 2025
On Mon, 26. May 06:32, Andrey Kriulin wrote:
> If the directory is corrupted and the number of nlinks is less than 2
> (valid nlinks have at least 2), then when the directory is deleted, the
> minix_rmdir will try to reduce the nlinks(unsigned int) to a negative
> value.
>
> Make nlinks validity check for directories.
>
> Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable at vger.kernel.org
> Signed-off-by: Andrey Kriulin <kitotavrik.s at gmail.com>
В поддерживаемые нами ветки патч направлен. Спасибо за доведение
исправления до ack'а от мэйнтейнера!
More information about the lvc-project
mailing list