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

Environment
qemu-arm64
qemu-x86_64

[   17.746899] ==================================================================
[   17.746969] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   17.747041] Read of size 1 at addr ffffa8482db4f58d by task kunit_try_catch/246
[   17.747094] 
[   17.747135] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.747220] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.747247] Hardware name: linux,dummy-virt (DT)
[   17.747279] Call trace:
[   17.747302]  show_stack+0x20/0x38 (C)
[   17.748871]  dump_stack_lvl+0x8c/0xd0
[   17.749012]  print_report+0x310/0x5d0
[   17.749066]  kasan_report+0xdc/0x128
[   17.749112]  __asan_report_load1_noabort+0x20/0x30
[   17.749335]  kasan_global_oob_right+0x230/0x270
[   17.749383]  kunit_try_run_case+0x170/0x3f0
[   17.749433]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.749488]  kthread+0x328/0x630
[   17.749530]  ret_from_fork+0x10/0x20
[   17.750620] 
[   17.751010] The buggy address belongs to the variable:
[   17.751054]  global_array+0xd/0x40
[   17.751110] 
[   17.751461] The buggy address ffffa8482db4f58d belongs to a vmalloc virtual mapping
[   17.752090] The buggy address belongs to the physical page:
[   17.752132] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   17.752640] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   17.753232] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   17.753292] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.753336] page dumped because: kasan: bad access detected
[   17.753368] 
[   17.753387] Memory state around the buggy address:
[   17.753419]  ffffa8482db4f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.753464]  ffffa8482db4f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   17.753510] >ffffa8482db4f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   17.753548]                       ^
[   17.754525]  ffffa8482db4f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   17.754591]  ffffa8482db4f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.754661] ==================================================================

[   14.849067] ==================================================================
[   14.850519] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.851089] Read of size 1 at addr ffffffffbd263e8d by task kunit_try_catch/262
[   14.851330] 
[   14.851595] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.851641] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.851653] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.851672] Call Trace:
[   14.851685]  <TASK>
[   14.851700]  dump_stack_lvl+0x73/0xb0
[   14.851730]  print_report+0xd1/0x610
[   14.851752]  ? __virt_addr_valid+0x1db/0x2d0
[   14.851777]  ? kasan_global_oob_right+0x286/0x2d0
[   14.851799]  ? kasan_addr_to_slab+0x11/0xa0
[   14.851820]  ? kasan_global_oob_right+0x286/0x2d0
[   14.851843]  kasan_report+0x141/0x180
[   14.851865]  ? kasan_global_oob_right+0x286/0x2d0
[   14.851893]  __asan_report_load1_noabort+0x18/0x20
[   14.851919]  kasan_global_oob_right+0x286/0x2d0
[   14.851942]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.851968]  ? __schedule+0x10cc/0x2b60
[   14.851991]  ? __pfx_read_tsc+0x10/0x10
[   14.852013]  ? ktime_get_ts64+0x86/0x230
[   14.852038]  kunit_try_run_case+0x1a5/0x480
[   14.852069]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.852093]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.852117]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.852142]  ? __kthread_parkme+0x82/0x180
[   14.852164]  ? preempt_count_sub+0x50/0x80
[   14.852189]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.852214]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.852240]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.852266]  kthread+0x337/0x6f0
[   14.852285]  ? trace_preempt_on+0x20/0xc0
[   14.852309]  ? __pfx_kthread+0x10/0x10
[   14.852330]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.852352]  ? calculate_sigpending+0x7b/0xa0
[   14.852377]  ? __pfx_kthread+0x10/0x10
[   14.852399]  ret_from_fork+0x116/0x1d0
[   14.852418]  ? __pfx_kthread+0x10/0x10
[   14.852439]  ret_from_fork_asm+0x1a/0x30
[   14.852471]  </TASK>
[   14.852481] 
[   14.865929] The buggy address belongs to the variable:
[   14.866415]  global_array+0xd/0x40
[   14.866581] 
[   14.866676] The buggy address belongs to the physical page:
[   14.866849] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c463
[   14.867081] flags: 0x100000000002000(reserved|node=0|zone=1)
[   14.867324] raw: 0100000000002000 ffffea0001f118c8 ffffea0001f118c8 0000000000000000
[   14.867580] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.867921] page dumped because: kasan: bad access detected
[   14.868173] 
[   14.868324] Memory state around the buggy address:
[   14.868569]  ffffffffbd263d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.868782]  ffffffffbd263e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.869000] >ffffffffbd263e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.869303]                       ^
[   14.869512]  ffffffffbd263f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.869733]  ffffffffbd263f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.869991] ==================================================================