Hay
Date
July 1, 2025, 12:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   19.616835] ==================================================================
[   19.616911] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   19.617056] Read of size 1 at addr ffffa141db94f5cd by task kunit_try_catch/245
[   19.617254] 
[   19.617440] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.617911] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.618004] Hardware name: linux,dummy-virt (DT)
[   19.618219] Call trace:
[   19.618242]  show_stack+0x20/0x38 (C)
[   19.618294]  dump_stack_lvl+0x8c/0xd0
[   19.618342]  print_report+0x310/0x608
[   19.618389]  kasan_report+0xdc/0x128
[   19.618437]  __asan_report_load1_noabort+0x20/0x30
[   19.618498]  kasan_global_oob_right+0x230/0x270
[   19.618543]  kunit_try_run_case+0x170/0x3f0
[   19.619133]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.619352]  kthread+0x328/0x630
[   19.619482]  ret_from_fork+0x10/0x20
[   19.619616] 
[   19.619684] The buggy address belongs to the variable:
[   19.619716]  global_array+0xd/0x40
[   19.619780] 
[   19.619856] The buggy address belongs to the virtual mapping at
[   19.619856]  [ffffa141d9b00000, ffffa141dba01000) created by:
[   19.619856]  paging_init+0x66c/0x7d0
[   19.619945] 
[   19.620003] The buggy address belongs to the physical page:
[   19.620037] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   19.620093] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   19.620267] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   19.620391] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.620439] page dumped because: kasan: bad access detected
[   19.620525] 
[   19.620564] Memory state around the buggy address:
[   19.620718]  ffffa141db94f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.620765]  ffffa141db94f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.620809] >ffffa141db94f580: 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9
[   19.620857]                                               ^
[   19.620894]  ffffa141db94f600: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   19.620938]  ffffa141db94f680: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   19.620989] ==================================================================

[   13.190933] ==================================================================
[   13.191678] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   13.191993] Read of size 1 at addr ffffffff8f061e8d by task kunit_try_catch/262
[   13.192368] 
[   13.192505] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.192550] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.192563] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.192583] Call Trace:
[   13.192596]  <TASK>
[   13.192609]  dump_stack_lvl+0x73/0xb0
[   13.192636]  print_report+0xd1/0x650
[   13.192659]  ? __virt_addr_valid+0x1db/0x2d0
[   13.192681]  ? kasan_global_oob_right+0x286/0x2d0
[   13.192702]  ? kasan_addr_to_slab+0x11/0xa0
[   13.192722]  ? kasan_global_oob_right+0x286/0x2d0
[   13.192743]  kasan_report+0x141/0x180
[   13.192764]  ? kasan_global_oob_right+0x286/0x2d0
[   13.192790]  __asan_report_load1_noabort+0x18/0x20
[   13.192813]  kasan_global_oob_right+0x286/0x2d0
[   13.192834]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.192858]  ? __schedule+0x10cc/0x2b60
[   13.192880]  ? __pfx_read_tsc+0x10/0x10
[   13.192901]  ? ktime_get_ts64+0x86/0x230
[   13.192923]  kunit_try_run_case+0x1a5/0x480
[   13.192945]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.192967]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.192989]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.193012]  ? __kthread_parkme+0x82/0x180
[   13.193046]  ? preempt_count_sub+0x50/0x80
[   13.193068]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.193092]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.193114]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.193137]  kthread+0x337/0x6f0
[   13.193213]  ? trace_preempt_on+0x20/0xc0
[   13.193240]  ? __pfx_kthread+0x10/0x10
[   13.193260]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.193281]  ? calculate_sigpending+0x7b/0xa0
[   13.193304]  ? __pfx_kthread+0x10/0x10
[   13.193325]  ret_from_fork+0x116/0x1d0
[   13.193343]  ? __pfx_kthread+0x10/0x10
[   13.193362]  ret_from_fork_asm+0x1a/0x30
[   13.193392]  </TASK>
[   13.193403] 
[   13.201184] The buggy address belongs to the variable:
[   13.201653]  global_array+0xd/0x40
[   13.201994] 
[   13.202301] The buggy address belongs to the physical page:
[   13.202787] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121c61
[   13.203580] flags: 0x200000000002000(reserved|node=0|zone=2)
[   13.204470] raw: 0200000000002000 ffffea0004871848 ffffea0004871848 0000000000000000
[   13.205170] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.206122] page dumped because: kasan: bad access detected
[   13.206606] 
[   13.206762] Memory state around the buggy address:
[   13.207016]  ffffffff8f061d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.207550]  ffffffff8f061e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.208246] >ffffffff8f061e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   13.208664]                       ^
[   13.208788]  ffffffff8f061f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   13.209003]  ffffffff8f061f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   13.209260] ==================================================================