Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   19.153885] ==================================================================
[   19.154138] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   19.154254] Read of size 1 at addr ffffa31870c6f64d by task kunit_try_catch/254
[   19.154357] 
[   19.154506] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   19.154628] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.154657] Hardware name: linux,dummy-virt (DT)
[   19.154692] Call trace:
[   19.154963]  show_stack+0x20/0x38 (C)
[   19.155026]  dump_stack_lvl+0x8c/0xd0
[   19.155172]  print_report+0x310/0x608
[   19.155279]  kasan_report+0xdc/0x128
[   19.155403]  __asan_report_load1_noabort+0x20/0x30
[   19.155487]  kasan_global_oob_right+0x230/0x270
[   19.155590]  kunit_try_run_case+0x170/0x3f0
[   19.155659]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.155729]  kthread+0x328/0x630
[   19.156040]  ret_from_fork+0x10/0x20
[   19.156208] 
[   19.156323] The buggy address belongs to the variable:
[   19.156359]  global_array+0xd/0x40
[   19.156473] 
[   19.156640] The buggy address belongs to the virtual mapping at
[   19.156640]  [ffffa3186ee30000, ffffa31870d21000) created by:
[   19.156640]  paging_init+0x66c/0x7d0
[   19.157341] 
[   19.157552] The buggy address belongs to the physical page:
[   19.157635] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47c6f
[   19.157697] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   19.157778] raw: 03fffe0000002000 ffffc1ffc01f1bc8 ffffc1ffc01f1bc8 0000000000000000
[   19.157854] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.157903] page dumped because: kasan: bad access detected
[   19.157960] 
[   19.157981] Memory state around the buggy address:
[   19.158017]  ffffa31870c6f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.158104]  ffffa31870c6f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.158423] >ffffa31870c6f600: 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9
[   19.158523]                                               ^
[   19.158562]  ffffa31870c6f680: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   19.158645]  ffffa31870c6f700: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   19.158689] ==================================================================

[   20.572690] ==================================================================
[   20.573713] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   20.574503] Read of size 1 at addr ffffffffbf86ce8d by task kunit_try_catch/272
[   20.574936] 
[   20.575234] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   20.575365] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.575403] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.575465] Call Trace:
[   20.575506]  <TASK>
[   20.575553]  dump_stack_lvl+0x73/0xb0
[   20.575597]  print_report+0xd1/0x650
[   20.575630]  ? __virt_addr_valid+0x1db/0x2d0
[   20.575662]  ? kasan_global_oob_right+0x286/0x2d0
[   20.575691]  ? kasan_addr_to_slab+0x11/0xa0
[   20.575720]  ? kasan_global_oob_right+0x286/0x2d0
[   20.575750]  kasan_report+0x141/0x180
[   20.575779]  ? kasan_global_oob_right+0x286/0x2d0
[   20.575814]  __asan_report_load1_noabort+0x18/0x20
[   20.575877]  kasan_global_oob_right+0x286/0x2d0
[   20.575910]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   20.575943]  ? __schedule+0x10cc/0x2b60
[   20.575970]  ? __pfx_read_tsc+0x10/0x10
[   20.576000]  ? ktime_get_ts64+0x86/0x230
[   20.576034]  kunit_try_run_case+0x1a5/0x480
[   20.576067]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.576098]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   20.576125]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.576161]  ? __kthread_parkme+0x82/0x180
[   20.576189]  ? preempt_count_sub+0x50/0x80
[   20.576234]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.576318]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.576405]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.576478]  kthread+0x337/0x6f0
[   20.576545]  ? trace_preempt_on+0x20/0xc0
[   20.576624]  ? __pfx_kthread+0x10/0x10
[   20.576698]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.576772]  ? calculate_sigpending+0x7b/0xa0
[   20.576906]  ? __pfx_kthread+0x10/0x10
[   20.577006]  ret_from_fork+0x116/0x1d0
[   20.577126]  ? __pfx_kthread+0x10/0x10
[   20.577224]  ret_from_fork_asm+0x1a/0x30
[   20.577321]  </TASK>
[   20.577358] 
[   20.593926] The buggy address belongs to the variable:
[   20.594432]  global_array+0xd/0x40
[   20.594969] 
[   20.595593] The buggy address belongs to the physical page:
[   20.596122] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2246c
[   20.596888] flags: 0x100000000002000(reserved|node=0|zone=1)
[   20.597477] raw: 0100000000002000 ffffea0000891b08 ffffea0000891b08 0000000000000000
[   20.598337] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.599015] page dumped because: kasan: bad access detected
[   20.599608] 
[   20.599849] Memory state around the buggy address:
[   20.600181]  ffffffffbf86cd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.601088]  ffffffffbf86ce00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.601912] >ffffffffbf86ce80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   20.602534]                       ^
[   20.602787]  ffffffffbf86cf00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   20.603513]  ffffffffbf86cf80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   20.604322] ==================================================================