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

Environment
qemu-armv7

[  144.481795] ==================================================================
[  144.482928] BUG: KASAN: invalid-free in kmalloc_pagealloc_invalid_free+0xb0/0x1b0
[  144.483733] Free of addr c4ffc001 by task kunit_try_catch/121
[  144.484381] 
[  144.484677] CPU: 0 PID: 121 Comm: kunit_try_catch Tainted: G    B            N 6.6.76-rc1 #1
[  144.485470] Hardware name: Generic DT based system
[  144.485994]  unwind_backtrace from show_stack+0x18/0x1c
[  144.487261]  show_stack from dump_stack_lvl+0x58/0x70
[  144.487903]  dump_stack_lvl from print_report+0x164/0x51c
[  144.488659]  print_report from kasan_report_invalid_free+0xb4/0xe8
[  144.489776]  kasan_report_invalid_free from free_large_kmalloc+0x48/0x104
[  144.490789]  free_large_kmalloc from kmalloc_pagealloc_invalid_free+0xb0/0x1b0
[  144.491642]  kmalloc_pagealloc_invalid_free from kunit_try_run_case+0x11c/0x2e4
[  144.492552]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0x2c/0x48
[  144.493545]  kunit_generic_run_threadfn_adapter from kthread+0x184/0x1a8
[  144.494396]  kthread from ret_from_fork+0x14/0x30
[  144.494991] Exception stack(0xf9ed3fb0 to 0xf9ed3ff8)
[  144.495611] 3fa0:                                     00000000 00000000 00000000 00000000
[  144.496674] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  144.497985] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  144.498764] 
[  144.499206] The buggy address belongs to the physical page:
[  144.499827] page:a8595845 refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0x44ffc
[  144.500780] head:a8595845 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[  144.501760] flags: 0x40(head|zone=0)
[  144.502474] page_type: 0xffffffff()
[  144.502922] raw: 00000040 00000000 00000122 00000000 00000000 00000000 ffffffff 00000001
[  144.503862] raw: 00000000
[  144.504270] page dumped because: kasan: bad access detected
[  144.504987] 
[  144.505228] Memory state around the buggy address:
[  144.505956]  c4ffbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  144.506860]  c4ffbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  144.507898] >c4ffc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  144.508602]            ^
[  144.508949]  c4ffc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  144.509776]  c4ffc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[  144.510432] ==================================================================