Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.684074] ================================================================== [ 23.685336] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x124/0x2b0 [ 23.686199] Free of addr fff00000c6a28001 by task kunit_try_catch/231 [ 23.686885] [ 23.687245] CPU: 0 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 23.687480] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.687562] Hardware name: linux,dummy-virt (DT) [ 23.687652] Call trace: [ 23.687717] dump_backtrace+0x9c/0x128 [ 23.687836] show_stack+0x20/0x38 [ 23.687945] dump_stack_lvl+0x8c/0xd0 [ 23.688082] print_report+0x118/0x5f0 [ 23.688199] kasan_report_invalid_free+0xc0/0xe8 [ 23.688323] __kasan_mempool_poison_object+0xfc/0x150 [ 23.688454] mempool_free+0x28c/0x328 [ 23.688579] mempool_kmalloc_invalid_free_helper+0x124/0x2b0 [ 23.688756] mempool_kmalloc_large_invalid_free+0xc0/0x118 [ 23.688877] kunit_try_run_case+0x170/0x3f0 [ 23.688929] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.689012] kthread+0x24c/0x2d0 [ 23.689062] ret_from_fork+0x10/0x20 [ 23.689112] [ 23.696296] The buggy address belongs to the physical page: [ 23.696946] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106a28 [ 23.697870] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.698813] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 23.699955] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.700758] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 23.701596] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.702513] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 23.703284] head: 0bfffe0000000002 ffffc1ffc31a8a01 ffffffffffffffff 0000000000000000 [ 23.704168] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 23.704920] page dumped because: kasan: bad access detected [ 23.705614] [ 23.705934] Memory state around the buggy address: [ 23.707166] fff00000c6a27f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.708095] fff00000c6a27f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.708831] >fff00000c6a28000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.709478] ^ [ 23.709954] fff00000c6a28080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.710756] fff00000c6a28100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.711659] ================================================================== [ 23.640137] ================================================================== [ 23.640666] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x124/0x2b0 [ 23.641118] Free of addr fff00000c424c901 by task kunit_try_catch/229 [ 23.642533] [ 23.642940] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 23.643209] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.643292] Hardware name: linux,dummy-virt (DT) [ 23.643392] Call trace: [ 23.643477] dump_backtrace+0x9c/0x128 [ 23.643587] show_stack+0x20/0x38 [ 23.643681] dump_stack_lvl+0x8c/0xd0 [ 23.643731] print_report+0x118/0x5f0 [ 23.643775] kasan_report_invalid_free+0xc0/0xe8 [ 23.643825] check_slab_allocation+0xfc/0x108 [ 23.643872] __kasan_mempool_poison_object+0x78/0x150 [ 23.643927] mempool_free+0x28c/0x328 [ 23.644008] mempool_kmalloc_invalid_free_helper+0x124/0x2b0 [ 23.644070] mempool_kmalloc_invalid_free+0xc0/0x118 [ 23.644125] kunit_try_run_case+0x170/0x3f0 [ 23.644172] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.644227] kthread+0x24c/0x2d0 [ 23.644275] ret_from_fork+0x10/0x20 [ 23.644322] [ 23.653659] Allocated by task 229: [ 23.654200] kasan_save_stack+0x3c/0x68 [ 23.654740] kasan_save_track+0x20/0x40 [ 23.655365] kasan_save_alloc_info+0x40/0x58 [ 23.656093] __kasan_mempool_unpoison_object+0x11c/0x180 [ 23.656925] remove_element+0x130/0x1f8 [ 23.657527] mempool_alloc_preallocated+0x58/0xc0 [ 23.658179] mempool_kmalloc_invalid_free_helper+0x94/0x2b0 [ 23.658872] mempool_kmalloc_invalid_free+0xc0/0x118 [ 23.659687] kunit_try_run_case+0x170/0x3f0 [ 23.660197] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.660851] kthread+0x24c/0x2d0 [ 23.661299] ret_from_fork+0x10/0x20 [ 23.661762] [ 23.662311] The buggy address belongs to the object at fff00000c424c900 [ 23.662311] which belongs to the cache kmalloc-128 of size 128 [ 23.663614] The buggy address is located 1 bytes inside of [ 23.663614] 128-byte region [fff00000c424c900, fff00000c424c980) [ 23.664673] [ 23.665040] The buggy address belongs to the physical page: [ 23.665618] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10424c [ 23.666406] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.667174] page_type: f5(slab) [ 23.667897] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.668691] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 23.669420] page dumped because: kasan: bad access detected [ 23.670092] [ 23.670388] Memory state around the buggy address: [ 23.670948] fff00000c424c800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.671846] fff00000c424c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.672567] >fff00000c424c900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.673304] ^ [ 23.673741] fff00000c424c980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.674532] fff00000c424ca00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.675259] ==================================================================
[ 20.328841] ================================================================== [ 20.329832] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.330488] Free of addr ffff888102bfc001 by task kunit_try_catch/248 [ 20.330942] [ 20.331185] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 20.332109] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.332130] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.332164] Call Trace: [ 20.332182] <TASK> [ 20.332204] dump_stack_lvl+0x73/0xb0 [ 20.332275] print_report+0xd1/0x640 [ 20.332311] ? __virt_addr_valid+0x1db/0x2d0 [ 20.332349] ? kasan_addr_to_slab+0x11/0xa0 [ 20.332379] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.332411] kasan_report_invalid_free+0xfc/0x120 [ 20.332463] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.332580] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.332614] __kasan_mempool_poison_object+0x102/0x1d0 [ 20.332653] mempool_free+0x2ec/0x380 [ 20.332686] mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.332719] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 20.332754] ? irqentry_exit+0x2a/0x60 [ 20.332784] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 20.332832] mempool_kmalloc_large_invalid_free+0xee/0x140 [ 20.332894] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 20.332931] ? __pfx_mempool_kmalloc+0x10/0x10 [ 20.332957] ? __pfx_mempool_kfree+0x10/0x10 [ 20.332985] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 20.333020] ? __pfx_mempool_kmalloc_large_invalid_free+0x10/0x10 [ 20.333055] kunit_try_run_case+0x1a6/0x480 [ 20.333089] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.333120] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.333149] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.333186] ? __kthread_parkme+0x82/0x160 [ 20.333233] ? preempt_count_sub+0x50/0x80 [ 20.333275] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.333306] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.333343] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.333383] kthread+0x257/0x310 [ 20.333409] ? __pfx_kthread+0x10/0x10 [ 20.333437] ret_from_fork+0x41/0x80 [ 20.333546] ? __pfx_kthread+0x10/0x10 [ 20.333585] ret_from_fork_asm+0x1a/0x30 [ 20.333631] </TASK> [ 20.333645] [ 20.355277] The buggy address belongs to the physical page: [ 20.355809] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bfc [ 20.356465] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.357404] flags: 0x200000000000040(head|node=0|zone=2) [ 20.358205] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.358973] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.360025] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.360640] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.361956] head: 0200000000000002 ffffea00040aff01 ffffffffffffffff 0000000000000000 [ 20.362484] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 20.363291] page dumped because: kasan: bad access detected [ 20.364285] [ 20.364535] Memory state around the buggy address: [ 20.365369] ffff888102bfbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.366432] ffff888102bfbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.367375] >ffff888102bfc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.367967] ^ [ 20.368393] ffff888102bfc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.369417] ffff888102bfc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.370728] ================================================================== [ 20.260028] ================================================================== [ 20.261512] BUG: KASAN: invalid-free in mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.261932] Free of addr ffff88810231c101 by task kunit_try_catch/246 [ 20.262912] [ 20.263333] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 20.263539] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.263582] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.263640] Call Trace: [ 20.263675] <TASK> [ 20.263717] dump_stack_lvl+0x73/0xb0 [ 20.263803] print_report+0xd1/0x640 [ 20.263906] ? __virt_addr_valid+0x1db/0x2d0 [ 20.263975] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.264043] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.264122] kasan_report_invalid_free+0xfc/0x120 [ 20.264202] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.264293] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.264375] ? mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.264479] check_slab_allocation+0x11f/0x130 [ 20.264558] __kasan_mempool_poison_object+0x91/0x1d0 [ 20.264637] mempool_free+0x2ec/0x380 [ 20.264719] mempool_kmalloc_invalid_free_helper+0x133/0x2e0 [ 20.264788] ? __pfx_mempool_kmalloc_invalid_free_helper+0x10/0x10 [ 20.264848] ? finish_task_switch.isra.0+0x153/0x700 [ 20.264895] mempool_kmalloc_invalid_free+0xee/0x140 [ 20.264925] ? __pfx_mempool_kmalloc_invalid_free+0x10/0x10 [ 20.264958] ? __pfx_mempool_kmalloc+0x10/0x10 [ 20.264984] ? __pfx_mempool_kfree+0x10/0x10 [ 20.265011] ? __pfx_read_tsc+0x10/0x10 [ 20.265039] ? ktime_get_ts64+0x84/0x230 [ 20.265076] kunit_try_run_case+0x1a6/0x480 [ 20.265109] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.265138] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.265169] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.265205] ? __kthread_parkme+0x82/0x160 [ 20.265264] ? preempt_count_sub+0x50/0x80 [ 20.265296] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.265325] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.265361] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.265398] kthread+0x257/0x310 [ 20.265424] ? __pfx_kthread+0x10/0x10 [ 20.265474] ret_from_fork+0x41/0x80 [ 20.265550] ? __pfx_kthread+0x10/0x10 [ 20.265591] ret_from_fork_asm+0x1a/0x30 [ 20.265635] </TASK> [ 20.265650] [ 20.296800] Allocated by task 246: [ 20.297155] kasan_save_stack+0x45/0x70 [ 20.297876] kasan_save_track+0x18/0x40 [ 20.298459] kasan_save_alloc_info+0x3b/0x50 [ 20.299180] __kasan_mempool_unpoison_object+0x1a9/0x200 [ 20.299779] remove_element+0x11e/0x190 [ 20.300590] mempool_alloc_preallocated+0x4d/0x90 [ 20.300784] mempool_kmalloc_invalid_free_helper+0x84/0x2e0 [ 20.302039] mempool_kmalloc_invalid_free+0xee/0x140 [ 20.302995] kunit_try_run_case+0x1a6/0x480 [ 20.303386] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.304124] kthread+0x257/0x310 [ 20.304408] ret_from_fork+0x41/0x80 [ 20.305388] ret_from_fork_asm+0x1a/0x30 [ 20.306388] [ 20.306724] The buggy address belongs to the object at ffff88810231c100 [ 20.306724] which belongs to the cache kmalloc-128 of size 128 [ 20.308580] The buggy address is located 1 bytes inside of [ 20.308580] 128-byte region [ffff88810231c100, ffff88810231c180) [ 20.310207] [ 20.310401] The buggy address belongs to the physical page: [ 20.311292] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10231c [ 20.312317] flags: 0x200000000000000(node=0|zone=2) [ 20.313186] page_type: f5(slab) [ 20.313493] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 20.314449] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 20.315388] page dumped because: kasan: bad access detected [ 20.316164] [ 20.316690] Memory state around the buggy address: [ 20.317237] ffff88810231c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.318240] ffff88810231c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.319090] >ffff88810231c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.319879] ^ [ 20.320403] ffff88810231c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.321573] ffff88810231c200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.322715] ==================================================================