Hay
Date
June 8, 2025, 11:09 p.m.

Environment
e850-96
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   21.574028] ==================================================================
[   21.583291] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   21.588669] Free of addr ffff0008032a4001 by task kunit_try_catch/197
[   21.595091] 
[   21.596578] CPU: 5 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc1 #1 PREEMPT 
[   21.596638] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.596656] Hardware name: WinLink E850-96 board (DT)
[   21.596675] Call trace:
[   21.596688]  show_stack+0x20/0x38 (C)
[   21.596724]  dump_stack_lvl+0x8c/0xd0
[   21.596760]  print_report+0x118/0x608
[   21.596795]  kasan_report_invalid_free+0xc0/0xe8
[   21.596831]  __kasan_kfree_large+0x5c/0xa8
[   21.596866]  free_large_kmalloc+0x64/0x190
[   21.596899]  kfree+0x270/0x3c8
[   21.596927]  kmalloc_large_invalid_free+0x108/0x270
[   21.596959]  kunit_try_run_case+0x170/0x3f0
[   21.596995]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.597033]  kthread+0x328/0x630
[   21.597062]  ret_from_fork+0x10/0x20
[   21.597095] 
[   21.667575] The buggy address belongs to the physical page:
[   21.673132] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8832a4
[   21.681116] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.688755] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   21.695696] page_type: f8(unknown)
[   21.699097] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.706814] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.714543] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.722352] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.730165] head: 0bfffe0000000002 fffffdffe00ca901 00000000ffffffff 00000000ffffffff
[   21.737977] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   21.745783] page dumped because: kasan: bad access detected
[   21.751338] 
[   21.752813] Memory state around the buggy address:
[   21.757597]  ffff0008032a3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.764797]  ffff0008032a3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.772003] >ffff0008032a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.779202]                    ^
[   21.782418]  ffff0008032a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.789623]  ffff0008032a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.796825] ==================================================================

[   24.810487] ==================================================================
[   24.810700] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   24.810959] Free of addr fff00000c64b8001 by task kunit_try_catch/150
[   24.811091] 
[   24.811194] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc1 #1 PREEMPT 
[   24.811453] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.811531] Hardware name: linux,dummy-virt (DT)
[   24.811608] Call trace:
[   24.811730]  show_stack+0x20/0x38 (C)
[   24.811865]  dump_stack_lvl+0x8c/0xd0
[   24.812006]  print_report+0x118/0x608
[   24.812125]  kasan_report_invalid_free+0xc0/0xe8
[   24.812249]  __kasan_kfree_large+0x5c/0xa8
[   24.812381]  free_large_kmalloc+0x64/0x190
[   24.812526]  kfree+0x270/0x3c8
[   24.812657]  kmalloc_large_invalid_free+0x108/0x270
[   24.812846]  kunit_try_run_case+0x170/0x3f0
[   24.813086]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.813346]  kthread+0x328/0x630
[   24.813562]  ret_from_fork+0x10/0x20
[   24.813803] 
[   24.813857] The buggy address belongs to the physical page:
[   24.813949] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064b8
[   24.814092] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.814264] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   24.814401] page_type: f8(unknown)
[   24.814496] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.814657] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.814916] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.815102] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.815238] head: 0bfffe0000000002 ffffc1ffc3192e01 00000000ffffffff 00000000ffffffff
[   24.815394] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   24.815527] page dumped because: kasan: bad access detected
[   24.815607] 
[   24.815720] Memory state around the buggy address:
[   24.815964]  fff00000c64b7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.816132]  fff00000c64b7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.816239] >fff00000c64b8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.816334]                    ^
[   24.816400]  fff00000c64b8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.816500]  fff00000c64b8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.816608] ==================================================================

[   24.975222] ==================================================================
[   24.975676] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   24.976056] Free of addr fff00000c64fc001 by task kunit_try_catch/150
[   24.976255] 
[   24.976380] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc1 #1 PREEMPT 
[   24.976605] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.976667] Hardware name: linux,dummy-virt (DT)
[   24.976735] Call trace:
[   24.976785]  show_stack+0x20/0x38 (C)
[   24.977393]  dump_stack_lvl+0x8c/0xd0
[   24.977712]  print_report+0x118/0x608
[   24.977918]  kasan_report_invalid_free+0xc0/0xe8
[   24.978049]  __kasan_kfree_large+0x5c/0xa8
[   24.978236]  free_large_kmalloc+0x64/0x190
[   24.978374]  kfree+0x270/0x3c8
[   24.978576]  kmalloc_large_invalid_free+0x108/0x270
[   24.978888]  kunit_try_run_case+0x170/0x3f0
[   24.979106]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.979289]  kthread+0x328/0x630
[   24.979399]  ret_from_fork+0x10/0x20
[   24.979538] 
[   24.979594] The buggy address belongs to the physical page:
[   24.979672] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064fc
[   24.980346] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.980515] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   24.980826] page_type: f8(unknown)
[   24.980961] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.981103] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.981591] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.981799] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.982006] head: 0bfffe0000000002 ffffc1ffc3193f01 00000000ffffffff 00000000ffffffff
[   24.982127] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   24.982235] page dumped because: kasan: bad access detected
[   24.982411] 
[   24.982623] Memory state around the buggy address:
[   24.982737]  fff00000c64fbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.983135]  fff00000c64fbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.983240] >fff00000c64fc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.983328]                    ^
[   24.983392]  fff00000c64fc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.984107]  fff00000c64fc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.984927] ==================================================================

