[lvc-project] [PATCH] gfs2: validate rindex bitmap length before allocation
Fedor Pchelkin
pchelkin at ispras.ru
Tue Aug 18 13:25:48 MSK 2026
On Tue, 18. Aug 13:20, Makar Semyonov wrote:
> The ri_length field of a GFS2 rindex entry is used
> directly as the number of bitmap descriptors
> allocated by compute_bitstructs(), without
> validating it against ri_bitbytes. A corrupted
> rindex entry can therefore specify an excessively
> large ri_length while describing only a small
> amount of bitmap data. In the syzkalle reproducer,
> the second rindex entry has ri_length=327680 and
> ri_bitbytes=503, causing a large allocation
> and a page allocator warning:
Да я видел-видел патч от 12 августа. Но пока руки не дошли проверить
протестировать это хотя бы с gfs2 xfstests. Можете настроить у себя
стенд, приложить логи и результаты тестов, покрывающих этот код, если
желаете побыстрее продвигаться в этой задаче.
More information about the lvc-project
mailing list