Hay
Date
July 6, 2025, 11:09 a.m.

Environment
qemu-arm64

[   21.224007] ==================================================================
[   21.224062] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x51c/0x5d0
[   21.224267] Read of size 1 at addr ffff8000800fe7f8 by task kunit_try_catch/269
[   21.224487] 
[   21.224741] CPU: 1 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.224846] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.224875] Hardware name: linux,dummy-virt (DT)
[   21.224993] Call trace:
[   21.225019]  show_stack+0x20/0x38 (C)
[   21.225126]  dump_stack_lvl+0x8c/0xd0
[   21.225174]  print_report+0x310/0x608
[   21.225233]  kasan_report+0xdc/0x128
[   21.225427]  __asan_report_load1_noabort+0x20/0x30
[   21.225532]  vmalloc_oob+0x51c/0x5d0
[   21.225913]  kunit_try_run_case+0x170/0x3f0
[   21.225987]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.226042]  kthread+0x328/0x630
[   21.226086]  ret_from_fork+0x10/0x20
[   21.226334] 
[   21.226447] The buggy address belongs to the virtual mapping at
[   21.226447]  [ffff8000800fe000, ffff800080100000) created by:
[   21.226447]  vmalloc_oob+0x98/0x5d0
[   21.226565] 
[   21.226654] The buggy address belongs to the physical page:
[   21.226930] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1056d0
[   21.227119] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.227316] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.227405] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.227495] page dumped because: kasan: bad access detected
[   21.227579] 
[   21.227601] Memory state around the buggy address:
[   21.227634]  ffff8000800fe680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.227679]  ffff8000800fe700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.228122] >ffff8000800fe780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   21.228407]                                                                 ^
[   21.228463]  ffff8000800fe800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   21.228510]  ffff8000800fe880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   21.228572] ==================================================================
[   21.219117] ==================================================================
[   21.219356] BUG: KASAN: vmalloc-out-of-bounds in vmalloc_oob+0x578/0x5d0
[   21.219609] Read of size 1 at addr ffff8000800fe7f3 by task kunit_try_catch/269
[   21.219722] 
[   21.219804] CPU: 1 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.219887] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.219915] Hardware name: linux,dummy-virt (DT)
[   21.219949] Call trace:
[   21.219976]  show_stack+0x20/0x38 (C)
[   21.220027]  dump_stack_lvl+0x8c/0xd0
[   21.220153]  print_report+0x310/0x608
[   21.220214]  kasan_report+0xdc/0x128
[   21.220262]  __asan_report_load1_noabort+0x20/0x30
[   21.220461]  vmalloc_oob+0x578/0x5d0
[   21.220593]  kunit_try_run_case+0x170/0x3f0
[   21.220656]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.220760]  kthread+0x328/0x630
[   21.220804]  ret_from_fork+0x10/0x20
[   21.220896] 
[   21.220937] The buggy address belongs to the virtual mapping at
[   21.220937]  [ffff8000800fe000, ffff800080100000) created by:
[   21.220937]  vmalloc_oob+0x98/0x5d0
[   21.221068] 
[   21.221092] The buggy address belongs to the physical page:
[   21.221126] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1056d0
[   21.221206] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.221307] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.221357] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.221612] page dumped because: kasan: bad access detected
[   21.222263] 
[   21.222321] Memory state around the buggy address:
[   21.222399]  ffff8000800fe680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.222684]  ffff8000800fe700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.222797] >ffff8000800fe780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 f8
[   21.222862]                                                              ^
[   21.222906]  ffff8000800fe800: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   21.222952]  ffff8000800fe880: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
[   21.222993] ==================================================================