Date
June 24, 2025, 12:47 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.132173] ================================================================== [ 25.134407] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 25.136200] Free of addr fff00000c4150001 by task kunit_try_catch/213 [ 25.136322] [ 25.137730] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT [ 25.137960] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.138057] Hardware name: linux,dummy-virt (DT) [ 25.138174] Call trace: [ 25.138311] show_stack+0x20/0x38 (C) [ 25.138530] dump_stack_lvl+0x8c/0xd0 [ 25.138673] print_report+0x118/0x608 [ 25.138863] kasan_report_invalid_free+0xc0/0xe8 [ 25.139322] check_slab_allocation+0xfc/0x108 [ 25.139899] __kasan_slab_pre_free+0x2c/0x48 [ 25.140065] kmem_cache_free+0xf0/0x468 [ 25.140192] kmem_cache_invalid_free+0x184/0x3c8 [ 25.140944] kunit_try_run_case+0x170/0x3f0 [ 25.141234] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.141565] kthread+0x328/0x630 [ 25.142017] ret_from_fork+0x10/0x20 [ 25.142721] [ 25.142775] Allocated by task 213: [ 25.143286] kasan_save_stack+0x3c/0x68 [ 25.143415] kasan_save_track+0x20/0x40 [ 25.143515] kasan_save_alloc_info+0x40/0x58 [ 25.143615] __kasan_slab_alloc+0xa8/0xb0 [ 25.144210] kmem_cache_alloc_noprof+0x10c/0x398 [ 25.144392] kmem_cache_invalid_free+0x12c/0x3c8 [ 25.144533] kunit_try_run_case+0x170/0x3f0 [ 25.144654] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.144780] kthread+0x328/0x630 [ 25.145791] ret_from_fork+0x10/0x20 [ 25.145902] [ 25.145950] The buggy address belongs to the object at fff00000c4150000 [ 25.145950] which belongs to the cache test_cache of size 200 [ 25.146678] The buggy address is located 1 bytes inside of [ 25.146678] 200-byte region [fff00000c4150000, fff00000c41500c8) [ 25.146824] [ 25.146876] The buggy address belongs to the physical page: [ 25.146950] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104150 [ 25.147081] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.147205] page_type: f5(slab) [ 25.147301] raw: 0bfffe0000000000 fff00000c3f5a8c0 dead000000000122 0000000000000000 [ 25.148502] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.148697] page dumped because: kasan: bad access detected [ 25.148796] [ 25.148991] Memory state around the buggy address: [ 25.149817] fff00000c414ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150009] fff00000c414ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.150107] >fff00000c4150000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.150278] ^ [ 25.151142] fff00000c4150080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.151270] fff00000c4150100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.151400] ==================================================================
[ 12.601910] ================================================================== [ 12.602719] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 12.603178] Free of addr ffff8881039ea001 by task kunit_try_catch/231 [ 12.603462] [ 12.603767] CPU: 0 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT(voluntary) [ 12.603977] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.604023] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.604062] Call Trace: [ 12.604101] <TASK> [ 12.604139] dump_stack_lvl+0x73/0xb0 [ 12.604204] print_report+0xd1/0x650 [ 12.604252] ? __virt_addr_valid+0x1db/0x2d0 [ 12.604744] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.604807] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.604855] kasan_report_invalid_free+0x10a/0x130 [ 12.604910] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.604953] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.604995] check_slab_allocation+0x11f/0x130 [ 12.605040] __kasan_slab_pre_free+0x28/0x40 [ 12.605076] kmem_cache_free+0xed/0x420 [ 12.605098] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.605118] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.605141] kmem_cache_invalid_free+0x1d8/0x460 [ 12.605161] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 12.605181] ? finish_task_switch.isra.0+0x153/0x700 [ 12.605205] ? __switch_to+0x5d9/0xf60 [ 12.605225] ? dequeue_task_fair+0x166/0x4e0 [ 12.605250] ? __pfx_read_tsc+0x10/0x10 [ 12.605270] ? ktime_get_ts64+0x86/0x230 [ 12.605329] kunit_try_run_case+0x1a5/0x480 [ 12.605375] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.605407] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.605441] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.605473] ? __kthread_parkme+0x82/0x180 [ 12.605497] ? preempt_count_sub+0x50/0x80 [ 12.605520] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.605562] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.605586] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.605608] kthread+0x337/0x6f0 [ 12.605641] ? trace_preempt_on+0x20/0xc0 [ 12.605667] ? __pfx_kthread+0x10/0x10 [ 12.605684] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.605704] ? calculate_sigpending+0x7b/0xa0 [ 12.605726] ? __pfx_kthread+0x10/0x10 [ 12.605743] ret_from_fork+0x41/0x80 [ 12.605764] ? __pfx_kthread+0x10/0x10 [ 12.605781] ret_from_fork_asm+0x1a/0x30 [ 12.605811] </TASK> [ 12.605824] [ 12.618427] Allocated by task 231: [ 12.618929] kasan_save_stack+0x45/0x70 [ 12.619379] kasan_save_track+0x18/0x40 [ 12.619835] kasan_save_alloc_info+0x3b/0x50 [ 12.620037] __kasan_slab_alloc+0x91/0xa0 [ 12.620375] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.621116] kmem_cache_invalid_free+0x157/0x460 [ 12.621758] kunit_try_run_case+0x1a5/0x480 [ 12.622116] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.622455] kthread+0x337/0x6f0 [ 12.622855] ret_from_fork+0x41/0x80 [ 12.623158] ret_from_fork_asm+0x1a/0x30 [ 12.623465] [ 12.623573] The buggy address belongs to the object at ffff8881039ea000 [ 12.623573] which belongs to the cache test_cache of size 200 [ 12.624199] The buggy address is located 1 bytes inside of [ 12.624199] 200-byte region [ffff8881039ea000, ffff8881039ea0c8) [ 12.625653] [ 12.625810] The buggy address belongs to the physical page: [ 12.626104] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ea [ 12.626861] flags: 0x200000000000000(node=0|zone=2) [ 12.627121] page_type: f5(slab) [ 12.627390] raw: 0200000000000000 ffff888101e343c0 dead000000000122 0000000000000000 [ 12.628054] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.629019] page dumped because: kasan: bad access detected [ 12.629328] [ 12.629678] Memory state around the buggy address: [ 12.629980] ffff8881039e9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.630276] ffff8881039e9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.630958] >ffff8881039ea000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.631601] ^ [ 12.631795] ffff8881039ea080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.632174] ffff8881039ea100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.632670] ==================================================================