Hay
Date
Nov. 22, 2024, 6:35 a.m.

Environment
qemu-arm64

[   38.658048] ==================================================================
[   38.659965] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   38.661832] Read of size 1 at addr ffff80008010b7f3 by task kunit_try_catch/258
[   38.663371] 
[   38.664340] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   38.665911] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.666222] Hardware name: linux,dummy-virt (DT)
[   38.666616] Call trace:
[   38.667124]  show_stack+0x20/0x38 (C)
[   38.667992]  dump_stack_lvl+0x8c/0xd0
[   38.668886]  print_report+0x2fc/0x5e0
[   38.670090]  kasan_report+0xc8/0x118
[   38.670783]  __asan_report_load1_noabort+0x20/0x30
[   38.671573]  vmalloc_oob+0x578/0x5d0
[   38.672236]  kunit_try_run_case+0x14c/0x3d0
[   38.673467]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.674424]  kthread+0x24c/0x2d0
[   38.675161]  ret_from_fork+0x10/0x20
[   38.676000] 
[   38.676366] The buggy address belongs to the virtual mapping at
[   38.676366]  [ffff80008010b000, ffff80008010d000) created by:
[   38.676366]  vmalloc_oob+0x98/0x5d0
[   38.678979] 
[   38.679428] The buggy address belongs to the physical page:
[   38.680400] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063a2
[   38.682090] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   38.682922] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   38.684089] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   38.685674] page dumped because: kasan: bad access detected
[   38.686550] 
[   38.686760] Memory state around the buggy address:
[   38.687083]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   38.687613]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   38.689141] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   38.690223]                                                              ^
[   38.691309]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   38.692311]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   38.693507] ==================================================================
[   38.697815] ==================================================================
[   38.698610] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   38.699022] Read of size 1 at addr ffff80008010b7f8 by task kunit_try_catch/258
[   38.699456] 
[   38.699728] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241122 #1
[   38.701159] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.702995] Hardware name: linux,dummy-virt (DT)
[   38.703907] Call trace:
[   38.705723]  show_stack+0x20/0x38 (C)
[   38.706977]  dump_stack_lvl+0x8c/0xd0
[   38.707669]  print_report+0x2fc/0x5e0
[   38.708400]  kasan_report+0xc8/0x118
[   38.709334]  __asan_report_load1_noabort+0x20/0x30
[   38.710665]  vmalloc_oob+0x51c/0x5d0
[   38.711792]  kunit_try_run_case+0x14c/0x3d0
[   38.713646]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.714381]  kthread+0x24c/0x2d0
[   38.715069]  ret_from_fork+0x10/0x20
[   38.716376] 
[   38.716894] The buggy address belongs to the virtual mapping at
[   38.716894]  [ffff80008010b000, ffff80008010d000) created by:
[   38.716894]  vmalloc_oob+0x98/0x5d0
[   38.718294] 
[   38.721722] The buggy address belongs to the physical page:
[   38.722586] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063a2
[   38.723628] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   38.724354] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   38.725788] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   38.727174] page dumped because: kasan: bad access detected
[   38.728205] 
[   38.729055] Memory state around the buggy address:
[   38.730032]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   38.731586]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   38.733375] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   38.734474]                                                                 ^
[   38.735615]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   38.736572]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   38.737905] ==================================================================