Hay
Date
May 12, 2025, 6:12 p.m.

Environment
qemu-arm64

[   22.416461] ==================================================================
[   22.416950] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   22.417463] Read of size 1 at addr ffff80008010b7f3 by task kunit_try_catch/258
[   22.417967] 
[   22.418129] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   22.418235] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.418271] Hardware name: linux,dummy-virt (DT)
[   22.418311] Call trace:
[   22.418340]  show_stack+0x20/0x38 (C)
[   22.418399]  dump_stack_lvl+0x8c/0xd0
[   22.418457]  print_report+0x310/0x608
[   22.418527]  kasan_report+0xdc/0x128
[   22.418578]  __asan_report_load1_noabort+0x20/0x30
[   22.418633]  vmalloc_oob+0x578/0x5d0
[   22.418683]  kunit_try_run_case+0x170/0x3f0
[   22.418777]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.418844]  kthread+0x318/0x620
[   22.418934]  ret_from_fork+0x10/0x20
[   22.418993] 
[   22.422523] The buggy address belongs to the virtual mapping at
[   22.422523]  [ffff80008010b000, ffff80008010d000) created by:
[   22.422523]  vmalloc_oob+0x98/0x5d0
[   22.423262] 
[   22.423464] The buggy address belongs to the physical page:
[   22.423915] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106717
[   22.424354] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.424725] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.425167] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.425591] page dumped because: kasan: bad access detected
[   22.425881] 
[   22.426094] Memory state around the buggy address:
[   22.426329]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.427417]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.427880] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   22.428261]                                                              ^
[   22.428614]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   22.428979]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   22.429345] ==================================================================
[   22.431095] ==================================================================
[   22.431751] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   22.432194] Read of size 1 at addr ffff80008010b7f8 by task kunit_try_catch/258
[   22.432566] 
[   22.432696] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   22.432809] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.432861] Hardware name: linux,dummy-virt (DT)
[   22.432915] Call trace:
[   22.432951]  show_stack+0x20/0x38 (C)
[   22.433027]  dump_stack_lvl+0x8c/0xd0
[   22.433099]  print_report+0x310/0x608
[   22.433169]  kasan_report+0xdc/0x128
[   22.433239]  __asan_report_load1_noabort+0x20/0x30
[   22.433311]  vmalloc_oob+0x51c/0x5d0
[   22.433363]  kunit_try_run_case+0x170/0x3f0
[   22.433417]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.433477]  kthread+0x318/0x620
[   22.433529]  ret_from_fork+0x10/0x20
[   22.433585] 
[   22.437301] The buggy address belongs to the virtual mapping at
[   22.437301]  [ffff80008010b000, ffff80008010d000) created by:
[   22.437301]  vmalloc_oob+0x98/0x5d0
[   22.437911] 
[   22.438113] The buggy address belongs to the physical page:
[   22.438460] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106717
[   22.438975] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.439606] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.440039] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.440434] page dumped because: kasan: bad access detected
[   22.440774] 
[   22.440959] Memory state around the buggy address:
[   22.441240]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.441677]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.442083] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   22.442332]                                                                 ^
[   22.442889]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   22.443250]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   22.443636] ==================================================================