Hay
Date
July 6, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.365402] ==================================================================
[   20.365480] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   20.365531] Read of size 1 at addr ffffa45e9274f5cd by task kunit_try_catch/245
[   20.365582] 
[   20.365618] CPU: 1 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.365698] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.365724] Hardware name: linux,dummy-virt (DT)
[   20.365757] Call trace:
[   20.365778]  show_stack+0x20/0x38 (C)
[   20.365826]  dump_stack_lvl+0x8c/0xd0
[   20.365871]  print_report+0x310/0x608
[   20.365918]  kasan_report+0xdc/0x128
[   20.365963]  __asan_report_load1_noabort+0x20/0x30
[   20.366015]  kasan_global_oob_right+0x230/0x270
[   20.366063]  kunit_try_run_case+0x170/0x3f0
[   20.366111]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.366799]  kthread+0x328/0x630
[   20.366887]  ret_from_fork+0x10/0x20
[   20.367295] 
[   20.367780] The buggy address belongs to the variable:
[   20.368014]  global_array+0xd/0x40
[   20.368525] 
[   20.369043] The buggy address belongs to the virtual mapping at
[   20.369043]  [ffffa45e90900000, ffffa45e92801000) created by:
[   20.369043]  paging_init+0x66c/0x7d0
[   20.369357] 
[   20.369717] The buggy address belongs to the physical page:
[   20.369781] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   20.369866] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   20.370420] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   20.370567] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.370801] page dumped because: kasan: bad access detected
[   20.370852] 
[   20.370889] Memory state around the buggy address:
[   20.371276]  ffffa45e9274f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.371473]  ffffa45e9274f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.371619] >ffffa45e9274f580: 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9
[   20.371730]                                               ^
[   20.371766]  ffffa45e9274f600: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   20.371958]  ffffa45e9274f680: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   20.372157] ==================================================================

[   13.412522] ==================================================================
[   13.413527] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   13.413880] Read of size 1 at addr ffffffffb0c61e8d by task kunit_try_catch/262
[   13.414384] 
[   13.415008] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.415060] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.415075] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.415098] Call Trace:
[   13.415116]  <TASK>
[   13.415133]  dump_stack_lvl+0x73/0xb0
[   13.415165]  print_report+0xd1/0x650
[   13.415189]  ? __virt_addr_valid+0x1db/0x2d0
[   13.415214]  ? kasan_global_oob_right+0x286/0x2d0
[   13.415236]  ? kasan_addr_to_slab+0x11/0xa0
[   13.415257]  ? kasan_global_oob_right+0x286/0x2d0
[   13.415278]  kasan_report+0x141/0x180
[   13.415301]  ? kasan_global_oob_right+0x286/0x2d0
[   13.415328]  __asan_report_load1_noabort+0x18/0x20
[   13.415352]  kasan_global_oob_right+0x286/0x2d0
[   13.415374]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.415398]  ? __schedule+0x10cc/0x2b60
[   13.415421]  ? __pfx_read_tsc+0x10/0x10
[   13.415442]  ? ktime_get_ts64+0x86/0x230
[   13.415468]  kunit_try_run_case+0x1a5/0x480
[   13.415493]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.415515]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.415539]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.415562]  ? __kthread_parkme+0x82/0x180
[   13.415583]  ? preempt_count_sub+0x50/0x80
[   13.415651]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.415675]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.415698]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.415722]  kthread+0x337/0x6f0
[   13.415741]  ? trace_preempt_on+0x20/0xc0
[   13.415765]  ? __pfx_kthread+0x10/0x10
[   13.415786]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.415807]  ? calculate_sigpending+0x7b/0xa0
[   13.415831]  ? __pfx_kthread+0x10/0x10
[   13.415853]  ret_from_fork+0x116/0x1d0
[   13.415872]  ? __pfx_kthread+0x10/0x10
[   13.415893]  ret_from_fork_asm+0x1a/0x30
[   13.415924]  </TASK>
[   13.415948] 
[   13.424074] The buggy address belongs to the variable:
[   13.424391]  global_array+0xd/0x40
[   13.424692] 
[   13.424861] The buggy address belongs to the physical page:
[   13.425207] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17e61
[   13.425515] flags: 0x100000000002000(reserved|node=0|zone=1)
[   13.425887] raw: 0100000000002000 ffffea00005f9848 ffffea00005f9848 0000000000000000
[   13.426323] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.426792] page dumped because: kasan: bad access detected
[   13.427054] 
[   13.427151] Memory state around the buggy address:
[   13.427565]  ffffffffb0c61d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.427839]  ffffffffb0c61e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.428081] >ffffffffb0c61e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   13.428425]                       ^
[   13.428810]  ffffffffb0c61f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   13.429186]  ffffffffb0c61f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   13.429560] ==================================================================