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

Environment
qemu-arm64
qemu-x86_64

[   31.800222] ==================================================================
[   31.800284] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   31.800338] Read of size 1 at addr ffffad48ba17b70d by task kunit_try_catch/276
[   31.800609] 
[   31.800696] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT 
[   31.800826] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.800911] Hardware name: linux,dummy-virt (DT)
[   31.801001] Call trace:
[   31.801050]  show_stack+0x20/0x38 (C)
[   31.801179]  dump_stack_lvl+0x8c/0xd0
[   31.801228]  print_report+0x310/0x5d0
[   31.801385]  kasan_report+0xdc/0x128
[   31.801433]  __asan_report_load1_noabort+0x20/0x30
[   31.801483]  kasan_global_oob_right+0x230/0x270
[   31.801535]  kunit_try_run_case+0x170/0x3f0
[   31.801584]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.801740]  kthread+0x328/0x630
[   31.801825]  ret_from_fork+0x10/0x20
[   31.801966] 
[   31.802076] The buggy address belongs to the variable:
[   31.802153]  global_array+0xd/0x40
[   31.802217] 
[   31.802296] The buggy address ffffad48ba17b70d belongs to a vmalloc virtual mapping
[   31.802419] The buggy address belongs to the physical page:
[   31.802453] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d7b
[   31.802508] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   31.802577] raw: 03fffe0000002000 ffffc1ffc01f5ec8 ffffc1ffc01f5ec8 0000000000000000
[   31.802772] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   31.802884] page dumped because: kasan: bad access detected
[   31.802934] 
[   31.802954] Memory state around the buggy address:
[   31.802988]  ffffad48ba17b600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.803044]  ffffad48ba17b680: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   31.803194] >ffffad48ba17b700: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   31.803234]                       ^
[   31.803265]  ffffad48ba17b780: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   31.803361]  ffffad48ba17b800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.803499] ==================================================================

[   27.415219] ==================================================================
[   27.416241] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   27.416487] Read of size 1 at addr ffffffff980c4f8d by task kunit_try_catch/294
[   27.416697] 
[   27.416803] CPU: 0 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) 
[   27.416853] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.416864] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.416886] Call Trace:
[   27.416900]  <TASK>
[   27.416915]  dump_stack_lvl+0x73/0xb0
[   27.416946]  print_report+0xd1/0x610
[   27.416970]  ? __virt_addr_valid+0x1db/0x2d0
[   27.416994]  ? kasan_global_oob_right+0x286/0x2d0
[   27.417014]  ? kasan_addr_to_slab+0x11/0xa0
[   27.417035]  ? kasan_global_oob_right+0x286/0x2d0
[   27.417056]  kasan_report+0x141/0x180
[   27.418044]  ? kasan_global_oob_right+0x286/0x2d0
[   27.418104]  __asan_report_load1_noabort+0x18/0x20
[   27.418132]  kasan_global_oob_right+0x286/0x2d0
[   27.418155]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   27.418176]  ? __kasan_check_write+0x18/0x20
[   27.418199]  ? queued_spin_lock_slowpath+0x116/0xb40
[   27.418249]  ? irqentry_exit+0x2a/0x60
[   27.418290]  ? trace_hardirqs_on+0x37/0xe0
[   27.418314]  ? __pfx_read_tsc+0x10/0x10
[   27.418335]  ? ktime_get_ts64+0x86/0x230
[   27.418358]  kunit_try_run_case+0x1a5/0x480
[   27.418382]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.418406]  ? queued_spin_lock_slowpath+0x116/0xb40
[   27.418429]  ? __kthread_parkme+0x82/0x180
[   27.418452]  ? preempt_count_sub+0x50/0x80
[   27.418475]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.418498]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.418520]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.418542]  kthread+0x337/0x6f0
[   27.418561]  ? trace_preempt_on+0x20/0xc0
[   27.418583]  ? __pfx_kthread+0x10/0x10
[   27.418602]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.418623]  ? calculate_sigpending+0x7b/0xa0
[   27.418647]  ? __pfx_kthread+0x10/0x10
[   27.418668]  ret_from_fork+0x116/0x1d0
[   27.418687]  ? __pfx_kthread+0x10/0x10
[   27.418706]  ret_from_fork_asm+0x1a/0x30
[   27.418737]  </TASK>
[   27.418748] 
[   27.433797] The buggy address belongs to the variable:
[   27.434043]  global_array+0xd/0x40
[   27.434211] 
[   27.434386] The buggy address belongs to the physical page:
[   27.434596] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1582c4
[   27.434886] flags: 0x200000000002000(reserved|node=0|zone=2)
[   27.435105] raw: 0200000000002000 ffffea000560b108 ffffea000560b108 0000000000000000
[   27.435345] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   27.435738] page dumped because: kasan: bad access detected
[   27.436229] 
[   27.436315] Memory state around the buggy address:
[   27.436597]  ffffffff980c4e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.436813]  ffffffff980c4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.437025] >ffffffff980c4f80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   27.437320]                       ^
[   27.437539]  ffffffff980c5000: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   27.437849]  ffffffff980c5080: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   27.438175] ==================================================================