Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.044045] ==================================================================
[   19.044138] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   19.044202] Read of size 1 at addr ffff93d69bf4f58d by task kunit_try_catch/245
[   19.044251] 
[   19.044330] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   19.044447] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.044474] Hardware name: linux,dummy-virt (DT)
[   19.044520] Call trace:
[   19.044544]  show_stack+0x20/0x38 (C)
[   19.044642]  dump_stack_lvl+0x8c/0xd0
[   19.044696]  print_report+0x310/0x608
[   19.044743]  kasan_report+0xdc/0x128
[   19.044790]  __asan_report_load1_noabort+0x20/0x30
[   19.044841]  kasan_global_oob_right+0x230/0x270
[   19.044890]  kunit_try_run_case+0x170/0x3f0
[   19.044939]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.045233]  kthread+0x328/0x630
[   19.045383]  ret_from_fork+0x10/0x20
[   19.045446] 
[   19.045498] The buggy address belongs to the variable:
[   19.045529]  global_array+0xd/0x40
[   19.045580] 
[   19.045665] The buggy address belongs to the virtual mapping at
[   19.045665]  [ffff93d69a100000, ffff93d69c001000) created by:
[   19.045665]  paging_init+0x66c/0x7d0
[   19.045757] 
[   19.045816] The buggy address belongs to the physical page:
[   19.045849] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   19.045936] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   19.046006] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   19.046206] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.046369] page dumped because: kasan: bad access detected
[   19.046442] 
[   19.046480] Memory state around the buggy address:
[   19.046514]  ffff93d69bf4f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.046584]  ffff93d69bf4f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   19.046628] >ffff93d69bf4f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   19.046666]                       ^
[   19.046740]  ffff93d69bf4f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   19.046911]  ffff93d69bf4f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.047113] ==================================================================

[   14.258215] ==================================================================
[   14.258935] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.259601] Read of size 1 at addr ffffffffb4263e8d by task kunit_try_catch/262
[   14.260127] 
[   14.260290] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.260334] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.260347] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.260366] Call Trace:
[   14.260379]  <TASK>
[   14.260393]  dump_stack_lvl+0x73/0xb0
[   14.260423]  print_report+0xd1/0x650
[   14.260459]  ? __virt_addr_valid+0x1db/0x2d0
[   14.260483]  ? kasan_global_oob_right+0x286/0x2d0
[   14.260505]  ? kasan_addr_to_slab+0x11/0xa0
[   14.260537]  ? kasan_global_oob_right+0x286/0x2d0
[   14.260560]  kasan_report+0x141/0x180
[   14.260582]  ? kasan_global_oob_right+0x286/0x2d0
[   14.260609]  __asan_report_load1_noabort+0x18/0x20
[   14.260634]  kasan_global_oob_right+0x286/0x2d0
[   14.260657]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.260683]  ? __schedule+0x10cc/0x2b60
[   14.260705]  ? __pfx_read_tsc+0x10/0x10
[   14.260726]  ? ktime_get_ts64+0x86/0x230
[   14.260750]  kunit_try_run_case+0x1a5/0x480
[   14.260774]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.260798]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.260837]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.260862]  ? __kthread_parkme+0x82/0x180
[   14.260883]  ? preempt_count_sub+0x50/0x80
[   14.260907]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.260940]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.260966]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.260991]  kthread+0x337/0x6f0
[   14.261010]  ? trace_preempt_on+0x20/0xc0
[   14.261041]  ? __pfx_kthread+0x10/0x10
[   14.261063]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.261085]  ? calculate_sigpending+0x7b/0xa0
[   14.261110]  ? __pfx_kthread+0x10/0x10
[   14.261132]  ret_from_fork+0x116/0x1d0
[   14.261150]  ? __pfx_kthread+0x10/0x10
[   14.261171]  ret_from_fork_asm+0x1a/0x30
[   14.261200]  </TASK>
[   14.261211] 
[   14.269003] The buggy address belongs to the variable:
[   14.269270]  global_array+0xd/0x40
[   14.269428] 
[   14.269517] The buggy address belongs to the physical page:
[   14.269793] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x30663
[   14.270257] flags: 0x100000000002000(reserved|node=0|zone=1)
[   14.270662] raw: 0100000000002000 ffffea0000c198c8 ffffea0000c198c8 0000000000000000
[   14.271232] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.271562] page dumped because: kasan: bad access detected
[   14.271794] 
[   14.271939] Memory state around the buggy address:
[   14.272163]  ffffffffb4263d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.272480]  ffffffffb4263e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.272801] >ffffffffb4263e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.273193]                       ^
[   14.273344]  ffffffffb4263f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.273560]  ffffffffb4263f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.273901] ==================================================================