Hay
Date
April 20, 2025, 11:09 p.m.

Environment
x15

[   48.403320] ==================================================================
[   48.414367] BUG: KASAN: invalid-free in kmalloc_large_invalid_free+0x14c/0x2dc
[   48.421630] Free of addr ccb38001 by task kunit_try_catch/206
[   48.427429] 
[   48.428924] CPU: 1 UID: 0 PID: 206 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-rc3 #1 NONE 
[   48.428955] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   48.428985] Hardware name: Generic DRA74X (Flattened Device Tree)
[   48.428985] Call trace: 
[   48.428985]  unwind_backtrace from show_stack+0x18/0x1c
[   48.429016]  show_stack from dump_stack_lvl+0x70/0x90
[   48.429046]  dump_stack_lvl from print_report+0x158/0x528
[   48.429077]  print_report from kasan_report_invalid_free+0xc0/0xf4
[   48.429077]  kasan_report_invalid_free from free_large_kmalloc+0x54/0x194
[   48.429107]  free_large_kmalloc from kmalloc_large_invalid_free+0x14c/0x2dc
[   48.429138]  kmalloc_large_invalid_free from kunit_try_run_case+0x22c/0x5a8
[   48.429168]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   48.429199]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   48.429199]  kthread from ret_from_fork+0x14/0x20
[   48.429229] Exception stack(0xf239bfb0 to 0xf239bff8)
[   48.429260] bfa0:                                     00000000 00000000 00000000 00000000
[   48.429260] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   48.429290] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   48.429290] 
[   48.544128] The buggy address belongs to the physical page:
[   48.549743] page: refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0x8cb38
[   48.557006] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   48.564697] flags: 0x40(head|zone=0)
[   48.568328] page_type: f8(unknown)
[   48.571746] raw: 00000040 00000000 00000122 00000000 00000000 00000000 f8000000 00000001
[   48.579895] raw: 00000000
[   48.582519] head: 00000040 00000000 00000122 00000000 00000000 00000000 f8000000 00000001
[   48.590759] head: 00000000 00000002 eebc83e1 ffffffff 00000000 ffffffff 00000000 ffffffff
[   48.598999] head: 00000000 00000004
[   48.602508] page dumped because: kasan: bad access detected
[   48.608123] 
[   48.609619] Memory state around the buggy address:
[   48.614440]  ccb37f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.621002]  ccb37f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.627593] >ccb38000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.634155]            ^
[   48.636718]  ccb38080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.643280]  ccb38100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.649841] ==================================================================