Date
July 11, 2025, 10:11 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 51.141783] ================================================================== [ 51.141983] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 51.148275] Free of addr ffff000803b98001 by task kunit_try_catch/295 [ 51.154699] [ 51.156184] CPU: 5 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 51.156236] Tainted: [B]=BAD_PAGE, [N]=TEST [ 51.156253] Hardware name: WinLink E850-96 board (DT) [ 51.156278] Call trace: [ 51.156291] show_stack+0x20/0x38 (C) [ 51.156328] dump_stack_lvl+0x8c/0xd0 [ 51.156363] print_report+0x118/0x5d0 [ 51.156392] kasan_report_invalid_free+0xc0/0xe8 [ 51.156425] check_slab_allocation+0xfc/0x108 [ 51.156460] __kasan_slab_pre_free+0x2c/0x48 [ 51.156493] kmem_cache_free+0xf0/0x468 [ 51.156527] kmem_cache_invalid_free+0x184/0x3c8 [ 51.156560] kunit_try_run_case+0x170/0x3f0 [ 51.156597] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.156634] kthread+0x328/0x630 [ 51.156663] ret_from_fork+0x10/0x20 [ 51.156699] [ 51.229350] Allocated by task 295: [ 51.232737] kasan_save_stack+0x3c/0x68 [ 51.236553] kasan_save_track+0x20/0x40 [ 51.240373] kasan_save_alloc_info+0x40/0x58 [ 51.244626] __kasan_slab_alloc+0xa8/0xb0 [ 51.248619] kmem_cache_alloc_noprof+0x10c/0x398 [ 51.253219] kmem_cache_invalid_free+0x12c/0x3c8 [ 51.257821] kunit_try_run_case+0x170/0x3f0 [ 51.261987] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.267455] kthread+0x328/0x630 [ 51.270667] ret_from_fork+0x10/0x20 [ 51.274226] [ 51.275705] The buggy address belongs to the object at ffff000803b98000 [ 51.275705] which belongs to the cache test_cache of size 200 [ 51.288116] The buggy address is located 1 bytes inside of [ 51.288116] 200-byte region [ffff000803b98000, ffff000803b980c8) [ 51.299662] [ 51.301139] The buggy address belongs to the physical page: [ 51.306695] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x883b98 [ 51.314679] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 51.322319] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 51.329261] page_type: f5(slab) [ 51.332399] raw: 0bfffe0000000040 ffff000801e59900 dead000000000122 0000000000000000 [ 51.340117] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 51.347846] head: 0bfffe0000000040 ffff000801e59900 dead000000000122 0000000000000000 [ 51.355655] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 51.363470] head: 0bfffe0000000001 fffffdffe00ee601 00000000ffffffff 00000000ffffffff [ 51.371280] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 51.379085] page dumped because: kasan: bad access detected [ 51.384641] [ 51.386116] Memory state around the buggy address: [ 51.390898] ffff000803b97f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 51.398099] ffff000803b97f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 51.405305] >ffff000803b98000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 51.412506] ^ [ 51.415721] ffff000803b98080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 51.422926] ffff000803b98100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 51.430128] ==================================================================
[ 31.053386] ================================================================== [ 31.053531] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 31.053614] Free of addr fff00000c99ff001 by task kunit_try_catch/242 [ 31.053660] [ 31.053704] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 31.054218] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.054256] Hardware name: linux,dummy-virt (DT) [ 31.054607] Call trace: [ 31.054689] show_stack+0x20/0x38 (C) [ 31.055041] dump_stack_lvl+0x8c/0xd0 [ 31.055112] print_report+0x118/0x5d0 [ 31.055545] kasan_report_invalid_free+0xc0/0xe8 [ 31.055607] check_slab_allocation+0xfc/0x108 [ 31.055670] __kasan_slab_pre_free+0x2c/0x48 [ 31.055721] kmem_cache_free+0xf0/0x468 [ 31.055771] kmem_cache_invalid_free+0x184/0x3c8 [ 31.055822] kunit_try_run_case+0x170/0x3f0 [ 31.056385] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.056446] kthread+0x328/0x630 [ 31.056957] ret_from_fork+0x10/0x20 [ 31.057015] [ 31.057036] Allocated by task 242: [ 31.057075] kasan_save_stack+0x3c/0x68 [ 31.057120] kasan_save_track+0x20/0x40 [ 31.057589] kasan_save_alloc_info+0x40/0x58 [ 31.057851] __kasan_slab_alloc+0xa8/0xb0 [ 31.057999] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.058386] kmem_cache_invalid_free+0x12c/0x3c8 [ 31.058567] kunit_try_run_case+0x170/0x3f0 [ 31.058620] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.058864] kthread+0x328/0x630 [ 31.059285] ret_from_fork+0x10/0x20 [ 31.059361] [ 31.059382] The buggy address belongs to the object at fff00000c99ff000 [ 31.059382] which belongs to the cache test_cache of size 200 [ 31.059445] The buggy address is located 1 bytes inside of [ 31.059445] 200-byte region [fff00000c99ff000, fff00000c99ff0c8) [ 31.060050] [ 31.060088] The buggy address belongs to the physical page: [ 31.060203] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099ff [ 31.060462] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.060922] page_type: f5(slab) [ 31.061042] raw: 0bfffe0000000000 fff00000c3e18640 dead000000000122 0000000000000000 [ 31.061418] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 31.061502] page dumped because: kasan: bad access detected [ 31.061698] [ 31.061722] Memory state around the buggy address: [ 31.061758] fff00000c99fef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.061804] fff00000c99fef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.061848] >fff00000c99ff000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.062359] ^ [ 31.062435] fff00000c99ff080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.062814] fff00000c99ff100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.062862] ==================================================================
[ 24.502807] ================================================================== [ 24.503235] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 24.503828] Free of addr ffff888106116001 by task kunit_try_catch/261 [ 24.504188] [ 24.504319] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) [ 24.504375] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.504387] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.504411] Call Trace: [ 24.504426] <TASK> [ 24.504446] dump_stack_lvl+0x73/0xb0 [ 24.504704] print_report+0xd1/0x610 [ 24.504747] ? __virt_addr_valid+0x1db/0x2d0 [ 24.504774] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.504800] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.504824] kasan_report_invalid_free+0x10a/0x130 [ 24.504847] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.504872] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.504896] check_slab_allocation+0x11f/0x130 [ 24.504916] __kasan_slab_pre_free+0x28/0x40 [ 24.504936] kmem_cache_free+0xed/0x420 [ 24.504960] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 24.504984] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.505010] kmem_cache_invalid_free+0x1d8/0x460 [ 24.505034] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 24.505056] ? finish_task_switch.isra.0+0x153/0x700 [ 24.505079] ? __switch_to+0x47/0xf80 [ 24.505109] ? __pfx_read_tsc+0x10/0x10 [ 24.505131] ? ktime_get_ts64+0x86/0x230 [ 24.505157] kunit_try_run_case+0x1a5/0x480 [ 24.505180] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.505200] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.505225] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.505247] ? __kthread_parkme+0x82/0x180 [ 24.505348] ? preempt_count_sub+0x50/0x80 [ 24.505373] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.505394] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.505433] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.505457] kthread+0x337/0x6f0 [ 24.505478] ? trace_preempt_on+0x20/0xc0 [ 24.505503] ? __pfx_kthread+0x10/0x10 [ 24.505524] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.505550] ? calculate_sigpending+0x7b/0xa0 [ 24.505575] ? __pfx_kthread+0x10/0x10 [ 24.505597] ret_from_fork+0x116/0x1d0 [ 24.505617] ? __pfx_kthread+0x10/0x10 [ 24.505639] ret_from_fork_asm+0x1a/0x30 [ 24.505669] </TASK> [ 24.505681] [ 24.517774] Allocated by task 261: [ 24.517959] kasan_save_stack+0x45/0x70 [ 24.518121] kasan_save_track+0x18/0x40 [ 24.518497] kasan_save_alloc_info+0x3b/0x50 [ 24.518719] __kasan_slab_alloc+0x91/0xa0 [ 24.518918] kmem_cache_alloc_noprof+0x123/0x3f0 [ 24.519122] kmem_cache_invalid_free+0x157/0x460 [ 24.519326] kunit_try_run_case+0x1a5/0x480 [ 24.519955] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.520164] kthread+0x337/0x6f0 [ 24.520467] ret_from_fork+0x116/0x1d0 [ 24.520647] ret_from_fork_asm+0x1a/0x30 [ 24.520834] [ 24.520908] The buggy address belongs to the object at ffff888106116000 [ 24.520908] which belongs to the cache test_cache of size 200 [ 24.521763] The buggy address is located 1 bytes inside of [ 24.521763] 200-byte region [ffff888106116000, ffff8881061160c8) [ 24.522286] [ 24.522467] The buggy address belongs to the physical page: [ 24.523094] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106116 [ 24.523706] flags: 0x200000000000000(node=0|zone=2) [ 24.523967] page_type: f5(slab) [ 24.524190] raw: 0200000000000000 ffff888101590500 dead000000000122 0000000000000000 [ 24.524714] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 24.525105] page dumped because: kasan: bad access detected [ 24.525456] [ 24.525620] Memory state around the buggy address: [ 24.525863] ffff888106115f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.526147] ffff888106115f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.526799] >ffff888106116000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.527159] ^ [ 24.527341] ffff888106116080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 24.527850] ffff888106116100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.528159] ==================================================================