Hay
Date
July 8, 2025, 4:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.925764] ==================================================================
[   19.925840] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   19.925905] Read of size 1 at addr ffffaee417e035ad by task kunit_try_catch/247
[   19.925972] 
[   19.926047] CPU: 0 UID: 0 PID: 247 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT 
[   19.926141] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.926189] Hardware name: linux,dummy-virt (DT)
[   19.926220] Call trace:
[   19.926241]  show_stack+0x20/0x38 (C)
[   19.926466]  dump_stack_lvl+0x8c/0xd0
[   19.926532]  print_report+0x310/0x608
[   19.926580]  kasan_report+0xdc/0x128
[   19.926651]  __asan_report_load1_noabort+0x20/0x30
[   19.926708]  kasan_global_oob_right+0x230/0x270
[   19.926792]  kunit_try_run_case+0x170/0x3f0
[   19.926850]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.926904]  kthread+0x328/0x630
[   19.926968]  ret_from_fork+0x10/0x20
[   19.927029] 
[   19.927080] The buggy address belongs to the variable:
[   19.927313]  global_array+0xd/0x40
[   19.927447] 
[   19.927527] The buggy address belongs to the virtual mapping at
[   19.927527]  [ffffaee416020000, ffffaee417ec1000) created by:
[   19.927527]  paging_init+0x66c/0x7d0
[   19.927639] 
[   19.927903] The buggy address belongs to the physical page:
[   19.927995] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47c03
[   19.928069] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   19.928152] raw: 03fffe0000002000 ffffc1ffc01f00c8 ffffc1ffc01f00c8 0000000000000000
[   19.928224] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.928290] page dumped because: kasan: bad access detected
[   19.928372] 
[   19.928393] Memory state around the buggy address:
[   19.928424]  ffffaee417e03480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.928469]  ffffaee417e03500: 00 00 00 00 00 00 00 00 00 00 00 00 02 f9 f9 f9
[   19.928511] >ffffaee417e03580: f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
[   19.928549]                                   ^
[   19.928582]  ffffaee417e03600: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9
[   19.928911]  ffffaee417e03680: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
[   19.928976] ==================================================================

[   13.081508] ==================================================================
[   13.082400] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   13.082809] Read of size 1 at addr ffffffff9684532d by task kunit_try_catch/265
[   13.083178] 
[   13.083332] CPU: 0 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT(voluntary) 
[   13.083381] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.083394] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.083418] Call Trace:
[   13.083432]  <TASK>
[   13.083449]  dump_stack_lvl+0x73/0xb0
[   13.083478]  print_report+0xd1/0x650
[   13.083503]  ? __virt_addr_valid+0x1db/0x2d0
[   13.083526]  ? kasan_global_oob_right+0x286/0x2d0
[   13.083548]  ? kasan_addr_to_slab+0x11/0xa0
[   13.083578]  ? kasan_global_oob_right+0x286/0x2d0
[   13.083600]  kasan_report+0x141/0x180
[   13.083623]  ? kasan_global_oob_right+0x286/0x2d0
[   13.083652]  __asan_report_load1_noabort+0x18/0x20
[   13.083674]  kasan_global_oob_right+0x286/0x2d0
[   13.083697]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.083724]  ? __schedule+0x10cc/0x2b60
[   13.083749]  ? __pfx_read_tsc+0x10/0x10
[   13.083771]  ? ktime_get_ts64+0x86/0x230
[   13.083799]  kunit_try_run_case+0x1a5/0x480
[   13.083822]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.083841]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.083867]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.083904]  ? __kthread_parkme+0x82/0x180
[   13.083927]  ? preempt_count_sub+0x50/0x80
[   13.083954]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.083977]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.084002]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.084027]  kthread+0x337/0x6f0
[   13.084045]  ? trace_preempt_on+0x20/0xc0
[   13.084069]  ? __pfx_kthread+0x10/0x10
[   13.084088]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.084111]  ? calculate_sigpending+0x7b/0xa0
[   13.084134]  ? __pfx_kthread+0x10/0x10
[   13.084153]  ret_from_fork+0x41/0x80
[   13.084175]  ? __pfx_kthread+0x10/0x10
[   13.084203]  ret_from_fork_asm+0x1a/0x30
[   13.084234]  </TASK>
[   13.084246] 
[   13.091475] The buggy address belongs to the variable:
[   13.091738]  global_array+0xd/0x40
[   13.092114] 
[   13.092238] The buggy address belongs to the physical page:
[   13.092424] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x73445
[   13.092666] flags: 0x100000000002000(reserved|node=0|zone=1)
[   13.093132] raw: 0100000000002000 ffffea0001cd1148 ffffea0001cd1148 0000000000000000
[   13.093491] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.093859] page dumped because: kasan: bad access detected
[   13.094105] 
[   13.094206] Memory state around the buggy address:
[   13.094399]  ffffffff96845200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.094693]  ffffffff96845280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.094929] >ffffffff96845300: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
[   13.095229]                                   ^
[   13.095446]  ffffffff96845380: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9
[   13.095775]  ffffffff96845400: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[   13.096121] ==================================================================