Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.959806] ================================================================== [ 15.959976] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 15.960054] Free of addr fff00000c7938001 by task kunit_try_catch/212 [ 15.960302] [ 15.960359] CPU: 0 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.960562] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.960600] Hardware name: linux,dummy-virt (DT) [ 15.960649] Call trace: [ 15.960672] show_stack+0x20/0x38 (C) [ 15.961091] dump_stack_lvl+0x8c/0xd0 [ 15.961219] print_report+0x118/0x5d0 [ 15.961270] kasan_report_invalid_free+0xc0/0xe8 [ 15.961321] check_slab_allocation+0xfc/0x108 [ 15.961617] __kasan_slab_pre_free+0x2c/0x48 [ 15.961745] kmem_cache_free+0xf0/0x468 [ 15.961897] kmem_cache_invalid_free+0x184/0x3c8 [ 15.962093] kunit_try_run_case+0x170/0x3f0 [ 15.962315] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.962428] kthread+0x328/0x630 [ 15.962475] ret_from_fork+0x10/0x20 [ 15.962546] [ 15.962579] Allocated by task 212: [ 15.962618] kasan_save_stack+0x3c/0x68 [ 15.962662] kasan_save_track+0x20/0x40 [ 15.962709] kasan_save_alloc_info+0x40/0x58 [ 15.962750] __kasan_slab_alloc+0xa8/0xb0 [ 15.962804] kmem_cache_alloc_noprof+0x10c/0x398 [ 15.962852] kmem_cache_invalid_free+0x12c/0x3c8 [ 15.962891] kunit_try_run_case+0x170/0x3f0 [ 15.962927] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.962971] kthread+0x328/0x630 [ 15.963291] ret_from_fork+0x10/0x20 [ 15.963518] [ 15.963562] The buggy address belongs to the object at fff00000c7938000 [ 15.963562] which belongs to the cache test_cache of size 200 [ 15.963663] The buggy address is located 1 bytes inside of [ 15.963663] 200-byte region [fff00000c7938000, fff00000c79380c8) [ 15.964113] [ 15.964155] The buggy address belongs to the physical page: [ 15.964309] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107938 [ 15.964371] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.964711] page_type: f5(slab) [ 15.964859] raw: 0bfffe0000000000 fff00000c78a1000 dead000000000122 0000000000000000 [ 15.964913] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.964961] page dumped because: kasan: bad access detected [ 15.965000] [ 15.965140] Memory state around the buggy address: [ 15.965363] fff00000c7937f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.965510] fff00000c7937f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.965594] >fff00000c7938000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.965894] ^ [ 15.965988] fff00000c7938080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.966124] fff00000c7938100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.966165] ==================================================================
[ 13.760541] ================================================================== [ 13.761108] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 13.762095] Free of addr ffff8881025d8001 by task kunit_try_catch/228 [ 13.762894] [ 13.763245] CPU: 1 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.763296] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.763308] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.763330] Call Trace: [ 13.763342] <TASK> [ 13.763359] dump_stack_lvl+0x73/0xb0 [ 13.763392] print_report+0xd1/0x610 [ 13.763530] ? __virt_addr_valid+0x1db/0x2d0 [ 13.763582] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.763609] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.763637] kasan_report_invalid_free+0x10a/0x130 [ 13.763694] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.763721] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.763747] check_slab_allocation+0x11f/0x130 [ 13.763769] __kasan_slab_pre_free+0x28/0x40 [ 13.763790] kmem_cache_free+0xed/0x420 [ 13.763811] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.763832] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.763860] kmem_cache_invalid_free+0x1d8/0x460 [ 13.763885] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 13.763910] ? finish_task_switch.isra.0+0x153/0x700 [ 13.763934] ? __switch_to+0x47/0xf50 [ 13.763963] ? __pfx_read_tsc+0x10/0x10 [ 13.763984] ? ktime_get_ts64+0x86/0x230 [ 13.764008] kunit_try_run_case+0x1a5/0x480 [ 13.764035] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.764066] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.764090] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.764114] ? __kthread_parkme+0x82/0x180 [ 13.764134] ? preempt_count_sub+0x50/0x80 [ 13.764157] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.764182] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.764207] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.764234] kthread+0x337/0x6f0 [ 13.764263] ? trace_preempt_on+0x20/0xc0 [ 13.764287] ? __pfx_kthread+0x10/0x10 [ 13.764308] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.764329] ? calculate_sigpending+0x7b/0xa0 [ 13.764354] ? __pfx_kthread+0x10/0x10 [ 13.764375] ret_from_fork+0x116/0x1d0 [ 13.764393] ? __pfx_kthread+0x10/0x10 [ 13.764420] ret_from_fork_asm+0x1a/0x30 [ 13.764451] </TASK> [ 13.764462] [ 13.781868] Allocated by task 228: [ 13.782586] kasan_save_stack+0x45/0x70 [ 13.783019] kasan_save_track+0x18/0x40 [ 13.783691] kasan_save_alloc_info+0x3b/0x50 [ 13.784152] __kasan_slab_alloc+0x91/0xa0 [ 13.784672] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.784994] kmem_cache_invalid_free+0x157/0x460 [ 13.785160] kunit_try_run_case+0x1a5/0x480 [ 13.785321] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.785717] kthread+0x337/0x6f0 [ 13.785860] ret_from_fork+0x116/0x1d0 [ 13.786225] ret_from_fork_asm+0x1a/0x30 [ 13.786805] [ 13.786991] The buggy address belongs to the object at ffff8881025d8000 [ 13.786991] which belongs to the cache test_cache of size 200 [ 13.787823] The buggy address is located 1 bytes inside of [ 13.787823] 200-byte region [ffff8881025d8000, ffff8881025d80c8) [ 13.788729] [ 13.788805] The buggy address belongs to the physical page: [ 13.788979] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025d8 [ 13.789221] flags: 0x200000000000000(node=0|zone=2) [ 13.789759] page_type: f5(slab) [ 13.790079] raw: 0200000000000000 ffff8881025d5000 dead000000000122 0000000000000000 [ 13.790814] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.791582] page dumped because: kasan: bad access detected [ 13.791996] [ 13.792073] Memory state around the buggy address: [ 13.792229] ffff8881025d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.792959] ffff8881025d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.793749] >ffff8881025d8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.794144] ^ [ 13.794302] ffff8881025d8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.794970] ffff8881025d8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.795515] ==================================================================