Hay
Date
June 26, 2025, 11:12 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   34.004079] ==================================================================
[   34.007320] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8
[   34.014263] Free of addr ffff000800dc0001 by task kunit_try_catch/260
[   34.020683] 
[   34.022171] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   34.022229] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.022246] Hardware name: WinLink E850-96 board (DT)
[   34.022270] Call trace:
[   34.022283]  show_stack+0x20/0x38 (C)
[   34.022318]  dump_stack_lvl+0x8c/0xd0
[   34.022355]  print_report+0x118/0x608
[   34.022386]  kasan_report_invalid_free+0xc0/0xe8
[   34.022421]  check_slab_allocation+0xfc/0x108
[   34.022452]  __kasan_slab_pre_free+0x2c/0x48
[   34.022483]  kmem_cache_free+0xf0/0x468
[   34.022515]  kmem_cache_invalid_free+0x184/0x3c8
[   34.022552]  kunit_try_run_case+0x170/0x3f0
[   34.022592]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.022633]  kthread+0x328/0x630
[   34.022670]  ret_from_fork+0x10/0x20
[   34.022707] 
[   34.094122] Allocated by task 260:
[   34.097509]  kasan_save_stack+0x3c/0x68
[   34.101324]  kasan_save_track+0x20/0x40
[   34.105144]  kasan_save_alloc_info+0x40/0x58
[   34.109397]  __kasan_slab_alloc+0xa8/0xb0
[   34.113390]  kmem_cache_alloc_noprof+0x10c/0x398
[   34.117991]  kmem_cache_invalid_free+0x12c/0x3c8
[   34.122591]  kunit_try_run_case+0x170/0x3f0
[   34.126758]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.132228]  kthread+0x328/0x630
[   34.135439]  ret_from_fork+0x10/0x20
[   34.138997] 
[   34.140475] The buggy address belongs to the object at ffff000800dc0000
[   34.140475]  which belongs to the cache test_cache of size 200
[   34.152888] The buggy address is located 1 bytes inside of
[   34.152888]  200-byte region [ffff000800dc0000, ffff000800dc00c8)
[   34.164431] 
[   34.165911] The buggy address belongs to the physical page:
[   34.171467] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880dc0
[   34.179452] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   34.187091] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   34.194033] page_type: f5(slab)
[   34.197172] raw: 0bfffe0000000040 ffff000800dbe000 dead000000000122 0000000000000000
[   34.204888] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000
[   34.212615] head: 0bfffe0000000040 ffff000800dbe000 dead000000000122 0000000000000000
[   34.220427] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000
[   34.228240] head: 0bfffe0000000001 fffffdffe0037001 00000000ffffffff 00000000ffffffff
[   34.236051] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   34.243857] page dumped because: kasan: bad access detected
[   34.249414] 
[   34.250888] Memory state around the buggy address:
[   34.255668]  ffff000800dbff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.262871]  ffff000800dbff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.270077] >ffff000800dc0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.277277]                    ^
[   34.280492]  ffff000800dc0080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   34.287697]  ffff000800dc0100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.294900] ==================================================================

[   18.758845] ==================================================================
[   18.758958] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8
[   18.759018] Free of addr fff00000c7a36001 by task kunit_try_catch/213
[   18.759059] 
[   18.759098] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   18.759353] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.759411] Hardware name: linux,dummy-virt (DT)
[   18.759446] Call trace:
[   18.759497]  show_stack+0x20/0x38 (C)
[   18.759558]  dump_stack_lvl+0x8c/0xd0
[   18.759644]  print_report+0x118/0x608
[   18.759694]  kasan_report_invalid_free+0xc0/0xe8
[   18.759745]  check_slab_allocation+0xfc/0x108
[   18.760047]  __kasan_slab_pre_free+0x2c/0x48
[   18.760216]  kmem_cache_free+0xf0/0x468
[   18.760390]  kmem_cache_invalid_free+0x184/0x3c8
[   18.760460]  kunit_try_run_case+0x170/0x3f0
[   18.760533]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.760591]  kthread+0x328/0x630
[   18.760636]  ret_from_fork+0x10/0x20
[   18.760893] 
[   18.760960] Allocated by task 213:
[   18.761051]  kasan_save_stack+0x3c/0x68
[   18.761128]  kasan_save_track+0x20/0x40
[   18.761223]  kasan_save_alloc_info+0x40/0x58
[   18.761261]  __kasan_slab_alloc+0xa8/0xb0
[   18.761500]  kmem_cache_alloc_noprof+0x10c/0x398
[   18.761681]  kmem_cache_invalid_free+0x12c/0x3c8
[   18.761797]  kunit_try_run_case+0x170/0x3f0
[   18.761867]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.761912]  kthread+0x328/0x630
[   18.762161]  ret_from_fork+0x10/0x20
[   18.762310] 
[   18.762349] The buggy address belongs to the object at fff00000c7a36000
[   18.762349]  which belongs to the cache test_cache of size 200
[   18.762545] The buggy address is located 1 bytes inside of
[   18.762545]  200-byte region [fff00000c7a36000, fff00000c7a360c8)
[   18.762627] 
[   18.762646] The buggy address belongs to the physical page:
[   18.762880] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107a36
[   18.763068] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.763199] page_type: f5(slab)
[   18.763336] raw: 0bfffe0000000000 fff00000c59d6640 dead000000000122 0000000000000000
[   18.763449] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   18.763537] page dumped because: kasan: bad access detected
[   18.763569] 
[   18.763587] Memory state around the buggy address:
[   18.763692]  fff00000c7a35f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.763958]  fff00000c7a35f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.764016] >fff00000c7a36000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.764177]                    ^
[   18.764207]  fff00000c7a36080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   18.764280]  fff00000c7a36100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.764322] ==================================================================

