Re: [PATCH v2 0/5] More unit test for mballoc

From: Guenter Roeck
Date: Sun Feb 25 2024 - 11:07:31 EST


On Wed, Jan 03, 2024 at 06:48:55PM +0800, Kemeng Shi wrote:
> This series covers more function to mark on-disk bitmap. Besides, some
> code which is relevant to buddy cache is also tested.
> Before more work is done, I want to be sure I'm not on a wrong
> direction!
>
> v1->v2:
> -Fix unused variable warning which is reported at
> https://lore.kernel.org/lkml/202311260042.kMxL6DnL-lkp@xxxxxxxxx/T/
>

With this patch series in linux-text, and with various debug options
enabled, unit tests for ext4 fail widely and result in crashes.

[ 4.798582] # Subtest: test_new_blocks_simple
[ 4.803166] BUG: key 00000000000000a8 has not been registered!
[ 4.803443] ------------[ cut here ]------------
ILLOPC: ffffffff9050cbf4: 0f 0b
[ 4.803521] DEBUG_LOCKS_WARN_ON(1)
[ 4.803720] WARNING: CPU: 0 PID: 154 at kernel/locking/lockdep.c:4895 lockdep_init_map_type+0x224/0x250
..
[ 4.833277] # Subtest: test_mb_mark_used
[ 4.835875] ------------[ cut here ]------------
[ 4.836055] kernel BUG at fs/ext4/mballoc.c:2053!

Guenter