Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64

[   30.345099] ==================================================================
[   30.345384] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   30.345597] Read of size 1 at addr ffff8000800fe7f8 by task kunit_try_catch/269
[   30.345723] 
[   30.345793] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   30.345995] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.346068] Hardware name: linux,dummy-virt (DT)
[   30.346625] Call trace:
[   30.346709]  show_stack+0x20/0x38 (C)
[   30.346855]  dump_stack_lvl+0x8c/0xd0
[   30.346991]  print_report+0x310/0x608
[   30.347114]  kasan_report+0xdc/0x128
[   30.347229]  __asan_report_load1_noabort+0x20/0x30
[   30.347385]  vmalloc_oob+0x51c/0x5d0
[   30.347777]  kunit_try_run_case+0x170/0x3f0
[   30.348183]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.348350]  kthread+0x328/0x630
[   30.348506]  ret_from_fork+0x10/0x20
[   30.348701] 
[   30.348814] The buggy address belongs to the virtual mapping at
[   30.348814]  [ffff8000800fe000, ffff800080100000) created by:
[   30.348814]  vmalloc_oob+0x98/0x5d0
[   30.349113] 
[   30.349270] The buggy address belongs to the physical page:
[   30.349480] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107723
[   30.349617] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.350015] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   30.350172] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   30.350381] page dumped because: kasan: bad access detected
[   30.350552] 
[   30.350675] Memory state around the buggy address:
[   30.350778]  ffff8000800fe680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.350902]  ffff8000800fe700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.351031] >ffff8000800fe780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   30.351316]                                                                 ^
[   30.351459]  ffff8000800fe800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   30.351666]  ffff8000800fe880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   30.351778] ==================================================================
[   30.331253] ==================================================================
[   30.331459] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   30.331600] Read of size 1 at addr ffff8000800fe7f3 by task kunit_try_catch/269
[   30.331742] 
[   30.331850] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   30.332166] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.332286] Hardware name: linux,dummy-virt (DT)
[   30.332449] Call trace:
[   30.332547]  show_stack+0x20/0x38 (C)
[   30.332698]  dump_stack_lvl+0x8c/0xd0
[   30.332836]  print_report+0x310/0x608
[   30.333077]  kasan_report+0xdc/0x128
[   30.333211]  __asan_report_load1_noabort+0x20/0x30
[   30.333410]  vmalloc_oob+0x578/0x5d0
[   30.333602]  kunit_try_run_case+0x170/0x3f0
[   30.333783]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.334017]  kthread+0x328/0x630
[   30.334386]  ret_from_fork+0x10/0x20
[   30.335045] 
[   30.335339] The buggy address belongs to the virtual mapping at
[   30.335339]  [ffff8000800fe000, ffff800080100000) created by:
[   30.335339]  vmalloc_oob+0x98/0x5d0
[   30.335530] 
[   30.335588] The buggy address belongs to the physical page:
[   30.336519] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107723
[   30.337142] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.337720] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   30.337906] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   30.338177] page dumped because: kasan: bad access detected
[   30.338454] 
[   30.339025] Memory state around the buggy address:
[   30.339115]  ffff8000800fe680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.339234]  ffff8000800fe700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.340292] >ffff8000800fe780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   30.340430]                                                              ^
[   30.341224]  ffff8000800fe800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   30.341718]  ffff8000800fe880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   30.341826] ==================================================================