Hay
Date
Feb. 5, 2025, 2:09 p.m.

Environment
qemu-arm64

[  177.598467] ==================================================================
[  177.600812] BUG: KASAN: invalid-free in kfree+0x12c/0x138
[  177.602089] Free of addr ffff0000c6020001 by task kunit_try_catch/126
[  177.603967] 
[  177.604709] CPU: 0 PID: 126 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  177.607730] Hardware name: linux,dummy-virt (DT)
[  177.609047] Call trace:
[  177.610722]  dump_backtrace+0x9c/0x128
[  177.611726]  show_stack+0x20/0x38
[  177.612661]  dump_stack_lvl+0x60/0xb0
[  177.613932]  print_report+0xf8/0x5d8
[  177.615136]  kasan_report_invalid_free+0xb0/0xd8
[  177.616473]  __kasan_kfree_large+0x54/0xa0
[  177.617756]  free_large_kmalloc+0x5c/0x100
[  177.619212]  kfree+0x12c/0x138
[  177.620101]  kmalloc_pagealloc_invalid_free+0xa8/0x1a8
[  177.622080]  kunit_try_run_case+0xf8/0x260
[  177.623318]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  177.624784]  kthread+0x18c/0x1a8
[  177.625771]  ret_from_fork+0x10/0x20
[  177.627051] 
[  177.627732] The buggy address belongs to the physical page:
[  177.629124] page:00000000dc26f172 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106020
[  177.631164] head:00000000dc26f172 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[  177.633114] flags: 0xbfffc0000000040(head|node=0|zone=2|lastcpupid=0xffff)
[  177.634723] page_type: 0xffffffff()
[  177.635773] raw: 0bfffc0000000040 0000000000000000 dead000000000122 0000000000000000
[  177.637619] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[  177.639866] page dumped because: kasan: bad access detected
[  177.641671] 
[  177.642180] Memory state around the buggy address:
[  177.643306]  ffff0000c601ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[  177.644898]  ffff0000c601ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[  177.646601] >ffff0000c6020000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  177.648339]                    ^
[  177.649412]  ffff0000c6020080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  177.650986]  ffff0000c6020100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  177.652530] ==================================================================