Hay
Date
July 25, 2025, 3:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.540957] ==================================================================
[   34.541022] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   34.541079] Read of size 1 at addr ffff9501f119f68d by task kunit_try_catch/277
[   34.541129] 
[   34.541165] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   34.541251] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   34.541281] Hardware name: linux,dummy-virt (DT)
[   34.541312] Call trace:
[   34.541336]  show_stack+0x20/0x38 (C)
[   34.541382]  dump_stack_lvl+0x8c/0xd0
[   34.541429]  print_report+0x310/0x5e8
[   34.541473]  kasan_report+0xdc/0x128
[   34.541516]  __asan_report_load1_noabort+0x20/0x30
[   34.541570]  kasan_global_oob_right+0x230/0x270
[   34.541621]  kunit_try_run_case+0x170/0x3f0
[   34.542271]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.542332]  kthread+0x328/0x630
[   34.542386]  ret_from_fork+0x10/0x20
[   34.542603] 
[   34.542685] The buggy address belongs to the variable:
[   34.542720]  global_array+0xd/0x40
[   34.542773] 
[   34.542824] The buggy address belongs to a 0-page vmalloc region starting at 0xffff9501ef300000 allocated at paging_init+0x66c/0x7d0
[   34.543170] The buggy address belongs to the physical page:
[   34.543211] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d9f
[   34.543301] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   34.543372] raw: 03fffe0000002000 ffffc1ffc01f67c8 ffffc1ffc01f67c8 0000000000000000
[   34.543443] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   34.543486] page dumped because: kasan: bad access detected
[   34.543523] 
[   34.543543] Memory state around the buggy address:
[   34.543578]  ffff9501f119f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.543624]  ffff9501f119f600: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   34.543682] >ffff9501f119f680: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   34.543722]                       ^
[   34.543753]  ffff9501f119f700: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   34.543796]  ffff9501f119f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.543847] ==================================================================

[   27.619924] ==================================================================
[   27.620496] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   27.620833] Read of size 1 at addr ffffffffbaccb00d by task kunit_try_catch/294
[   27.621154] 
[   27.621282] CPU: 1 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   27.621332] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.621345] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.621366] Call Trace:
[   27.621378]  <TASK>
[   27.621393]  dump_stack_lvl+0x73/0xb0
[   27.621421]  print_report+0xd1/0x640
[   27.621443]  ? __virt_addr_valid+0x1db/0x2d0
[   27.621468]  ? kasan_global_oob_right+0x286/0x2d0
[   27.621490]  ? kasan_addr_to_slab+0x11/0xa0
[   27.621512]  ? kasan_global_oob_right+0x286/0x2d0
[   27.621536]  kasan_report+0x141/0x180
[   27.621559]  ? kasan_global_oob_right+0x286/0x2d0
[   27.621587]  __asan_report_load1_noabort+0x18/0x20
[   27.621613]  kasan_global_oob_right+0x286/0x2d0
[   27.621637]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   27.621665]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   27.621692]  kunit_try_run_case+0x1a5/0x480
[   27.621718]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.621742]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.621764]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.621792]  ? __kthread_parkme+0x82/0x180
[   27.621813]  ? preempt_count_sub+0x50/0x80
[   27.621837]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.621863]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.621888]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.621913]  kthread+0x337/0x6f0
[   27.621934]  ? trace_preempt_on+0x20/0xc0
[   27.621969]  ? __pfx_kthread+0x10/0x10
[   27.621990]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.622073]  ? calculate_sigpending+0x7b/0xa0
[   27.622099]  ? __pfx_kthread+0x10/0x10
[   27.622122]  ret_from_fork+0x116/0x1d0
[   27.622144]  ? __pfx_kthread+0x10/0x10
[   27.622166]  ret_from_fork_asm+0x1a/0x30
[   27.622199]  </TASK>
[   27.622211] 
[   27.629005] The buggy address belongs to the variable:
[   27.629504]  global_array+0xd/0x40
[   27.629699] 
[   27.629812] The buggy address belongs to the physical page:
[   27.630108] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d0cb
[   27.630429] flags: 0x100000000002000(reserved|node=0|zone=1)
[   27.630640] raw: 0100000000002000 ffffea00013432c8 ffffea00013432c8 0000000000000000
[   27.630991] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   27.631359] page dumped because: kasan: bad access detected
[   27.631588] 
[   27.631681] Memory state around the buggy address:
[   27.631839]  ffffffffbaccaf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.632362]  ffffffffbaccaf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.632692] >ffffffffbaccb000: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   27.633166]                       ^
[   27.633306]  ffffffffbaccb080: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   27.633624]  ffffffffbaccb100: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   27.633969] ==================================================================