Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.338560] ================================================================== [ 17.338631] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 17.338703] Free of addr fff00000c65a9001 by task kunit_try_catch/211 [ 17.338805] [ 17.338859] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.338994] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.339228] Hardware name: linux,dummy-virt (DT) [ 17.339324] Call trace: [ 17.339386] show_stack+0x20/0x38 (C) [ 17.339462] dump_stack_lvl+0x8c/0xd0 [ 17.339551] print_report+0x118/0x5d0 [ 17.339597] kasan_report_invalid_free+0xc0/0xe8 [ 17.339652] check_slab_allocation+0xfc/0x108 [ 17.339700] __kasan_slab_pre_free+0x2c/0x48 [ 17.339920] kmem_cache_free+0xf0/0x468 [ 17.340046] kmem_cache_invalid_free+0x184/0x3c8 [ 17.340144] kunit_try_run_case+0x170/0x3f0 [ 17.340193] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.340265] kthread+0x328/0x630 [ 17.340309] ret_from_fork+0x10/0x20 [ 17.340357] [ 17.340376] Allocated by task 211: [ 17.340406] kasan_save_stack+0x3c/0x68 [ 17.340447] kasan_save_track+0x20/0x40 [ 17.340484] kasan_save_alloc_info+0x40/0x58 [ 17.340524] __kasan_slab_alloc+0xa8/0xb0 [ 17.340560] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.340712] kmem_cache_invalid_free+0x12c/0x3c8 [ 17.340852] kunit_try_run_case+0x170/0x3f0 [ 17.341027] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.341135] kthread+0x328/0x630 [ 17.341295] ret_from_fork+0x10/0x20 [ 17.341440] [ 17.341573] The buggy address belongs to the object at fff00000c65a9000 [ 17.341573] which belongs to the cache test_cache of size 200 [ 17.341683] The buggy address is located 1 bytes inside of [ 17.341683] 200-byte region [fff00000c65a9000, fff00000c65a90c8) [ 17.341906] [ 17.342146] The buggy address belongs to the physical page: [ 17.342198] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065a9 [ 17.342526] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.342736] page_type: f5(slab) [ 17.342816] raw: 0bfffe0000000000 fff00000c3e56780 dead000000000122 0000000000000000 [ 17.343138] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.343328] page dumped because: kasan: bad access detected [ 17.343387] [ 17.343480] Memory state around the buggy address: [ 17.343621] fff00000c65a8f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.343735] fff00000c65a8f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.343904] >fff00000c65a9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.344006] ^ [ 17.344046] fff00000c65a9080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.344089] fff00000c65a9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.344128] ==================================================================
[ 13.023653] ================================================================== [ 13.024420] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 13.024991] Free of addr ffff888102f4c001 by task kunit_try_catch/228 [ 13.025254] [ 13.025378] CPU: 0 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.025426] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.025437] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.025459] Call Trace: [ 13.025473] <TASK> [ 13.025492] dump_stack_lvl+0x73/0xb0 [ 13.025526] print_report+0xd1/0x610 [ 13.025549] ? __virt_addr_valid+0x1db/0x2d0 [ 13.025575] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.025609] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.025647] kasan_report_invalid_free+0x10a/0x130 [ 13.025671] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.025710] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.025735] check_slab_allocation+0x11f/0x130 [ 13.025757] __kasan_slab_pre_free+0x28/0x40 [ 13.025788] kmem_cache_free+0xed/0x420 [ 13.025809] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.025830] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.025869] kmem_cache_invalid_free+0x1d8/0x460 [ 13.025893] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 13.025917] ? finish_task_switch.isra.0+0x153/0x700 [ 13.025963] ? __switch_to+0x47/0xf50 [ 13.025994] ? __pfx_read_tsc+0x10/0x10 [ 13.026015] ? ktime_get_ts64+0x86/0x230 [ 13.026040] kunit_try_run_case+0x1a5/0x480 [ 13.026074] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.026096] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.026121] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.026144] ? __kthread_parkme+0x82/0x180 [ 13.026166] ? preempt_count_sub+0x50/0x80 [ 13.026188] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.026212] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.026240] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.026263] kthread+0x337/0x6f0 [ 13.026281] ? trace_preempt_on+0x20/0xc0 [ 13.026305] ? __pfx_kthread+0x10/0x10 [ 13.026325] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.026346] ? calculate_sigpending+0x7b/0xa0 [ 13.026370] ? __pfx_kthread+0x10/0x10 [ 13.026391] ret_from_fork+0x116/0x1d0 [ 13.026410] ? __pfx_kthread+0x10/0x10 [ 13.026429] ret_from_fork_asm+0x1a/0x30 [ 13.026463] </TASK> [ 13.026473] [ 13.039183] Allocated by task 228: [ 13.039367] kasan_save_stack+0x45/0x70 [ 13.039650] kasan_save_track+0x18/0x40 [ 13.040237] kasan_save_alloc_info+0x3b/0x50 [ 13.040550] __kasan_slab_alloc+0x91/0xa0 [ 13.040918] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.041113] kmem_cache_invalid_free+0x157/0x460 [ 13.041539] kunit_try_run_case+0x1a5/0x480 [ 13.041813] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.042320] kthread+0x337/0x6f0 [ 13.042457] ret_from_fork+0x116/0x1d0 [ 13.042729] ret_from_fork_asm+0x1a/0x30 [ 13.043352] [ 13.043670] The buggy address belongs to the object at ffff888102f4c000 [ 13.043670] which belongs to the cache test_cache of size 200 [ 13.044415] The buggy address is located 1 bytes inside of [ 13.044415] 200-byte region [ffff888102f4c000, ffff888102f4c0c8) [ 13.045455] [ 13.045731] The buggy address belongs to the physical page: [ 13.046435] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f4c [ 13.047258] flags: 0x200000000000000(node=0|zone=2) [ 13.047610] page_type: f5(slab) [ 13.048095] raw: 0200000000000000 ffff888101a30500 dead000000000122 0000000000000000 [ 13.048527] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.049391] page dumped because: kasan: bad access detected [ 13.049992] [ 13.050089] Memory state around the buggy address: [ 13.050248] ffff888102f4bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.050461] ffff888102f4bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.051191] >ffff888102f4c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.052046] ^ [ 13.052571] ffff888102f4c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.053387] ffff888102f4c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.054299] ==================================================================