[   11.665368] ==================================================================
[   11.666360] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460
[   11.666904] Free of addr ffff888102a05001 by task kunit_try_catch/230
[   11.667844] 
[   11.668097] CPU: 0 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT(voluntary) 
[   11.668149] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.668161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.668183] Call Trace:
[   11.668198]  <TASK>
[   11.668369]  dump_stack_lvl+0x73/0xb0
[   11.668402]  print_report+0xd1/0x650
[   11.668426]  ? __virt_addr_valid+0x1db/0x2d0
[   11.668449]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.668471]  ? kmem_cache_invalid_free+0x1d8/0x460
[   11.668493]  kasan_report_invalid_free+0x10a/0x130
[   11.668517]  ? kmem_cache_invalid_free+0x1d8/0x460
[   11.668539]  ? kmem_cache_invalid_free+0x1d8/0x460
[   11.668570]  check_slab_allocation+0x11f/0x130
[   11.668592]  __kasan_slab_pre_free+0x28/0x40
[   11.668612]  kmem_cache_free+0xed/0x420
[   11.668633]  ? kmem_cache_alloc_noprof+0x123/0x3f0
[   11.668654]  ? kmem_cache_invalid_free+0x1d8/0x460
[   11.668677]  kmem_cache_invalid_free+0x1d8/0x460
[   11.668697]  ? __pfx_kmem_cache_invalid_free+0x10/0x10
[   11.668717]  ? finish_task_switch.isra.0+0x153/0x700
[   11.668741]  ? __switch_to+0x5d9/0xf60
[   11.668833]  ? dequeue_task_fair+0x166/0x4e0
[   11.668866]  ? __pfx_read_tsc+0x10/0x10
[   11.668886]  ? ktime_get_ts64+0x86/0x230
[   11.668912]  kunit_try_run_case+0x1a5/0x480
[   11.668950]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.668972]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.668996]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.669020]  ? __kthread_parkme+0x82/0x180
[   11.669043]  ? preempt_count_sub+0x50/0x80
[   11.669067]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.669090]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.669113]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.669135]  kthread+0x337/0x6f0
[   11.669151]  ? trace_preempt_on+0x20/0xc0
[   11.669174]  ? __pfx_kthread+0x10/0x10
[   11.669191]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.669213]  ? calculate_sigpending+0x7b/0xa0
[   11.669234]  ? __pfx_kthread+0x10/0x10
[   11.669252]  ret_from_fork+0x41/0x80
[   11.669273]  ? __pfx_kthread+0x10/0x10
[   11.669290]  ret_from_fork_asm+0x1a/0x30
[   11.669320]  </TASK>
[   11.669331] 
[   11.681101] Allocated by task 230:
[   11.681308]  kasan_save_stack+0x45/0x70
[   11.681633]  kasan_save_track+0x18/0x40
[   11.681979]  kasan_save_alloc_info+0x3b/0x50
[   11.682353]  __kasan_slab_alloc+0x91/0xa0
[   11.682551]  kmem_cache_alloc_noprof+0x123/0x3f0
[   11.683092]  kmem_cache_invalid_free+0x157/0x460
[   11.683310]  kunit_try_run_case+0x1a5/0x480
[   11.683484]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.683909]  kthread+0x337/0x6f0
[   11.684099]  ret_from_fork+0x41/0x80
[   11.684271]  ret_from_fork_asm+0x1a/0x30
[   11.684824] 
[   11.685130] The buggy address belongs to the object at ffff888102a05000
[   11.685130]  which belongs to the cache test_cache of size 200
[   11.686202] The buggy address is located 1 bytes inside of
[   11.686202]  200-byte region [ffff888102a05000, ffff888102a050c8)
[   11.687454] 
[   11.687537] The buggy address belongs to the physical page:
[   11.687745] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a05
[   11.688571] flags: 0x200000000000000(node=0|zone=2)
[   11.689029] page_type: f5(slab)
[   11.689632] raw: 0200000000000000 ffff888102109280 dead000000000122 0000000000000000
[   11.689908] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   11.690150] page dumped because: kasan: bad access detected
[   11.690323] 
[   11.690393] Memory state around the buggy address:
[   11.690550]  ffff888102a04f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.690768]  ffff888102a04f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.691726] >ffff888102a05000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.692797]                    ^
[   11.693321]  ffff888102a05080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   11.694329]  ffff888102a05100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.695270] ==================================================================