Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.722093] ==================================================================
[   18.722179] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   18.722254] Read of size 1 at addr ffffb06b7494f58d by task kunit_try_catch/245
[   18.722306] 
[   18.722360] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.722447] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.722474] Hardware name: linux,dummy-virt (DT)
[   18.722507] Call trace:
[   18.722530]  show_stack+0x20/0x38 (C)
[   18.722582]  dump_stack_lvl+0x8c/0xd0
[   18.722632]  print_report+0x310/0x608
[   18.722678]  kasan_report+0xdc/0x128
[   18.722737]  __asan_report_load1_noabort+0x20/0x30
[   18.722803]  kasan_global_oob_right+0x230/0x270
[   18.722851]  kunit_try_run_case+0x170/0x3f0
[   18.722900]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.722956]  kthread+0x328/0x630
[   18.722999]  ret_from_fork+0x10/0x20
[   18.723059] 
[   18.723130] The buggy address belongs to the variable:
[   18.723168]  global_array+0xd/0x40
[   18.723220] 
[   18.723291] The buggy address belongs to the virtual mapping at
[   18.723291]  [ffffb06b72b00000, ffffb06b74a01000) created by:
[   18.723291]  paging_init+0x66c/0x7d0
[   18.723385] 
[   18.723446] The buggy address belongs to the physical page:
[   18.723479] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   18.723543] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   18.723616] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   18.723666] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.724511] page dumped because: kasan: bad access detected
[   18.724584] 
[   18.724620] Memory state around the buggy address:
[   18.724684]  ffffb06b7494f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.724740]  ffffb06b7494f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   18.724816] >ffffb06b7494f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   18.725991]                       ^
[   18.726041]  ffffb06b7494f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   18.726556]  ffffb06b7494f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.726625] ==================================================================

[   14.327320] ==================================================================
[   14.327870] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.328310] Read of size 1 at addr ffffffff8ec63e8d by task kunit_try_catch/262
[   14.328589] 
[   14.328746] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.328793] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.328805] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.328827] Call Trace:
[   14.328839]  <TASK>
[   14.328855]  dump_stack_lvl+0x73/0xb0
[   14.328888]  print_report+0xd1/0x650
[   14.328910]  ? __virt_addr_valid+0x1db/0x2d0
[   14.328933]  ? kasan_global_oob_right+0x286/0x2d0
[   14.328955]  ? kasan_addr_to_slab+0x11/0xa0
[   14.328976]  ? kasan_global_oob_right+0x286/0x2d0
[   14.328999]  kasan_report+0x141/0x180
[   14.329020]  ? kasan_global_oob_right+0x286/0x2d0
[   14.329047]  __asan_report_load1_noabort+0x18/0x20
[   14.329072]  kasan_global_oob_right+0x286/0x2d0
[   14.329094]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.329179]  ? trace_hardirqs_on+0x37/0xe0
[   14.329218]  ? __schedule+0x207f/0x2b60
[   14.329240]  ? __pfx_read_tsc+0x10/0x10
[   14.329264]  ? ktime_get_ts64+0x86/0x230
[   14.329288]  kunit_try_run_case+0x1a5/0x480
[   14.329313]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.329336]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.329360]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.329384]  ? __kthread_parkme+0x82/0x180
[   14.329405]  ? preempt_count_sub+0x50/0x80
[   14.329430]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.329454]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.329480]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.329505]  kthread+0x337/0x6f0
[   14.329524]  ? trace_preempt_on+0x20/0xc0
[   14.329547]  ? __pfx_kthread+0x10/0x10
[   14.329567]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.329589]  ? calculate_sigpending+0x7b/0xa0
[   14.329614]  ? __pfx_kthread+0x10/0x10
[   14.329636]  ret_from_fork+0x116/0x1d0
[   14.329655]  ? __pfx_kthread+0x10/0x10
[   14.329675]  ret_from_fork_asm+0x1a/0x30
[   14.329718]  </TASK>
[   14.329727] 
[   14.336780] The buggy address belongs to the variable:
[   14.337201]  global_array+0xd/0x40
[   14.337373] 
[   14.337462] The buggy address belongs to the physical page:
[   14.337637] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x31263
[   14.337989] flags: 0x100000000002000(reserved|node=0|zone=1)
[   14.338335] raw: 0100000000002000 ffffea0000c498c8 ffffea0000c498c8 0000000000000000
[   14.338679] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.339024] page dumped because: kasan: bad access detected
[   14.339301] 
[   14.339394] Memory state around the buggy address:
[   14.339582]  ffffffff8ec63d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.339809]  ffffffff8ec63e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.340178] >ffffffff8ec63e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.340518]                       ^
[   14.340692]  ffffffff8ec63f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.341002]  ffffffff8ec63f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.341283] ==================================================================