Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.596979] ================================================================== [ 17.597274] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 17.597486] Free of addr fff00000c78ca001 by task kunit_try_catch/211 [ 17.597563] [ 17.597681] CPU: 0 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.597769] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.597997] Hardware name: linux,dummy-virt (DT) [ 17.598162] Call trace: [ 17.598207] show_stack+0x20/0x38 (C) [ 17.598292] dump_stack_lvl+0x8c/0xd0 [ 17.598411] print_report+0x118/0x608 [ 17.598488] kasan_report_invalid_free+0xc0/0xe8 [ 17.598540] check_slab_allocation+0xfc/0x108 [ 17.598593] __kasan_slab_pre_free+0x2c/0x48 [ 17.598902] kmem_cache_free+0xf0/0x468 [ 17.599022] kmem_cache_invalid_free+0x184/0x3c8 [ 17.599092] kunit_try_run_case+0x170/0x3f0 [ 17.599218] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.599304] kthread+0x328/0x630 [ 17.599377] ret_from_fork+0x10/0x20 [ 17.599426] [ 17.599444] Allocated by task 211: [ 17.599476] kasan_save_stack+0x3c/0x68 [ 17.599794] kasan_save_track+0x20/0x40 [ 17.599854] kasan_save_alloc_info+0x40/0x58 [ 17.599895] __kasan_slab_alloc+0xa8/0xb0 [ 17.600310] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.600382] kmem_cache_invalid_free+0x12c/0x3c8 [ 17.600565] kunit_try_run_case+0x170/0x3f0 [ 17.600637] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.600700] kthread+0x328/0x630 [ 17.600764] ret_from_fork+0x10/0x20 [ 17.600802] [ 17.600821] The buggy address belongs to the object at fff00000c78ca000 [ 17.600821] which belongs to the cache test_cache of size 200 [ 17.600897] The buggy address is located 1 bytes inside of [ 17.600897] 200-byte region [fff00000c78ca000, fff00000c78ca0c8) [ 17.601270] [ 17.601831] The buggy address belongs to the physical page: [ 17.601886] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078ca [ 17.601966] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.602326] page_type: f5(slab) [ 17.602799] raw: 0bfffe0000000000 fff00000c3eae8c0 dead000000000122 0000000000000000 [ 17.602901] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.603145] page dumped because: kasan: bad access detected [ 17.603333] [ 17.603534] Memory state around the buggy address: [ 17.603596] fff00000c78c9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.603673] fff00000c78c9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.603799] >fff00000c78ca000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.603944] ^ [ 17.604080] fff00000c78ca080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.604125] fff00000c78ca100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.604219] ==================================================================
[ 12.144844] ================================================================== [ 12.145885] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 12.146435] Free of addr ffff8881038dd001 by task kunit_try_catch/229 [ 12.146947] [ 12.147130] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.147195] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.147212] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.147233] Call Trace: [ 12.147246] <TASK> [ 12.147262] dump_stack_lvl+0x73/0xb0 [ 12.147291] print_report+0xd1/0x650 [ 12.147328] ? __virt_addr_valid+0x1db/0x2d0 [ 12.147354] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.147374] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.147398] kasan_report_invalid_free+0x10a/0x130 [ 12.147420] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.147455] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.147478] check_slab_allocation+0x11f/0x130 [ 12.147499] __kasan_slab_pre_free+0x28/0x40 [ 12.147538] kmem_cache_free+0xed/0x420 [ 12.147558] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.147577] ? kmem_cache_invalid_free+0x1d8/0x460 [ 12.147613] kmem_cache_invalid_free+0x1d8/0x460 [ 12.147636] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 12.147658] ? finish_task_switch.isra.0+0x153/0x700 [ 12.147680] ? __switch_to+0x47/0xf50 [ 12.147707] ? __pfx_read_tsc+0x10/0x10 [ 12.147728] ? ktime_get_ts64+0x86/0x230 [ 12.147751] kunit_try_run_case+0x1a5/0x480 [ 12.147774] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.147795] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.147816] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.147838] ? __kthread_parkme+0x82/0x180 [ 12.147858] ? preempt_count_sub+0x50/0x80 [ 12.147879] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.147901] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.147921] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.147943] kthread+0x337/0x6f0 [ 12.147961] ? trace_preempt_on+0x20/0xc0 [ 12.147984] ? __pfx_kthread+0x10/0x10 [ 12.148003] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.148023] ? calculate_sigpending+0x7b/0xa0 [ 12.148046] ? __pfx_kthread+0x10/0x10 [ 12.148066] ret_from_fork+0x116/0x1d0 [ 12.148082] ? __pfx_kthread+0x10/0x10 [ 12.148110] ret_from_fork_asm+0x1a/0x30 [ 12.148156] </TASK> [ 12.148168] [ 12.163266] Allocated by task 229: [ 12.163544] kasan_save_stack+0x45/0x70 [ 12.163695] kasan_save_track+0x18/0x40 [ 12.163832] kasan_save_alloc_info+0x3b/0x50 [ 12.163981] __kasan_slab_alloc+0x91/0xa0 [ 12.164131] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.164418] kmem_cache_invalid_free+0x157/0x460 [ 12.164617] kunit_try_run_case+0x1a5/0x480 [ 12.164843] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.165037] kthread+0x337/0x6f0 [ 12.165213] ret_from_fork+0x116/0x1d0 [ 12.165521] ret_from_fork_asm+0x1a/0x30 [ 12.165668] [ 12.165740] The buggy address belongs to the object at ffff8881038dd000 [ 12.165740] which belongs to the cache test_cache of size 200 [ 12.166264] The buggy address is located 1 bytes inside of [ 12.166264] 200-byte region [ffff8881038dd000, ffff8881038dd0c8) [ 12.166910] [ 12.167041] The buggy address belongs to the physical page: [ 12.167234] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038dd [ 12.167709] flags: 0x200000000000000(node=0|zone=2) [ 12.167877] page_type: f5(slab) [ 12.168241] raw: 0200000000000000 ffff888101675500 dead000000000122 0000000000000000 [ 12.168681] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.169059] page dumped because: kasan: bad access detected [ 12.169394] [ 12.169493] Memory state around the buggy address: [ 12.169711] ffff8881038dcf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.169994] ffff8881038dcf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.170655] >ffff8881038dd000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.171007] ^ [ 12.171194] ffff8881038dd080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.171609] ffff8881038dd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.171883] ==================================================================