Hay
Date
July 10, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.162590] ==================================================================
[   18.162656] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   18.163070] Read of size 1 at addr ffff92ec2d94f58d by task kunit_try_catch/245
[   18.163182] 
[   18.163259] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.163392] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.163420] Hardware name: linux,dummy-virt (DT)
[   18.163598] Call trace:
[   18.163634]  show_stack+0x20/0x38 (C)
[   18.163819]  dump_stack_lvl+0x8c/0xd0
[   18.163872]  print_report+0x310/0x608
[   18.164008]  kasan_report+0xdc/0x128
[   18.164156]  __asan_report_load1_noabort+0x20/0x30
[   18.164231]  kasan_global_oob_right+0x230/0x270
[   18.164283]  kunit_try_run_case+0x170/0x3f0
[   18.164362]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.164693]  kthread+0x328/0x630
[   18.164815]  ret_from_fork+0x10/0x20
[   18.164880] 
[   18.164955] The buggy address belongs to the variable:
[   18.165057]  global_array+0xd/0x40
[   18.165170] 
[   18.165275] The buggy address belongs to the virtual mapping at
[   18.165275]  [ffff92ec2bb00000, ffff92ec2da01000) created by:
[   18.165275]  paging_init+0x66c/0x7d0
[   18.165642] 
[   18.165733] The buggy address belongs to the physical page:
[   18.166196] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   18.166308] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   18.166457] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   18.166882] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.166971] page dumped because: kasan: bad access detected
[   18.167150] 
[   18.167223] Memory state around the buggy address:
[   18.167338]  ffff92ec2d94f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.167427]  ffff92ec2d94f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   18.167574] >ffff92ec2d94f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   18.167633]                       ^
[   18.167662]  ffff92ec2d94f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   18.167852]  ffff92ec2d94f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.167926] ==================================================================

[   14.461833] ==================================================================
[   14.462317] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.462920] Read of size 1 at addr ffffffffa8863e8d by task kunit_try_catch/263
[   14.463212] 
[   14.463527] CPU: 0 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.463573] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.463584] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.463604] Call Trace:
[   14.463616]  <TASK>
[   14.463629]  dump_stack_lvl+0x73/0xb0
[   14.463659]  print_report+0xd1/0x650
[   14.463682]  ? __virt_addr_valid+0x1db/0x2d0
[   14.463704]  ? kasan_global_oob_right+0x286/0x2d0
[   14.463726]  ? kasan_addr_to_slab+0x11/0xa0
[   14.463748]  ? kasan_global_oob_right+0x286/0x2d0
[   14.463771]  kasan_report+0x141/0x180
[   14.463793]  ? kasan_global_oob_right+0x286/0x2d0
[   14.463820]  __asan_report_load1_noabort+0x18/0x20
[   14.463845]  kasan_global_oob_right+0x286/0x2d0
[   14.463868]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.463895]  ? __schedule+0x10cc/0x2b60
[   14.463917]  ? __pfx_read_tsc+0x10/0x10
[   14.463938]  ? ktime_get_ts64+0x86/0x230
[   14.463964]  kunit_try_run_case+0x1a5/0x480
[   14.463988]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.464012]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.464035]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.464060]  ? __kthread_parkme+0x82/0x180
[   14.464080]  ? preempt_count_sub+0x50/0x80
[   14.464103]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.464128]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.464153]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.464185]  kthread+0x337/0x6f0
[   14.464204]  ? trace_preempt_on+0x20/0xc0
[   14.464228]  ? __pfx_kthread+0x10/0x10
[   14.464249]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.464271]  ? calculate_sigpending+0x7b/0xa0
[   14.464295]  ? __pfx_kthread+0x10/0x10
[   14.464317]  ret_from_fork+0x116/0x1d0
[   14.464335]  ? __pfx_kthread+0x10/0x10
[   14.464415]  ret_from_fork_asm+0x1a/0x30
[   14.464448]  </TASK>
[   14.464458] 
[   14.471245] The buggy address belongs to the variable:
[   14.471765]  global_array+0xd/0x40
[   14.471980] 
[   14.472095] The buggy address belongs to the physical page:
[   14.472425] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x120063
[   14.472800] flags: 0x200000000002000(reserved|node=0|zone=2)
[   14.473052] raw: 0200000000002000 ffffea00048018c8 ffffea00048018c8 0000000000000000
[   14.473298] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.473990] page dumped because: kasan: bad access detected
[   14.474219] 
[   14.475765] Memory state around the buggy address:
[   14.476559]  ffffffffa8863d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.477595]  ffffffffa8863e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.477894] >ffffffffa8863e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.478171]                       ^
[   14.478319]  ffffffffa8863f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.479743]  ffffffffa8863f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.481559] ==================================================================