Hay
Date
May 30, 2025, 4:14 a.m.

Environment
x15

[   48.117706] ==================================================================
[   48.128723] BUG: KASAN: invalid-free in kmalloc_large_invalid_free+0x14c/0x2dc
[   48.135986] Free of addr cc74c001 by task kunit_try_catch/202
[   48.141784] 
[   48.143280] CPU: 0 UID: 0 PID: 202 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-next-20250530 #1 NONE 
[   48.143310] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   48.143341] Hardware name: Generic DRA74X (Flattened Device Tree)
[   48.143341] Call trace: 
[   48.143341]  unwind_backtrace from show_stack+0x18/0x1c
[   48.143371]  show_stack from dump_stack_lvl+0x70/0x90
[   48.143402]  dump_stack_lvl from print_report+0x158/0x528
[   48.143432]  print_report from kasan_report_invalid_free+0xc0/0xf4
[   48.143432]  kasan_report_invalid_free from free_large_kmalloc+0x54/0x194
[   48.143463]  free_large_kmalloc from kmalloc_large_invalid_free+0x14c/0x2dc
[   48.143493]  kmalloc_large_invalid_free from kunit_try_run_case+0x22c/0x5a8
[   48.143524]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   48.143554]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   48.143585]  kthread from ret_from_fork+0x14/0x20
[   48.143585] Exception stack(0xf21f3fb0 to 0xf21f3ff8)
[   48.143615] 3fa0:                                     00000000 00000000 00000000 00000000
[   48.143615] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   48.143646] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   48.143646] 
[   48.259338] The buggy address belongs to the physical page:
[   48.264953] page: refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c74c
[   48.272216] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   48.279937] flags: 0x40(head|zone=0)
[   48.283538] page_type: f8(unknown)
[   48.286956] raw: 00000040 00000000 00000122 00000000 00000000 00000000 f8000000 00000001
[   48.295104] raw: 00000000
[   48.297760] head: 00000040 00000000 00000122 00000000 00000000 00000000 f8000000 00000001
[   48.305999] head: 00000000 00000002 eebbf6b1 ffffffff 00000000 ffffffff 00000000 ffffffff
[   48.314208] head: 00000000 00000004
[   48.317718] page dumped because: kasan: bad access detected
[   48.323333] 
[   48.324829] Memory state around the buggy address:
[   48.329650]  cc74bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.336242]  cc74bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.342803] >cc74c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.349365]            ^
[   48.351928]  cc74c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.358489]  cc74c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   48.365051] ==================================================================