Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   17.589939] ==================================================================
[   17.590006] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   17.590573] Read of size 1 at addr ffffab7db974f58d by task kunit_try_catch/245
[   17.591024] 
[   17.591073] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   17.591159] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.591187] Hardware name: linux,dummy-virt (DT)
[   17.591219] Call trace:
[   17.591242]  show_stack+0x20/0x38 (C)
[   17.591292]  dump_stack_lvl+0x8c/0xd0
[   17.591341]  print_report+0x310/0x5d0
[   17.591388]  kasan_report+0xdc/0x128
[   17.591434]  __asan_report_load1_noabort+0x20/0x30
[   17.591486]  kasan_global_oob_right+0x230/0x270
[   17.591533]  kunit_try_run_case+0x170/0x3f0
[   17.591582]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.591636]  kthread+0x328/0x630
[   17.591677]  ret_from_fork+0x10/0x20
[   17.591732] 
[   17.591787] The buggy address belongs to the variable:
[   17.591819]  global_array+0xd/0x40
[   17.591891] 
[   17.592031] The buggy address ffffab7db974f58d belongs to a vmalloc virtual mapping
[   17.592322] The buggy address belongs to the physical page:
[   17.592470] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   17.592550] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   17.592640] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   17.592718] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.592771] page dumped because: kasan: bad access detected
[   17.592812] 
[   17.592829] Memory state around the buggy address:
[   17.592888]  ffffab7db974f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.592959]  ffffab7db974f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   17.593483] >ffffab7db974f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   17.594152]                       ^
[   17.594210]  ffffab7db974f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   17.594359]  ffffab7db974f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.594443] ==================================================================

[   14.347960] ==================================================================
[   14.348767] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.349072] Read of size 1 at addr ffffffff93a63e8d by task kunit_try_catch/262
[   14.349605] 
[   14.349750] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   14.349796] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.349808] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.349844] Call Trace:
[   14.349856]  <TASK>
[   14.349870]  dump_stack_lvl+0x73/0xb0
[   14.349899]  print_report+0xd1/0x610
[   14.349921]  ? __virt_addr_valid+0x1db/0x2d0
[   14.349943]  ? kasan_global_oob_right+0x286/0x2d0
[   14.349964]  ? kasan_addr_to_slab+0x11/0xa0
[   14.349984]  ? kasan_global_oob_right+0x286/0x2d0
[   14.350006]  kasan_report+0x141/0x180
[   14.350028]  ? kasan_global_oob_right+0x286/0x2d0
[   14.350054]  __asan_report_load1_noabort+0x18/0x20
[   14.350078]  kasan_global_oob_right+0x286/0x2d0
[   14.350099]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.350123]  ? __schedule+0x10c6/0x2b60
[   14.350147]  ? __pfx_read_tsc+0x10/0x10
[   14.350167]  ? ktime_get_ts64+0x86/0x230
[   14.350192]  kunit_try_run_case+0x1a5/0x480
[   14.350273]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.350296]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.350319]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.350342]  ? __kthread_parkme+0x82/0x180
[   14.350363]  ? preempt_count_sub+0x50/0x80
[   14.350387]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.350410]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.350434]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.350458]  kthread+0x337/0x6f0
[   14.350478]  ? trace_preempt_on+0x20/0xc0
[   14.350501]  ? __pfx_kthread+0x10/0x10
[   14.350521]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.350543]  ? calculate_sigpending+0x7b/0xa0
[   14.350566]  ? __pfx_kthread+0x10/0x10
[   14.350588]  ret_from_fork+0x116/0x1d0
[   14.350605]  ? __pfx_kthread+0x10/0x10
[   14.350626]  ret_from_fork_asm+0x1a/0x30
[   14.350656]  </TASK>
[   14.350666] 
[   14.358228] The buggy address belongs to the variable:
[   14.358616]  global_array+0xd/0x40
[   14.358837] 
[   14.358949] The buggy address belongs to the physical page:
[   14.359270] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x15aa63
[   14.359594] flags: 0x200000000002000(reserved|node=0|zone=2)
[   14.359795] raw: 0200000000002000 ffffea00056a98c8 ffffea00056a98c8 0000000000000000
[   14.360043] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.360353] page dumped because: kasan: bad access detected
[   14.360649] 
[   14.360743] Memory state around the buggy address:
[   14.360982]  ffffffff93a63d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.361375]  ffffffff93a63e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.361648] >ffffffff93a63e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.361955]                       ^
[   14.362137]  ffffffff93a63f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.362471]  ffffffff93a63f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.362771] ==================================================================