Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.038828] ==================================================================
[   19.038934] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   19.039109] Read of size 1 at addr ffff9660c1d4f5cd by task kunit_try_catch/245
[   19.039164] 
[   19.039205] CPU: 1 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.039434] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.039511] Hardware name: linux,dummy-virt (DT)
[   19.039547] Call trace:
[   19.039658]  show_stack+0x20/0x38 (C)
[   19.039743]  dump_stack_lvl+0x8c/0xd0
[   19.040270]  print_report+0x310/0x608
[   19.040557]  kasan_report+0xdc/0x128
[   19.040696]  __asan_report_load1_noabort+0x20/0x30
[   19.040800]  kasan_global_oob_right+0x230/0x270
[   19.040907]  kunit_try_run_case+0x170/0x3f0
[   19.040992]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.041054]  kthread+0x328/0x630
[   19.041095]  ret_from_fork+0x10/0x20
[   19.041154] 
[   19.041403] The buggy address belongs to the variable:
[   19.041556]  global_array+0xd/0x40
[   19.042070] 
[   19.042376] The buggy address belongs to the virtual mapping at
[   19.042376]  [ffff9660bff00000, ffff9660c1e01000) created by:
[   19.042376]  paging_init+0x66c/0x7d0
[   19.042680] 
[   19.043044] The buggy address belongs to the physical page:
[   19.043102] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   19.043256] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   19.043505] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   19.043798] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.043905] page dumped because: kasan: bad access detected
[   19.044013] 
[   19.044158] Memory state around the buggy address:
[   19.044250]  ffff9660c1d4f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.044344]  ffff9660c1d4f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.044506] >ffff9660c1d4f580: 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9
[   19.044653]                                               ^
[   19.044803]  ffff9660c1d4f600: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   19.044875]  ffff9660c1d4f680: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   19.044921] ==================================================================

[   13.190947] ==================================================================
[   13.191422] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   13.191681] Read of size 1 at addr ffffffffb5461e8d by task kunit_try_catch/263
[   13.191907] 
[   13.192023] CPU: 0 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.192072] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.192084] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.192118] Call Trace:
[   13.192131]  <TASK>
[   13.192149]  dump_stack_lvl+0x73/0xb0
[   13.192177]  print_report+0xd1/0x650
[   13.192199]  ? __virt_addr_valid+0x1db/0x2d0
[   13.192221]  ? kasan_global_oob_right+0x286/0x2d0
[   13.192242]  ? kasan_addr_to_slab+0x11/0xa0
[   13.192262]  ? kasan_global_oob_right+0x286/0x2d0
[   13.192283]  kasan_report+0x141/0x180
[   13.192304]  ? kasan_global_oob_right+0x286/0x2d0
[   13.192330]  __asan_report_load1_noabort+0x18/0x20
[   13.192353]  kasan_global_oob_right+0x286/0x2d0
[   13.192374]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.192397]  ? __schedule+0x10cc/0x2b60
[   13.192419]  ? __pfx_read_tsc+0x10/0x10
[   13.192440]  ? ktime_get_ts64+0x86/0x230
[   13.192464]  kunit_try_run_case+0x1a5/0x480
[   13.192488]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.192509]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.192532]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.192553]  ? __kthread_parkme+0x82/0x180
[   13.192573]  ? preempt_count_sub+0x50/0x80
[   13.192596]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.192618]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.192640]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.192663]  kthread+0x337/0x6f0
[   13.192681]  ? trace_preempt_on+0x20/0xc0
[   13.192705]  ? __pfx_kthread+0x10/0x10
[   13.192725]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.192745]  ? calculate_sigpending+0x7b/0xa0
[   13.192768]  ? __pfx_kthread+0x10/0x10
[   13.192788]  ret_from_fork+0x116/0x1d0
[   13.192806]  ? __pfx_kthread+0x10/0x10
[   13.192825]  ret_from_fork_asm+0x1a/0x30
[   13.192856]  </TASK>
[   13.192867] 
[   13.203443] The buggy address belongs to the variable:
[   13.203674]  global_array+0xd/0x40
[   13.203882] 
[   13.203995] The buggy address belongs to the physical page:
[   13.204861] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x61661
[   13.205384] flags: 0x100000000002000(reserved|node=0|zone=1)
[   13.205766] raw: 0100000000002000 ffffea0001859848 ffffea0001859848 0000000000000000
[   13.206234] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.206678] page dumped because: kasan: bad access detected
[   13.207001] 
[   13.207115] Memory state around the buggy address:
[   13.207572]  ffffffffb5461d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.207901]  ffffffffb5461e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.208461] >ffffffffb5461e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   13.208899]                       ^
[   13.209070]  ffffffffb5461f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   13.209801]  ffffffffb5461f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   13.210244] ==================================================================