Hay
Date
June 2, 2025, 2:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.875632] ==================================================================
[   21.876264] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x220/0x258
[   21.876967] Read of size 1 at addr ffff93d5410046cd by task kunit_try_catch/232
[   21.877492] 
[   21.877743] CPU: 1 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G    B            N 6.12.32-rc1 #1
[   21.877852] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.877916] Hardware name: linux,dummy-virt (DT)
[   21.878005] Call trace:
[   21.878036]  dump_backtrace+0x9c/0x128
[   21.878099]  show_stack+0x20/0x38
[   21.878141]  dump_stack_lvl+0x8c/0xd0
[   21.878188]  print_report+0x310/0x5f0
[   21.878234]  kasan_report+0xdc/0x128
[   21.878291]  __asan_report_load1_noabort+0x20/0x30
[   21.878340]  kasan_global_oob_right+0x220/0x258
[   21.878386]  kunit_try_run_case+0x170/0x3f0
[   21.878432]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.878483]  kthread+0x24c/0x2d0
[   21.878528]  ret_from_fork+0x10/0x20
[   21.878598] 
[   21.882071] The buggy address belongs to the variable:
[   21.882358]  global_array+0xd/0x40
[   21.882672] 
[   21.882961] The buggy address belongs to the virtual mapping at
[   21.882961]  [ffff93d53f380000, ffff93d5410c1000) created by:
[   21.882961]  paging_init+0x66c/0x7d0
[   21.884217] 
[   21.884648] The buggy address belongs to the physical page:
[   21.884965] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47804
[   21.885406] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   21.885837] raw: 03fffe0000002000 ffffc1ffc01e0108 ffffc1ffc01e0108 0000000000000000
[   21.886811] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.887614] page dumped because: kasan: bad access detected
[   21.887934] 
[   21.888115] Memory state around the buggy address:
[   21.888465]  ffff93d541004580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.888875]  ffff93d541004600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.889518] >ffff93d541004680: 00 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9
[   21.889970]                                               ^
[   21.890294]  ffff93d541004700: 02 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   21.890819]  ffff93d541004780: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   21.891604] ==================================================================

[   13.915270] ==================================================================
[   13.915729] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x288/0x2d0
[   13.916109] Read of size 1 at addr ffffffff87bd0d6d by task kunit_try_catch/250
[   13.916369] 
[   13.916849] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N 6.12.32-rc1 #1
[   13.916905] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.916918] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.916941] Call Trace:
[   13.916957]  <TASK>
[   13.916978]  dump_stack_lvl+0x73/0xb0
[   13.917012]  print_report+0xd1/0x640
[   13.917036]  ? __virt_addr_valid+0x1db/0x2d0
[   13.917063]  ? kasan_global_oob_right+0x288/0x2d0
[   13.917085]  ? kasan_addr_to_slab+0x11/0xa0
[   13.917106]  ? kasan_global_oob_right+0x288/0x2d0
[   13.917128]  kasan_report+0x140/0x180
[   13.917151]  ? kasan_global_oob_right+0x288/0x2d0
[   13.917178]  __asan_report_load1_noabort+0x18/0x20
[   13.917214]  kasan_global_oob_right+0x288/0x2d0
[   13.917236]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.917272]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.917300]  kunit_try_run_case+0x1a6/0x480
[   13.917323]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.917343]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   13.917365]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.917390]  ? __kthread_parkme+0x82/0x160
[   13.917410]  ? preempt_count_sub+0x50/0x80
[   13.917435]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.917462]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.917487]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.917518]  kthread+0x257/0x310
[   13.917537]  ? __pfx_kthread+0x10/0x10
[   13.917555]  ret_from_fork+0x41/0x80
[   13.917576]  ? __pfx_kthread+0x10/0x10
[   13.917594]  ret_from_fork_asm+0x1a/0x30
[   13.917624]  </TASK>
[   13.917635] 
[   13.923443] The buggy address belongs to the variable:
[   13.923634]  global_array+0xd/0x40
[   13.923913] 
[   13.924123] The buggy address belongs to the physical page:
[   13.924326] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x517d0
[   13.924682] flags: 0x100000000002000(reserved|node=0|zone=1)
[   13.924969] raw: 0100000000002000 ffffea000145f408 ffffea000145f408 0000000000000000
[   13.925290] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.925431] page dumped because: kasan: bad access detected
[   13.925529] 
[   13.925659] Memory state around the buggy address:
[   13.926000]  ffffffff87bd0c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.926530]  ffffffff87bd0c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.926735] >ffffffff87bd0d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 02 f9 f9
[   13.927002]                                                           ^
[   13.927505]  ffffffff87bd0d80: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
[   13.927765]  ffffffff87bd0e00: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9
[   13.928020] ==================================================================