Hay
Date
July 17, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.842181] ==================================================================
[   18.842252] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   18.842370] Read of size 1 at addr ffff99bda574f58d by task kunit_try_catch/245
[   18.842420] 
[   18.842465] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.842546] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.842574] Hardware name: linux,dummy-virt (DT)
[   18.842606] Call trace:
[   18.842628]  show_stack+0x20/0x38 (C)
[   18.842678]  dump_stack_lvl+0x8c/0xd0
[   18.842726]  print_report+0x310/0x5d0
[   18.842773]  kasan_report+0xdc/0x128
[   18.842816]  __asan_report_load1_noabort+0x20/0x30
[   18.842880]  kasan_global_oob_right+0x230/0x270
[   18.843409]  kunit_try_run_case+0x170/0x3f0
[   18.843619]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.843832]  kthread+0x328/0x630
[   18.844015]  ret_from_fork+0x10/0x20
[   18.844346] 
[   18.844696] The buggy address belongs to the variable:
[   18.844931]  global_array+0xd/0x40
[   18.845130] 
[   18.845638] The buggy address ffff99bda574f58d belongs to a vmalloc virtual mapping
[   18.845855] The buggy address belongs to the physical page:
[   18.845932] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   18.845998] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   18.846222] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   18.846427] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.846626] page dumped because: kasan: bad access detected
[   18.846758] 
[   18.847124] Memory state around the buggy address:
[   18.847163]  ffff99bda574f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.847376]  ffff99bda574f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   18.847562] >ffff99bda574f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   18.847641]                       ^
[   18.847672]  ffff99bda574f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   18.848081]  ffff99bda574f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.848213] ==================================================================

[   14.109363] ==================================================================
[   14.109939] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.110451] Read of size 1 at addr ffffffff9e463e8d by task kunit_try_catch/262
[   14.110877] 
[   14.111222] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.111274] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.111299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.111322] Call Trace:
[   14.111334]  <TASK>
[   14.111351]  dump_stack_lvl+0x73/0xb0
[   14.111382]  print_report+0xd1/0x610
[   14.111405]  ? __virt_addr_valid+0x1db/0x2d0
[   14.111428]  ? kasan_global_oob_right+0x286/0x2d0
[   14.111460]  ? kasan_addr_to_slab+0x11/0xa0
[   14.111480]  ? kasan_global_oob_right+0x286/0x2d0
[   14.111502]  kasan_report+0x141/0x180
[   14.111534]  ? kasan_global_oob_right+0x286/0x2d0
[   14.111561]  __asan_report_load1_noabort+0x18/0x20
[   14.111585]  kasan_global_oob_right+0x286/0x2d0
[   14.111617]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.111642]  ? __schedule+0x10cc/0x2b60
[   14.111665]  ? __pfx_read_tsc+0x10/0x10
[   14.111685]  ? ktime_get_ts64+0x86/0x230
[   14.111709]  kunit_try_run_case+0x1a5/0x480
[   14.111735]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.111757]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.111780]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.111803]  ? __kthread_parkme+0x82/0x180
[   14.111840]  ? preempt_count_sub+0x50/0x80
[   14.111864]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.111888]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.111911]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.111934]  kthread+0x337/0x6f0
[   14.111953]  ? trace_preempt_on+0x20/0xc0
[   14.111976]  ? __pfx_kthread+0x10/0x10
[   14.111996]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.112016]  ? calculate_sigpending+0x7b/0xa0
[   14.112041]  ? __pfx_kthread+0x10/0x10
[   14.112072]  ret_from_fork+0x116/0x1d0
[   14.112090]  ? __pfx_kthread+0x10/0x10
[   14.112110]  ret_from_fork_asm+0x1a/0x30
[   14.112142]  </TASK>
[   14.112152] 
[   14.120348] The buggy address belongs to the variable:
[   14.120600]  global_array+0xd/0x40
[   14.120784] 
[   14.120874] The buggy address belongs to the physical page:
[   14.121160] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14b863
[   14.121804] flags: 0x200000000002000(reserved|node=0|zone=2)
[   14.122103] raw: 0200000000002000 ffffea00052e18c8 ffffea00052e18c8 0000000000000000
[   14.122431] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.122961] page dumped because: kasan: bad access detected
[   14.123163] 
[   14.123234] Memory state around the buggy address:
[   14.123429]  ffffffff9e463d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.123774]  ffffffff9e463e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.124000] >ffffffff9e463e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.124333]                       ^
[   14.124535]  ffffffff9e463f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.124906]  ffffffff9e463f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.125231] ==================================================================