Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.120881] ==================================================================
[   20.121222] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   20.121451] Read of size 1 at addr ffffa132831b15cd by task kunit_try_catch/245
[   20.121570] 
[   20.121676] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   20.121877] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.122592] Hardware name: linux,dummy-virt (DT)
[   20.122755] Call trace:
[   20.122850]  show_stack+0x20/0x38 (C)
[   20.123009]  dump_stack_lvl+0x8c/0xd0
[   20.123135]  print_report+0x310/0x608
[   20.123285]  kasan_report+0xdc/0x128
[   20.123618]  __asan_report_load1_noabort+0x20/0x30
[   20.123750]  kasan_global_oob_right+0x230/0x270
[   20.123853]  kunit_try_run_case+0x170/0x3f0
[   20.124090]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.124284]  kthread+0x328/0x630
[   20.124507]  ret_from_fork+0x10/0x20
[   20.124659] 
[   20.125033] The buggy address belongs to the variable:
[   20.125118]  global_array+0xd/0x40
[   20.125229] 
[   20.125602] The buggy address belongs to the virtual mapping at
[   20.125602]  [ffffa13281350000, ffffa13283271000) created by:
[   20.125602]  paging_init+0x66c/0x7d0
[   20.126353] 
[   20.126602] The buggy address belongs to the physical page:
[   20.126683] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47db1
[   20.127024] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   20.127213] raw: 03fffe0000002000 ffffc1ffc01f6c48 ffffc1ffc01f6c48 0000000000000000
[   20.127619] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.127708] page dumped because: kasan: bad access detected
[   20.127766] 
[   20.127799] Memory state around the buggy address:
[   20.127871]  ffffa132831b1480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.128216]  ffffa132831b1500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.129647] >ffffa132831b1580: 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9
[   20.129733]                                               ^
[   20.129818]  ffffa132831b1600: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   20.129913]  ffffa132831b1680: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   20.130003] ==================================================================


[   12.792135] ==================================================================
[   12.793074] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   12.793664] Read of size 1 at addr ffffffffa987ae4d by task kunit_try_catch/263
[   12.794177] 
[   12.794319] CPU: 1 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   12.794551] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.794565] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.794589] Call Trace:
[   12.794603]  <TASK>
[   12.794621]  dump_stack_lvl+0x73/0xb0
[   12.794650]  print_report+0xd1/0x650
[   12.794674]  ? __virt_addr_valid+0x1db/0x2d0
[   12.794698]  ? kasan_global_oob_right+0x286/0x2d0
[   12.794736]  ? kasan_addr_to_slab+0x11/0xa0
[   12.794757]  ? kasan_global_oob_right+0x286/0x2d0
[   12.794779]  kasan_report+0x141/0x180
[   12.794801]  ? kasan_global_oob_right+0x286/0x2d0
[   12.794828]  __asan_report_load1_noabort+0x18/0x20
[   12.794849]  kasan_global_oob_right+0x286/0x2d0
[   12.794871]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   12.794895]  ? __schedule+0x10cc/0x2b60
[   12.794920]  ? __pfx_read_tsc+0x10/0x10
[   12.794941]  ? ktime_get_ts64+0x86/0x230
[   12.794966]  kunit_try_run_case+0x1a5/0x480
[   12.794988]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.795019]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.795045]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.795068]  ? __kthread_parkme+0x82/0x180
[   12.795088]  ? preempt_count_sub+0x50/0x80
[   12.795112]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.795133]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.795156]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.795180]  kthread+0x337/0x6f0
[   12.795199]  ? trace_preempt_on+0x20/0xc0
[   12.795222]  ? __pfx_kthread+0x10/0x10
[   12.795243]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.795265]  ? calculate_sigpending+0x7b/0xa0
[   12.795289]  ? __pfx_kthread+0x10/0x10
[   12.795309]  ret_from_fork+0x116/0x1d0
[   12.795328]  ? __pfx_kthread+0x10/0x10
[   12.795347]  ret_from_fork_asm+0x1a/0x30
[   12.795390]  </TASK>
[   12.795400] 
[   12.805397] The buggy address belongs to the variable:
[   12.805650]  global_array+0xd/0x40
[   12.805864] 
[   12.806400] The buggy address belongs to the physical page:
[   12.806619] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16cc7a
[   12.807249] flags: 0x200000000002000(reserved|node=0|zone=2)
[   12.807506] raw: 0200000000002000 ffffea0005b31e88 ffffea0005b31e88 0000000000000000
[   12.807980] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.808387] page dumped because: kasan: bad access detected
[   12.808622] 
[   12.808698] Memory state around the buggy address:
[   12.809151]  ffffffffa987ad00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.809563]  ffffffffa987ad80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.809999] >ffffffffa987ae00: 00 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9
[   12.810441]                                               ^
[   12.810659]  ffffffffa987ae80: 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   12.811298]  ffffffffa987af00: 02 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   12.811599] ==================================================================