Hay
Date
July 4, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   31.897030] ==================================================================
[   31.897093] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   31.897149] Read of size 1 at addr ffffa0287211268d by task kunit_try_catch/278
[   31.897430] 
[   31.897779] CPU: 1 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   31.898109] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.898140] Hardware name: linux,dummy-virt (DT)
[   31.898173] Call trace:
[   31.898200]  show_stack+0x20/0x38 (C)
[   31.898255]  dump_stack_lvl+0x8c/0xd0
[   31.898302]  print_report+0x310/0x608
[   31.898352]  kasan_report+0xdc/0x128
[   31.898841]  __asan_report_load1_noabort+0x20/0x30
[   31.898926]  kasan_global_oob_right+0x230/0x270
[   31.899415]  kunit_try_run_case+0x170/0x3f0
[   31.899495]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.899743]  kthread+0x328/0x630
[   31.899791]  ret_from_fork+0x10/0x20
[   31.899851] 
[   31.899955] The buggy address belongs to the variable:
[   31.899990]  global_array+0xd/0x40
[   31.900059] 
[   31.900425] The buggy address belongs to the virtual mapping at
[   31.900425]  [ffffa02870290000, ffffa028721d1000) created by:
[   31.900425]  paging_init+0x66c/0x7d0
[   31.900775] 
[   31.901267] The buggy address belongs to the physical page:
[   31.901314] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d12
[   31.901592] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   31.901799] raw: 03fffe0000002000 ffffc1ffc01f4488 ffffc1ffc01f4488 0000000000000000
[   31.902022] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   31.902134] page dumped because: kasan: bad access detected
[   31.902222] 
[   31.902304] Memory state around the buggy address:
[   31.902347]  ffffa02872112580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.902408]  ffffa02872112600: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   31.902454] >ffffa02872112680: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   31.902496]                       ^
[   31.902540]  ffffa02872112700: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   31.902583]  ffffa02872112780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.902988] ==================================================================

[   26.885731] ==================================================================
[   26.886261] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   26.887090] Read of size 1 at addr ffffffffae2b3ecd by task kunit_try_catch/294
[   26.887640] 
[   26.887787] CPU: 1 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   26.887852] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.887869] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.887896] Call Trace:
[   26.887912]  <TASK>
[   26.887936]  dump_stack_lvl+0x73/0xb0
[   26.887971]  print_report+0xd1/0x650
[   26.887997]  ? __virt_addr_valid+0x1db/0x2d0
[   26.888026]  ? kasan_global_oob_right+0x286/0x2d0
[   26.888054]  ? kasan_addr_to_slab+0x11/0xa0
[   26.888082]  ? kasan_global_oob_right+0x286/0x2d0
[   26.888111]  kasan_report+0x141/0x180
[   26.888136]  ? kasan_global_oob_right+0x286/0x2d0
[   26.888186]  __asan_report_load1_noabort+0x18/0x20
[   26.888213]  kasan_global_oob_right+0x286/0x2d0
[   26.888249]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   26.888280]  ? __schedule+0x10cc/0x2b60
[   26.888308]  ? __pfx_read_tsc+0x10/0x10
[   26.888334]  ? ktime_get_ts64+0x86/0x230
[   26.888365]  kunit_try_run_case+0x1a5/0x480
[   26.888410]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.888437]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.888465]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.888492]  ? __kthread_parkme+0x82/0x180
[   26.888517]  ? preempt_count_sub+0x50/0x80
[   26.888543]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.888570]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.888598]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.888626]  kthread+0x337/0x6f0
[   26.888648]  ? trace_preempt_on+0x20/0xc0
[   26.888676]  ? __pfx_kthread+0x10/0x10
[   26.888700]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.888725]  ? calculate_sigpending+0x7b/0xa0
[   26.888752]  ? __pfx_kthread+0x10/0x10
[   26.888777]  ret_from_fork+0x116/0x1d0
[   26.888798]  ? __pfx_kthread+0x10/0x10
[   26.888821]  ret_from_fork_asm+0x1a/0x30
[   26.888857]  </TASK>
[   26.888872] 
[   26.902847] The buggy address belongs to the variable:
[   26.903068]  global_array+0xd/0x40
[   26.903237] 
[   26.903329] The buggy address belongs to the physical page:
[   26.903530] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1332b3
[   26.903873] flags: 0x200000000002000(reserved|node=0|zone=2)
[   26.904139] raw: 0200000000002000 ffffea0004ccacc8 ffffea0004ccacc8 0000000000000000
[   26.904564] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   26.904931] page dumped because: kasan: bad access detected
[   26.905118] 
[   26.905188] Memory state around the buggy address:
[   26.905560]  ffffffffae2b3d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.906023]  ffffffffae2b3e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.906503] >ffffffffae2b3e80: 00 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9
[   26.907236]                                               ^
[   26.907468]  ffffffffae2b3f00: 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   26.907832]  ffffffffae2b3f80: 02 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   26.908146] ==================================================================