Hay
Date
Dec. 5, 2024, 2:07 p.m.

Environment
qemu-arm64

[   36.672958] ==================================================================
[   36.673600] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   36.675270] Read of size 1 at addr ffff80008010b7f8 by task kunit_try_catch/258
[   36.676237] 
[   36.676559] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   36.678353] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.678865] Hardware name: linux,dummy-virt (DT)
[   36.680043] Call trace:
[   36.680378]  show_stack+0x20/0x38 (C)
[   36.680841]  dump_stack_lvl+0x8c/0xd0
[   36.681744]  print_report+0x2fc/0x5e0
[   36.682525]  kasan_report+0xc8/0x118
[   36.683142]  __asan_report_load1_noabort+0x20/0x30
[   36.684549]  vmalloc_oob+0x51c/0x5d0
[   36.685112]  kunit_try_run_case+0x14c/0x3d0
[   36.685731]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.686452]  kthread+0x24c/0x2d0
[   36.687121]  ret_from_fork+0x10/0x20
[   36.687686] 
[   36.688049] The buggy address belongs to the virtual mapping at
[   36.688049]  [ffff80008010b000, ffff80008010d000) created by:
[   36.688049]  vmalloc_oob+0x98/0x5d0
[   36.690903] 
[   36.691230] The buggy address belongs to the physical page:
[   36.692293] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106690
[   36.693297] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   36.694314] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   36.695611] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   36.696306] page dumped because: kasan: bad access detected
[   36.696992] 
[   36.697419] Memory state around the buggy address:
[   36.698203]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.699079]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.699847] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   36.700671]                                                                 ^
[   36.701781]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.702817]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.703640] ==================================================================
[   36.640319] ==================================================================
[   36.641742] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   36.642614] Read of size 1 at addr ffff80008010b7f3 by task kunit_try_catch/258
[   36.643946] 
[   36.644597] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   36.645970] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.646736] Hardware name: linux,dummy-virt (DT)
[   36.647454] Call trace:
[   36.647985]  show_stack+0x20/0x38 (C)
[   36.648515]  dump_stack_lvl+0x8c/0xd0
[   36.649102]  print_report+0x2fc/0x5e0
[   36.649745]  kasan_report+0xc8/0x118
[   36.650318]  __asan_report_load1_noabort+0x20/0x30
[   36.651031]  vmalloc_oob+0x578/0x5d0
[   36.651556]  kunit_try_run_case+0x14c/0x3d0
[   36.652688]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.653431]  kthread+0x24c/0x2d0
[   36.653947]  ret_from_fork+0x10/0x20
[   36.654662] 
[   36.655008] The buggy address belongs to the virtual mapping at
[   36.655008]  [ffff80008010b000, ffff80008010d000) created by:
[   36.655008]  vmalloc_oob+0x98/0x5d0
[   36.657390] 
[   36.657840] The buggy address belongs to the physical page:
[   36.658586] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106690
[   36.659691] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   36.660496] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   36.661757] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   36.663029] page dumped because: kasan: bad access detected
[   36.664338] 
[   36.664981] Memory state around the buggy address:
[   36.665487]  ffff80008010b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.666180]  ffff80008010b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   36.667063] >ffff80008010b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   36.668217]                                                              ^
[   36.669459]  ffff80008010b800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.670514]  ffff80008010b880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   36.671652] ==================================================================