[   17.721014] ==================================================================
[   17.721874] BUG: KASAN: invalid-free in kfree+0x274/0x3f0
[   17.723599] Free of addr ffff888102a08001 by task kunit_try_catch/168
[   17.724483] 
[   17.724953] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc1 #1 PREEMPT(voluntary) 
[   17.725080] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.725119] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.725182] Call Trace:
[   17.725272]  <TASK>
[   17.725333]  dump_stack_lvl+0x73/0xb0
[   17.725441]  print_report+0xd1/0x650
[   17.725549]  ? __virt_addr_valid+0x1db/0x2d0
[   17.725692]  ? kasan_addr_to_slab+0x11/0xa0
[   17.725755]  ? kfree+0x274/0x3f0
[   17.725795]  kasan_report_invalid_free+0x10a/0x130
[   17.725833]  ? kfree+0x274/0x3f0
[   17.725872]  ? kfree+0x274/0x3f0
[   17.725907]  __kasan_kfree_large+0x86/0xd0
[   17.725937]  free_large_kmalloc+0x4b/0x110
[   17.725975]  kfree+0x274/0x3f0
[   17.726015]  kmalloc_large_invalid_free+0x120/0x2b0
[   17.726048]  ? __pfx_kmalloc_large_invalid_free+0x10/0x10
[   17.726085]  ? __pfx_kmalloc_large_invalid_free+0x10/0x10
[   17.726121]  kunit_try_run_case+0x1a5/0x480
[   17.726162]  ? __pfx_kunit_try_run_case+0x10/0x10
[   17.726196]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   17.726240]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   17.726305]  ? __kthread_parkme+0x82/0x180
[   17.726335]  ? preempt_count_sub+0x50/0x80
[   17.726366]  ? __pfx_kunit_try_run_case+0x10/0x10
[   17.726402]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.726436]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   17.726469]  kthread+0x337/0x6f0
[   17.726495]  ? trace_preempt_on+0x20/0xc0
[   17.726617]  ? __pfx_kthread+0x10/0x10
[   17.726681]  ? _raw_spin_unlock_irq+0x47/0x80
[   17.726743]  ? calculate_sigpending+0x7b/0xa0
[   17.726801]  ? __pfx_kthread+0x10/0x10
[   17.726852]  ret_from_fork+0x116/0x1d0
[   17.726902]  ? __pfx_kthread+0x10/0x10
[   17.726954]  ret_from_fork_asm+0x1a/0x30
[   17.727026]  </TASK>
[   17.727056] 
[   17.748888] The buggy address belongs to the physical page:
[   17.749431] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a08
[   17.750314] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.751152] flags: 0x200000000000040(head|node=0|zone=2)
[   17.752221] page_type: f8(unknown)
[   17.752914] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   17.753738] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.754470] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   17.755214] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.756000] head: 0200000000000002 ffffea00040a8201 00000000ffffffff 00000000ffffffff
[   17.756867] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.758255] page dumped because: kasan: bad access detected
[   17.759165] 
[   17.759678] Memory state around the buggy address:
[   17.760642]  ffff888102a07f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.761133]  ffff888102a07f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.762021] >ffff888102a08000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.763419]                    ^
[   17.763919]  ffff888102a08080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.764985]  ffff888102a08100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.766141] ==================================================================

