Hay
Date
March 19, 2025, 10:35 a.m.

Environment
qemu-arm64

[   39.498451] ==================================================================
[   39.498714] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   39.499458] Read of size 1 at addr ffff80008010b7f8 by task kunit_try_catch/271
[   39.500353] 
[   39.500656] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT 
[   39.500960] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.501208] Hardware name: linux,dummy-virt (DT)
[   39.501451] Call trace:
[   39.501567]  show_stack+0x20/0x38 (C)
[   39.501720]  dump_stack_lvl+0x8c/0xd0
[   39.501874]  print_report+0x2fc/0x5f0
[   39.502023]  kasan_report+0xc8/0x118
[   39.502905]  __asan_report_load1_noabort+0x20/0x30
[   39.503142]  vmalloc_oob+0x51c/0x5d0
[   39.503765]  kunit_try_run_case+0x14c/0x3d0
[   39.504632]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.505182]  kthread+0x318/0x618
[   39.505694]  ret_from_fork+0x10/0x20
[   39.506032] 
[   39.506146] The buggy address belongs to the virtual mapping at
[   39.506146]  [ffff80008010b000, ffff80008010d000) created by:
[   39.506146]  vmalloc_oob+0x98/0x5d0
[   39.506407] 
[   39.506475] The buggy address belongs to the physical page:
[   39.506580] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105db7
[   39.507120] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   39.507691] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   39.508726] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   39.508967] page dumped because: kasan: bad access detected
[   39.509110] 
[   39.509973] Memory state around the buggy address:
[   39.510272]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   39.510732]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   39.511259] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   39.511974]                                                                 ^
[   39.512167]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   39.512853]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   39.513044] ==================================================================
[   39.482580] ==================================================================
[   39.482777] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   39.482957] Read of size 1 at addr ffff80008010b7f3 by task kunit_try_catch/271
[   39.483142] 
[   39.484591] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT 
[   39.485245] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.485476] Hardware name: linux,dummy-virt (DT)
[   39.485868] Call trace:
[   39.486084]  show_stack+0x20/0x38 (C)
[   39.486397]  dump_stack_lvl+0x8c/0xd0
[   39.486576]  print_report+0x2fc/0x5f0
[   39.487266]  kasan_report+0xc8/0x118
[   39.487433]  __asan_report_load1_noabort+0x20/0x30
[   39.488553]  vmalloc_oob+0x578/0x5d0
[   39.488750]  kunit_try_run_case+0x14c/0x3d0
[   39.488906]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.489109]  kthread+0x318/0x618
[   39.490152]  ret_from_fork+0x10/0x20
[   39.490880] 
[   39.491010] The buggy address belongs to the virtual mapping at
[   39.491010]  [ffff80008010b000, ffff80008010d000) created by:
[   39.491010]  vmalloc_oob+0x98/0x5d0
[   39.491306] 
[   39.491505] The buggy address belongs to the physical page:
[   39.491951] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105db7
[   39.492622] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   39.493197] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   39.493774] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   39.494046] page dumped because: kasan: bad access detected
[   39.494204] 
[   39.494272] Memory state around the buggy address:
[   39.494385]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   39.494535]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   39.494681] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   39.494818]                                                              ^
[   39.494968]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   39.495138]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   39.495274] ==================================================================