Date
July 15, 2025, 11:35 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 51.037951] ================================================================== [ 51.038150] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 51.044256] Free of addr ffff000801afc001 by task kunit_try_catch/292 [ 51.050680] [ 51.052165] CPU: 3 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 51.052226] Tainted: [B]=BAD_PAGE, [N]=TEST [ 51.052242] Hardware name: WinLink E850-96 board (DT) [ 51.052265] Call trace: [ 51.052277] show_stack+0x20/0x38 (C) [ 51.052311] dump_stack_lvl+0x8c/0xd0 [ 51.052347] print_report+0x118/0x5d0 [ 51.052376] kasan_report_invalid_free+0xc0/0xe8 [ 51.052406] check_slab_allocation+0xfc/0x108 [ 51.052443] __kasan_slab_pre_free+0x2c/0x48 [ 51.052478] kmem_cache_free+0xf0/0x468 [ 51.052513] kmem_cache_invalid_free+0x184/0x3c8 [ 51.052545] kunit_try_run_case+0x170/0x3f0 [ 51.052578] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.052613] kthread+0x328/0x630 [ 51.052638] ret_from_fork+0x10/0x20 [ 51.052671] [ 51.125331] Allocated by task 292: [ 51.128717] kasan_save_stack+0x3c/0x68 [ 51.132535] kasan_save_track+0x20/0x40 [ 51.136353] kasan_save_alloc_info+0x40/0x58 [ 51.140607] __kasan_slab_alloc+0xa8/0xb0 [ 51.144600] kmem_cache_alloc_noprof+0x10c/0x398 [ 51.149200] kmem_cache_invalid_free+0x12c/0x3c8 [ 51.153801] kunit_try_run_case+0x170/0x3f0 [ 51.157967] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 51.163436] kthread+0x328/0x630 [ 51.166648] ret_from_fork+0x10/0x20 [ 51.170206] [ 51.171684] The buggy address belongs to the object at ffff000801afc000 [ 51.171684] which belongs to the cache test_cache of size 200 [ 51.184099] The buggy address is located 1 bytes inside of [ 51.184099] 200-byte region [ffff000801afc000, ffff000801afc0c8) [ 51.195640] [ 51.197120] The buggy address belongs to the physical page: [ 51.202675] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881afc [ 51.210659] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 51.218299] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 51.225242] page_type: f5(slab) [ 51.228377] raw: 0bfffe0000000040 ffff000801afa000 dead000000000122 0000000000000000 [ 51.236098] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 51.243826] head: 0bfffe0000000040 ffff000801afa000 dead000000000122 0000000000000000 [ 51.251636] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 51.259449] head: 0bfffe0000000001 fffffdffe006bf01 00000000ffffffff 00000000ffffffff [ 51.267260] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 51.275068] page dumped because: kasan: bad access detected [ 51.280621] [ 51.282097] Memory state around the buggy address: [ 51.286879] ffff000801afbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 51.294080] ffff000801afbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 51.301288] >ffff000801afc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 51.308486] ^ [ 51.311701] ffff000801afc080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 51.318906] ffff000801afc100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 51.326108] ==================================================================
[ 31.264694] ================================================================== [ 31.265197] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 31.265383] Free of addr fff00000c6526001 by task kunit_try_catch/243 [ 31.265539] [ 31.265686] CPU: 0 UID: 0 PID: 243 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 31.265778] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.265805] Hardware name: linux,dummy-virt (DT) [ 31.266146] Call trace: [ 31.266176] show_stack+0x20/0x38 (C) [ 31.266234] dump_stack_lvl+0x8c/0xd0 [ 31.266394] print_report+0x118/0x5d0 [ 31.266450] kasan_report_invalid_free+0xc0/0xe8 [ 31.266608] check_slab_allocation+0xfc/0x108 [ 31.266662] __kasan_slab_pre_free+0x2c/0x48 [ 31.266712] kmem_cache_free+0xf0/0x468 [ 31.266773] kmem_cache_invalid_free+0x184/0x3c8 [ 31.266942] kunit_try_run_case+0x170/0x3f0 [ 31.267090] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.267208] kthread+0x328/0x630 [ 31.267253] ret_from_fork+0x10/0x20 [ 31.267303] [ 31.267323] Allocated by task 243: [ 31.267362] kasan_save_stack+0x3c/0x68 [ 31.267407] kasan_save_track+0x20/0x40 [ 31.267691] kasan_save_alloc_info+0x40/0x58 [ 31.267956] __kasan_slab_alloc+0xa8/0xb0 [ 31.268024] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.268104] kmem_cache_invalid_free+0x12c/0x3c8 [ 31.268168] kunit_try_run_case+0x170/0x3f0 [ 31.268319] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.268371] kthread+0x328/0x630 [ 31.268403] ret_from_fork+0x10/0x20 [ 31.268628] [ 31.268839] The buggy address belongs to the object at fff00000c6526000 [ 31.268839] which belongs to the cache test_cache of size 200 [ 31.268900] The buggy address is located 1 bytes inside of [ 31.268900] 200-byte region [fff00000c6526000, fff00000c65260c8) [ 31.268959] [ 31.268980] The buggy address belongs to the physical page: [ 31.269014] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106526 [ 31.269070] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.269120] page_type: f5(slab) [ 31.269170] raw: 0bfffe0000000000 fff00000c5c5ca00 dead000000000122 0000000000000000 [ 31.269221] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 31.269261] page dumped because: kasan: bad access detected [ 31.269340] [ 31.269406] Memory state around the buggy address: [ 31.269449] fff00000c6525f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.269491] fff00000c6525f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.269533] >fff00000c6526000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.269571] ^ [ 31.269606] fff00000c6526080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.269729] fff00000c6526100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.269899] ==================================================================
[ 24.777469] ================================================================== [ 24.778273] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 24.778959] Free of addr ffff88810591a001 by task kunit_try_catch/259 [ 24.779487] [ 24.779712] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) [ 24.779865] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.779883] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.779908] Call Trace: [ 24.779924] <TASK> [ 24.779943] dump_stack_lvl+0x73/0xb0 [ 24.779980] print_report+0xd1/0x610 [ 24.780017] ? __virt_addr_valid+0x1db/0x2d0 [ 24.780048] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.780079] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.780109] kasan_report_invalid_free+0x10a/0x130 [ 24.780139] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.780170] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.780200] check_slab_allocation+0x11f/0x130 [ 24.780226] __kasan_slab_pre_free+0x28/0x40 [ 24.780251] kmem_cache_free+0xed/0x420 [ 24.780276] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 24.780305] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.780338] kmem_cache_invalid_free+0x1d8/0x460 [ 24.780367] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 24.780395] ? finish_task_switch.isra.0+0x153/0x700 [ 24.780422] ? __switch_to+0x47/0xf80 [ 24.780458] ? __pfx_read_tsc+0x10/0x10 [ 24.780485] ? ktime_get_ts64+0x86/0x230 [ 24.780517] kunit_try_run_case+0x1a5/0x480 [ 24.780556] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.780582] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.780610] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.780637] ? __kthread_parkme+0x82/0x180 [ 24.780662] ? preempt_count_sub+0x50/0x80 [ 24.780691] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.780719] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.780749] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.780780] kthread+0x337/0x6f0 [ 24.780804] ? trace_preempt_on+0x20/0xc0 [ 24.780833] ? __pfx_kthread+0x10/0x10 [ 24.780859] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.780888] ? calculate_sigpending+0x7b/0xa0 [ 24.780917] ? __pfx_kthread+0x10/0x10 [ 24.780943] ret_from_fork+0x116/0x1d0 [ 24.780966] ? __pfx_kthread+0x10/0x10 [ 24.780992] ret_from_fork_asm+0x1a/0x30 [ 24.781032] </TASK> [ 24.781044] [ 24.788534] Allocated by task 259: [ 24.788730] kasan_save_stack+0x45/0x70 [ 24.788882] kasan_save_track+0x18/0x40 [ 24.789020] kasan_save_alloc_info+0x3b/0x50 [ 24.789170] __kasan_slab_alloc+0x91/0xa0 [ 24.789309] kmem_cache_alloc_noprof+0x123/0x3f0 [ 24.789516] kmem_cache_invalid_free+0x157/0x460 [ 24.789704] kunit_try_run_case+0x1a5/0x480 [ 24.789915] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.790161] kthread+0x337/0x6f0 [ 24.790283] ret_from_fork+0x116/0x1d0 [ 24.790416] ret_from_fork_asm+0x1a/0x30 [ 24.790585] [ 24.790700] The buggy address belongs to the object at ffff88810591a000 [ 24.790700] which belongs to the cache test_cache of size 200 [ 24.791234] The buggy address is located 1 bytes inside of [ 24.791234] 200-byte region [ffff88810591a000, ffff88810591a0c8) [ 24.791780] [ 24.791850] The buggy address belongs to the physical page: [ 24.792024] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10591a [ 24.792294] flags: 0x200000000000000(node=0|zone=2) [ 24.792539] page_type: f5(slab) [ 24.792789] raw: 0200000000000000 ffff888101742b40 dead000000000122 0000000000000000 [ 24.793132] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 24.793412] page dumped because: kasan: bad access detected [ 24.793704] [ 24.793792] Memory state around the buggy address: [ 24.793976] ffff888105919f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.794260] ffff888105919f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.794506] >ffff88810591a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.794953] ^ [ 24.795238] ffff88810591a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 24.795492] ffff88810591a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.795909] ==================================================================