[   16.896014] ==================================================================
[   16.897944] BUG: KASAN: invalid-free in kfree+0x274/0x3f0
[   16.898608] Free of addr ffff888102a2c001 by task kunit_try_catch/168
[   16.899284] 
[   16.899600] CPU: 1 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc1 #1 PREEMPT(voluntary) 
[   16.899715] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.899977] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.900065] Call Trace:
[   16.900102]  <TASK>
[   16.900161]  dump_stack_lvl+0x73/0xb0
[   16.900249]  print_report+0xd1/0x650
[   16.900474]  ? __virt_addr_valid+0x1db/0x2d0
[   16.900629]  ? kasan_addr_to_slab+0x11/0xa0
[   16.900668]  ? kfree+0x274/0x3f0
[   16.900701]  kasan_report_invalid_free+0x10a/0x130
[   16.900737]  ? kfree+0x274/0x3f0
[   16.900769]  ? kfree+0x274/0x3f0
[   16.900798]  __kasan_kfree_large+0x86/0xd0
[   16.900829]  free_large_kmalloc+0x4b/0x110
[   16.900862]  kfree+0x274/0x3f0
[   16.900952]  kmalloc_large_invalid_free+0x120/0x2b0
[   16.901001]  ? __pfx_kmalloc_large_invalid_free+0x10/0x10
[   16.901036]  ? __schedule+0x10cc/0x2b60
[   16.901069]  ? __pfx_read_tsc+0x10/0x10
[   16.901097]  ? ktime_get_ts64+0x86/0x230
[   16.901157]  kunit_try_run_case+0x1a5/0x480
[   16.901195]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.901230]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.901263]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.901295]  ? __kthread_parkme+0x82/0x180
[   16.901322]  ? preempt_count_sub+0x50/0x80
[   16.901353]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.901387]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.901419]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.901452]  kthread+0x337/0x6f0
[   16.901478]  ? trace_preempt_on+0x20/0xc0
[   16.901516]  ? __pfx_kthread+0x10/0x10
[   16.901603]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.901663]  ? calculate_sigpending+0x7b/0xa0
[   16.901701]  ? __pfx_kthread+0x10/0x10
[   16.901731]  ret_from_fork+0x116/0x1d0
[   16.901756]  ? __pfx_kthread+0x10/0x10
[   16.901784]  ret_from_fork_asm+0x1a/0x30
[   16.901825]  </TASK>
[   16.901841] 
[   16.925249] The buggy address belongs to the physical page:
[   16.925803] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a2c
[   16.926676] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.927362] flags: 0x200000000000040(head|node=0|zone=2)
[   16.928171] page_type: f8(unknown)
[   16.928987] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   16.929923] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.930831] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   16.931714] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.932674] head: 0200000000000002 ffffea00040a8b01 00000000ffffffff 00000000ffffffff
[   16.933558] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.934439] page dumped because: kasan: bad access detected
[   16.935130] 
[   16.935495] Memory state around the buggy address:
[   16.936513]  ffff888102a2bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.937486]  ffff888102a2bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.938277] >ffff888102a2c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.939336]                    ^
[   16.939916]  ffff888102a2c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.940984]  ffff888102a2c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.941746] ==================================================================

[   19.954003] ==================================================================
[   19.955054] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   19.955582] Free of addr ffff00000dbd4001 by task kunit_try_catch/203
[   19.956177] 
[   19.956341] CPU: 2 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc1 #1 PREEMPT 
[   19.956390] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.956405] Hardware name: Radxa ROCK Pi 4B (DT)
[   19.956422] Call trace:
[   19.956433]  show_stack+0x20/0x38 (C)
[   19.956466]  dump_stack_lvl+0x8c/0xd0
[   19.956502]  print_report+0x118/0x608
[   19.956537]  kasan_report_invalid_free+0xc0/0xe8
[   19.956572]  __kasan_kfree_large+0x5c/0xa8
[   19.956604]  free_large_kmalloc+0x64/0x190
[   19.956633]  kfree+0x270/0x3c8
[   19.956659]  kmalloc_large_invalid_free+0x108/0x270
[   19.956691]  kunit_try_run_case+0x170/0x3f0
[   19.956725]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.956763]  kthread+0x328/0x630
[   19.956790]  ret_from_fork+0x10/0x20
[   19.956822] 
[   19.963137] The buggy address belongs to the physical page:
[   19.963653] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xdbd4
[   19.964377] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.965082] flags: 0x3fffe0000000040(head|node=0|zone=0|lastcpupid=0x1ffff)
[   19.965734] page_type: f8(unknown)
[   19.966070] raw: 03fffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.966784] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.967498] head: 03fffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.968219] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.968941] head: 03fffe0000000002 fffffdffc036f501 00000000ffffffff 00000000ffffffff
[   19.969663] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   19.970376] page dumped because: kasan: bad access detected
[   19.970888] 
[   19.971041] Memory state around the buggy address:
[   19.971490]  ffff00000dbd3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.972154]  ffff00000dbd3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.972818] >ffff00000dbd4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.973479]                    ^
[   19.973789]  ffff00000dbd4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.974453]  ffff00000dbd4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.975113] ==================================================================