Date
July 14, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 49.801581] ================================================================== [ 49.801766] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 49.808647] Free of addr ffff000801b6c001 by task kunit_try_catch/295 [ 49.815069] [ 49.816556] CPU: 4 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 49.816610] Tainted: [B]=BAD_PAGE, [N]=TEST [ 49.816629] Hardware name: WinLink E850-96 board (DT) [ 49.816651] Call trace: [ 49.816664] show_stack+0x20/0x38 (C) [ 49.816701] dump_stack_lvl+0x8c/0xd0 [ 49.816734] print_report+0x118/0x5d0 [ 49.816765] kasan_report_invalid_free+0xc0/0xe8 [ 49.816798] check_slab_allocation+0xfc/0x108 [ 49.816836] __kasan_slab_pre_free+0x2c/0x48 [ 49.816871] kmem_cache_free+0xf0/0x468 [ 49.816909] kmem_cache_invalid_free+0x184/0x3c8 [ 49.816945] kunit_try_run_case+0x170/0x3f0 [ 49.816986] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 49.817018] kthread+0x328/0x630 [ 49.817048] ret_from_fork+0x10/0x20 [ 49.817086] [ 49.889721] Allocated by task 295: [ 49.893108] kasan_save_stack+0x3c/0x68 [ 49.896925] kasan_save_track+0x20/0x40 [ 49.900746] kasan_save_alloc_info+0x40/0x58 [ 49.904999] __kasan_slab_alloc+0xa8/0xb0 [ 49.908991] kmem_cache_alloc_noprof+0x10c/0x398 [ 49.913591] kmem_cache_invalid_free+0x12c/0x3c8 [ 49.918193] kunit_try_run_case+0x170/0x3f0 [ 49.922358] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 49.927827] kthread+0x328/0x630 [ 49.931038] ret_from_fork+0x10/0x20 [ 49.934598] [ 49.936076] The buggy address belongs to the object at ffff000801b6c000 [ 49.936076] which belongs to the cache test_cache of size 200 [ 49.948489] The buggy address is located 1 bytes inside of [ 49.948489] 200-byte region [ffff000801b6c000, ffff000801b6c0c8) [ 49.960031] [ 49.961511] The buggy address belongs to the physical page: [ 49.967068] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881b6c [ 49.975051] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 49.982690] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 49.989633] page_type: f5(slab) [ 49.992770] raw: 0bfffe0000000040 ffff000801b48500 dead000000000122 0000000000000000 [ 50.000489] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 50.008217] head: 0bfffe0000000040 ffff000801b48500 dead000000000122 0000000000000000 [ 50.016027] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 50.023840] head: 0bfffe0000000001 fffffdffe006db01 00000000ffffffff 00000000ffffffff [ 50.031651] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 50.039460] page dumped because: kasan: bad access detected [ 50.045013] [ 50.046489] Memory state around the buggy address: [ 50.051268] ffff000801b6bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 50.058471] ffff000801b6bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 50.065676] >ffff000801b6c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.072877] ^ [ 50.076092] ffff000801b6c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 50.083297] ffff000801b6c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.090501] ==================================================================
[ 30.296035] ================================================================== [ 30.296939] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 30.297189] Free of addr fff00000c9b86001 by task kunit_try_catch/242 [ 30.297280] [ 30.297324] CPU: 0 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 30.297411] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.297437] Hardware name: linux,dummy-virt (DT) [ 30.297470] Call trace: [ 30.297494] show_stack+0x20/0x38 (C) [ 30.297572] dump_stack_lvl+0x8c/0xd0 [ 30.297630] print_report+0x118/0x5d0 [ 30.297674] kasan_report_invalid_free+0xc0/0xe8 [ 30.297721] check_slab_allocation+0xfc/0x108 [ 30.297771] __kasan_slab_pre_free+0x2c/0x48 [ 30.297819] kmem_cache_free+0xf0/0x468 [ 30.297881] kmem_cache_invalid_free+0x184/0x3c8 [ 30.298055] kunit_try_run_case+0x170/0x3f0 [ 30.298142] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.298191] kthread+0x328/0x630 [ 30.298235] ret_from_fork+0x10/0x20 [ 30.298282] [ 30.298302] Allocated by task 242: [ 30.298332] kasan_save_stack+0x3c/0x68 [ 30.298383] kasan_save_track+0x20/0x40 [ 30.298422] kasan_save_alloc_info+0x40/0x58 [ 30.298459] __kasan_slab_alloc+0xa8/0xb0 [ 30.298496] kmem_cache_alloc_noprof+0x10c/0x398 [ 30.298537] kmem_cache_invalid_free+0x12c/0x3c8 [ 30.298574] kunit_try_run_case+0x170/0x3f0 [ 30.298613] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.298653] kthread+0x328/0x630 [ 30.298709] ret_from_fork+0x10/0x20 [ 30.298745] [ 30.298763] The buggy address belongs to the object at fff00000c9b86000 [ 30.298763] which belongs to the cache test_cache of size 200 [ 30.298826] The buggy address is located 1 bytes inside of [ 30.298826] 200-byte region [fff00000c9b86000, fff00000c9b860c8) [ 30.298945] [ 30.299086] The buggy address belongs to the physical page: [ 30.299175] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b86 [ 30.299255] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.299308] page_type: f5(slab) [ 30.299350] raw: 0bfffe0000000000 fff00000c5687640 dead000000000122 0000000000000000 [ 30.299413] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 30.299457] page dumped because: kasan: bad access detected [ 30.299489] [ 30.299506] Memory state around the buggy address: [ 30.299539] fff00000c9b85f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.299582] fff00000c9b85f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.299624] >fff00000c9b86000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.299661] ^ [ 30.299700] fff00000c9b86080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 30.299848] fff00000c9b86100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.299896] ==================================================================
[ 25.029829] ================================================================== [ 25.030292] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 25.030538] Free of addr ffff888103eae001 by task kunit_try_catch/260 [ 25.031474] [ 25.031929] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) [ 25.031991] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 25.032005] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.032030] Call Trace: [ 25.032042] <TASK> [ 25.032063] dump_stack_lvl+0x73/0xb0 [ 25.032133] print_report+0xd1/0x610 [ 25.032157] ? __virt_addr_valid+0x1db/0x2d0 [ 25.032183] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.032209] ? kmem_cache_invalid_free+0x1d8/0x460 [ 25.032233] kasan_report_invalid_free+0x10a/0x130 [ 25.032256] ? kmem_cache_invalid_free+0x1d8/0x460 [ 25.032281] ? kmem_cache_invalid_free+0x1d8/0x460 [ 25.032305] check_slab_allocation+0x11f/0x130 [ 25.032325] __kasan_slab_pre_free+0x28/0x40 [ 25.032345] kmem_cache_free+0xed/0x420 [ 25.032366] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 25.032390] ? kmem_cache_invalid_free+0x1d8/0x460 [ 25.032416] kmem_cache_invalid_free+0x1d8/0x460 [ 25.032440] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 25.032462] ? finish_task_switch.isra.0+0x153/0x700 [ 25.032485] ? __switch_to+0x47/0xf80 [ 25.033338] ? __pfx_read_tsc+0x10/0x10 [ 25.033366] ? ktime_get_ts64+0x86/0x230 [ 25.033395] kunit_try_run_case+0x1a5/0x480 [ 25.033421] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.033442] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.033467] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.033490] ? __kthread_parkme+0x82/0x180 [ 25.033511] ? preempt_count_sub+0x50/0x80 [ 25.033534] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.033555] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.033580] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.033605] kthread+0x337/0x6f0 [ 25.033624] ? trace_preempt_on+0x20/0xc0 [ 25.033650] ? __pfx_kthread+0x10/0x10 [ 25.033685] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.033707] ? calculate_sigpending+0x7b/0xa0 [ 25.033731] ? __pfx_kthread+0x10/0x10 [ 25.033763] ret_from_fork+0x116/0x1d0 [ 25.033782] ? __pfx_kthread+0x10/0x10 [ 25.033802] ret_from_fork_asm+0x1a/0x30 [ 25.033833] </TASK> [ 25.033845] [ 25.047736] Allocated by task 260: [ 25.048034] kasan_save_stack+0x45/0x70 [ 25.048207] kasan_save_track+0x18/0x40 [ 25.048398] kasan_save_alloc_info+0x3b/0x50 [ 25.048598] __kasan_slab_alloc+0x91/0xa0 [ 25.048819] kmem_cache_alloc_noprof+0x123/0x3f0 [ 25.048986] kmem_cache_invalid_free+0x157/0x460 [ 25.049135] kunit_try_run_case+0x1a5/0x480 [ 25.049308] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.049554] kthread+0x337/0x6f0 [ 25.049727] ret_from_fork+0x116/0x1d0 [ 25.050036] ret_from_fork_asm+0x1a/0x30 [ 25.050184] [ 25.050250] The buggy address belongs to the object at ffff888103eae000 [ 25.050250] which belongs to the cache test_cache of size 200 [ 25.050709] The buggy address is located 1 bytes inside of [ 25.050709] 200-byte region [ffff888103eae000, ffff888103eae0c8) [ 25.051475] [ 25.051576] The buggy address belongs to the physical page: [ 25.051866] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103eae [ 25.052106] flags: 0x200000000000000(node=0|zone=2) [ 25.052289] page_type: f5(slab) [ 25.052455] raw: 0200000000000000 ffff888153e88000 dead000000000122 0000000000000000 [ 25.052775] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.052995] page dumped because: kasan: bad access detected [ 25.053159] [ 25.053231] Memory state around the buggy address: [ 25.053524] ffff888103eadf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.053859] ffff888103eadf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.054618] >ffff888103eae000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.055096] ^ [ 25.055224] ffff888103eae080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.055437] ffff888103eae100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.055761] ==================================================================