Hay
Date
July 16, 2025, 3:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.707404] ==================================================================
[   18.707471] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   18.707545] Read of size 1 at addr ffff98871494f58d by task kunit_try_catch/245
[   18.707597] 
[   18.707635] CPU: 1 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.708026] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.708170] Hardware name: linux,dummy-virt (DT)
[   18.708214] Call trace:
[   18.708240]  show_stack+0x20/0x38 (C)
[   18.708295]  dump_stack_lvl+0x8c/0xd0
[   18.708345]  print_report+0x310/0x5d0
[   18.708394]  kasan_report+0xdc/0x128
[   18.708999]  __asan_report_load1_noabort+0x20/0x30
[   18.709102]  kasan_global_oob_right+0x230/0x270
[   18.709334]  kunit_try_run_case+0x170/0x3f0
[   18.709625]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.709880]  kthread+0x328/0x630
[   18.710055]  ret_from_fork+0x10/0x20
[   18.710200] 
[   18.710435] The buggy address belongs to the variable:
[   18.710645]  global_array+0xd/0x40
[   18.710859] 
[   18.711103] The buggy address ffff98871494f58d belongs to a vmalloc virtual mapping
[   18.711486] The buggy address belongs to the physical page:
[   18.711995] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   18.712072] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   18.712226] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   18.712368] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.712517] page dumped because: kasan: bad access detected
[   18.712791] 
[   18.712969] Memory state around the buggy address:
[   18.713114]  ffff98871494f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.713181]  ffff98871494f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   18.713293] >ffff98871494f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   18.713380]                       ^
[   18.713470]  ffff98871494f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   18.713580]  ffff98871494f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.713672] ==================================================================

[   14.389240] ==================================================================
[   14.389862] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.390286] Read of size 1 at addr ffffffff9a863e8d by task kunit_try_catch/262
[   14.390664] 
[   14.390828] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.390878] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.390891] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.390915] Call Trace:
[   14.390929]  <TASK>
[   14.390946]  dump_stack_lvl+0x73/0xb0
[   14.391036]  print_report+0xd1/0x610
[   14.391065]  ? __virt_addr_valid+0x1db/0x2d0
[   14.391094]  ? kasan_global_oob_right+0x286/0x2d0
[   14.391120]  ? kasan_addr_to_slab+0x11/0xa0
[   14.391142]  ? kasan_global_oob_right+0x286/0x2d0
[   14.391166]  kasan_report+0x141/0x180
[   14.391195]  ? kasan_global_oob_right+0x286/0x2d0
[   14.391223]  __asan_report_load1_noabort+0x18/0x20
[   14.391250]  kasan_global_oob_right+0x286/0x2d0
[   14.391274]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.391301]  ? __schedule+0x10cc/0x2b60
[   14.391327]  ? __pfx_read_tsc+0x10/0x10
[   14.391352]  ? ktime_get_ts64+0x86/0x230
[   14.391379]  kunit_try_run_case+0x1a5/0x480
[   14.391408]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.391433]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.391472]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.391497]  ? __kthread_parkme+0x82/0x180
[   14.391521]  ? preempt_count_sub+0x50/0x80
[   14.391547]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.391573]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.391599]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.391626]  kthread+0x337/0x6f0
[   14.391646]  ? trace_preempt_on+0x20/0xc0
[   14.391672]  ? __pfx_kthread+0x10/0x10
[   14.391694]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.391718]  ? calculate_sigpending+0x7b/0xa0
[   14.391746]  ? __pfx_kthread+0x10/0x10
[   14.391780]  ret_from_fork+0x116/0x1d0
[   14.391799]  ? __pfx_kthread+0x10/0x10
[   14.391821]  ret_from_fork_asm+0x1a/0x30
[   14.391855]  </TASK>
[   14.391865] 
[   14.402887] The buggy address belongs to the variable:
[   14.403266]  global_array+0xd/0x40
[   14.403656] 
[   14.403800] The buggy address belongs to the physical page:
[   14.404319] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12ba63
[   14.404898] flags: 0x200000000002000(reserved|node=0|zone=2)
[   14.405390] raw: 0200000000002000 ffffea0004ae98c8 ffffea0004ae98c8 0000000000000000
[   14.405733] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.406364] page dumped because: kasan: bad access detected
[   14.406727] 
[   14.406840] Memory state around the buggy address:
[   14.407268]  ffffffff9a863d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.407689]  ffffffff9a863e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.408189] >ffffffff9a863e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.408495]                       ^
[   14.408887]  ffffffff9a863f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.409371]  ffffffff9a863f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.409878] ==================================================================