Hay
Date
Nov. 28, 2024, 2:36 a.m.

Environment
qemu-arm64

[   36.938827] ==================================================================
[   36.940407] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   36.941235] Read of size 1 at addr ffff80008010b7f3 by task kunit_try_catch/257
[   36.942968] 
[   36.943597] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   36.944786] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.946072] Hardware name: linux,dummy-virt (DT)
[   36.946703] Call trace:
[   36.947193]  show_stack+0x20/0x38 (C)
[   36.947778]  dump_stack_lvl+0x8c/0xd0
[   36.948424]  print_report+0x2fc/0x5e0
[   36.949062]  kasan_report+0xc8/0x118
[   36.949651]  __asan_report_load1_noabort+0x20/0x30
[   36.950306]  vmalloc_oob+0x578/0x5d0
[   36.950810]  kunit_try_run_case+0x14c/0x3d0
[   36.951364]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.952001]  kthread+0x24c/0x2d0
[   36.952616]  ret_from_fork+0x10/0x20
[   36.953157] 
[   36.953526] The buggy address belongs to the virtual mapping at
[   36.953526]  [ffff80008010b000, ffff80008010d000) created by:
[   36.953526]  vmalloc_oob+0x98/0x5d0
[   36.955746] 
[   36.956157] The buggy address belongs to the physical page:
[   36.956805] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063de
[   36.958196] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   36.958994] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   36.959914] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   36.960783] page dumped because: kasan: bad access detected
[   36.961954] 
[   36.962256] Memory state around the buggy address:
[   36.962909]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.963973]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.964756] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   36.965961]                                                              ^
[   36.966784]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.967699]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.968539] ==================================================================
[   36.971134] ==================================================================
[   36.971874] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   36.972710] Read of size 1 at addr ffff80008010b7f8 by task kunit_try_catch/257
[   36.973996] 
[   36.974410] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   36.975528] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.976148] Hardware name: linux,dummy-virt (DT)
[   36.976688] Call trace:
[   36.977466]  show_stack+0x20/0x38 (C)
[   36.978021]  dump_stack_lvl+0x8c/0xd0
[   36.978548]  print_report+0x2fc/0x5e0
[   36.978991]  kasan_report+0xc8/0x118
[   36.979383]  __asan_report_load1_noabort+0x20/0x30
[   36.980200]  vmalloc_oob+0x51c/0x5d0
[   36.980913]  kunit_try_run_case+0x14c/0x3d0
[   36.981903]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.982521]  kthread+0x24c/0x2d0
[   36.983182]  ret_from_fork+0x10/0x20
[   36.983868] 
[   36.984395] The buggy address belongs to the virtual mapping at
[   36.984395]  [ffff80008010b000, ffff80008010d000) created by:
[   36.984395]  vmalloc_oob+0x98/0x5d0
[   36.986654] 
[   36.987012] The buggy address belongs to the physical page:
[   36.987686] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063de
[   36.988618] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   36.989388] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   36.990301] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   36.991189] page dumped because: kasan: bad access detected
[   36.991919] 
[   36.992195] Memory state around the buggy address:
[   36.992908]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.994303]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.995269] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   36.995867]                                                                 ^
[   36.996752]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.998027]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.998852] ==================================================================