Date
July 19, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.080409] ================================================================== [ 16.080880] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 16.080955] Free of addr fff00000c77af001 by task kunit_try_catch/211 [ 16.080999] [ 16.081039] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.081124] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.081151] Hardware name: linux,dummy-virt (DT) [ 16.081186] Call trace: [ 16.081210] show_stack+0x20/0x38 (C) [ 16.081262] dump_stack_lvl+0x8c/0xd0 [ 16.081314] print_report+0x118/0x5d0 [ 16.081361] kasan_report_invalid_free+0xc0/0xe8 [ 16.081410] check_slab_allocation+0xfc/0x108 [ 16.081458] __kasan_slab_pre_free+0x2c/0x48 [ 16.081506] kmem_cache_free+0xf0/0x468 [ 16.081553] kmem_cache_invalid_free+0x184/0x3c8 [ 16.081606] kunit_try_run_case+0x170/0x3f0 [ 16.081657] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.081723] kthread+0x328/0x630 [ 16.081766] ret_from_fork+0x10/0x20 [ 16.081816] [ 16.081834] Allocated by task 211: [ 16.081865] kasan_save_stack+0x3c/0x68 [ 16.081904] kasan_save_track+0x20/0x40 [ 16.081941] kasan_save_alloc_info+0x40/0x58 [ 16.081990] __kasan_slab_alloc+0xa8/0xb0 [ 16.082028] kmem_cache_alloc_noprof+0x10c/0x398 [ 16.082076] kmem_cache_invalid_free+0x12c/0x3c8 [ 16.082125] kunit_try_run_case+0x170/0x3f0 [ 16.082172] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.082215] kthread+0x328/0x630 [ 16.082247] ret_from_fork+0x10/0x20 [ 16.082281] [ 16.082313] The buggy address belongs to the object at fff00000c77af000 [ 16.082313] which belongs to the cache test_cache of size 200 [ 16.082379] The buggy address is located 1 bytes inside of [ 16.082379] 200-byte region [fff00000c77af000, fff00000c77af0c8) [ 16.082439] [ 16.082460] The buggy address belongs to the physical page: [ 16.082491] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077af [ 16.082546] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.082598] page_type: f5(slab) [ 16.082638] raw: 0bfffe0000000000 fff00000c5b33780 dead000000000122 0000000000000000 [ 16.082698] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 16.082740] page dumped because: kasan: bad access detected [ 16.082772] [ 16.082797] Memory state around the buggy address: [ 16.082830] fff00000c77aef00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 16.082879] fff00000c77aef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.082925] >fff00000c77af000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.082963] ^ [ 16.082990] fff00000c77af080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 16.083032] fff00000c77af100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.083071] ==================================================================
[ 12.734983] ================================================================== [ 12.735404] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 12.736098] Free of addr ffff8881027ef001 by task kunit_try_catch/228 [ 12.736856] [ 12.737056] CPU: 1 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.737100] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.737110] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.737131] Call Trace: [ 12.737142] <TASK> [ 12.737158] dump_stack_lvl+0x73/0xb0 [ 12.737190] print_report+0xd1/0x610 [ 12.737211] ? __virt_addr_valid+0x1db/0x2d0 [ 12.737235] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.737255] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.737279] kasan_report_invalid_free+0x10a/0x130 [ 12.737301] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.737326] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.737349] check_slab_allocation+0x11f/0x130 [ 12.737369] __kasan_slab_pre_free+0x28/0x40 [ 12.737388] kmem_cache_free+0xed/0x420 [ 12.737406] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.737425] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.737451] kmem_cache_invalid_free+0x1d8/0x460 [ 12.737473] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 12.737515] ? finish_task_switch.isra.0+0x153/0x700 [ 12.737537] ? __switch_to+0x47/0xf50 [ 12.737571] ? __pfx_read_tsc+0x10/0x10 [ 12.737591] ? ktime_get_ts64+0x86/0x230 [ 12.737614] kunit_try_run_case+0x1a5/0x480 [ 12.737638] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.737659] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.737681] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.737703] ? __kthread_parkme+0x82/0x180 [ 12.737723] ? preempt_count_sub+0x50/0x80 [ 12.737744] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.737767] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.737788] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.737810] kthread+0x337/0x6f0 [ 12.737828] ? trace_preempt_on+0x20/0xc0 [ 12.737850] ? __pfx_kthread+0x10/0x10 [ 12.737869] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.737889] ? calculate_sigpending+0x7b/0xa0 [ 12.737911] ? __pfx_kthread+0x10/0x10 [ 12.737931] ret_from_fork+0x116/0x1d0 [ 12.737948] ? __pfx_kthread+0x10/0x10 [ 12.737967] ret_from_fork_asm+0x1a/0x30 [ 12.737996] </TASK> [ 12.738015] [ 12.751519] Allocated by task 228: [ 12.751681] kasan_save_stack+0x45/0x70 [ 12.752151] kasan_save_track+0x18/0x40 [ 12.752356] kasan_save_alloc_info+0x3b/0x50 [ 12.752791] __kasan_slab_alloc+0x91/0xa0 [ 12.753032] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.753186] kmem_cache_invalid_free+0x157/0x460 [ 12.753340] kunit_try_run_case+0x1a5/0x480 [ 12.753833] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.754424] kthread+0x337/0x6f0 [ 12.754745] ret_from_fork+0x116/0x1d0 [ 12.755100] ret_from_fork_asm+0x1a/0x30 [ 12.755464] [ 12.755628] The buggy address belongs to the object at ffff8881027ef000 [ 12.755628] which belongs to the cache test_cache of size 200 [ 12.756351] The buggy address is located 1 bytes inside of [ 12.756351] 200-byte region [ffff8881027ef000, ffff8881027ef0c8) [ 12.757533] [ 12.757704] The buggy address belongs to the physical page: [ 12.758114] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027ef [ 12.758923] flags: 0x200000000000000(node=0|zone=2) [ 12.759227] page_type: f5(slab) [ 12.759349] raw: 0200000000000000 ffff888101da2c80 dead000000000122 0000000000000000 [ 12.760070] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.760730] page dumped because: kasan: bad access detected [ 12.760901] [ 12.760977] Memory state around the buggy address: [ 12.761143] ffff8881027eef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.762131] ffff8881027eef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.762950] >ffff8881027ef000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.763794] ^ [ 12.764154] ffff8881027ef080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.764815] ffff8881027ef100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.765562] ==================================================================