Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   31.544185] ==================================================================
[   31.544246] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   31.544614] Read of size 1 at addr ffff9ae325efd6cd by task kunit_try_catch/277
[   31.544739] 
[   31.544920] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   31.545006] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.545158] Hardware name: linux,dummy-virt (DT)
[   31.545244] Call trace:
[   31.545276]  show_stack+0x20/0x38 (C)
[   31.545356]  dump_stack_lvl+0x8c/0xd0
[   31.545405]  print_report+0x310/0x5d0
[   31.545448]  kasan_report+0xdc/0x128
[   31.545539]  __asan_report_load1_noabort+0x20/0x30
[   31.545587]  kasan_global_oob_right+0x230/0x270
[   31.545635]  kunit_try_run_case+0x170/0x3f0
[   31.545859]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.545924]  kthread+0x328/0x630
[   31.546203]  ret_from_fork+0x10/0x20
[   31.546374] 
[   31.546574] The buggy address belongs to the variable:
[   31.546606]  global_array+0xd/0x40
[   31.547042] 
[   31.547227] The buggy address ffff9ae325efd6cd belongs to a vmalloc virtual mapping
[   31.547754] The buggy address belongs to the physical page:
[   31.547795] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47cfd
[   31.548087] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   31.548164] raw: 03fffe0000002000 ffffc1ffc01f3f48 ffffc1ffc01f3f48 0000000000000000
[   31.548261] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   31.548356] page dumped because: kasan: bad access detected
[   31.548482] 
[   31.548603] Memory state around the buggy address:
[   31.548693]  ffff9ae325efd580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.549083]  ffff9ae325efd600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.549242] >ffff9ae325efd680: 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9
[   31.549350]                                               ^
[   31.549427]  ffff9ae325efd700: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   31.549472]  ffff9ae325efd780: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   31.549672] ==================================================================

[   25.892328] ==================================================================
[   25.892854] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   25.893210] Read of size 1 at addr ffffffff93eacf4d by task kunit_try_catch/295
[   25.893506] 
[   25.893646] CPU: 0 UID: 0 PID: 295 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   25.893712] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   25.893726] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.893749] Call Trace:
[   25.893763]  <TASK>
[   25.893782]  dump_stack_lvl+0x73/0xb0
[   25.893813]  print_report+0xd1/0x610
[   25.893836]  ? __virt_addr_valid+0x1db/0x2d0
[   25.893861]  ? kasan_global_oob_right+0x286/0x2d0
[   25.893883]  ? kasan_addr_to_slab+0x11/0xa0
[   25.893904]  ? kasan_global_oob_right+0x286/0x2d0
[   25.893926]  kasan_report+0x141/0x180
[   25.894002]  ? kasan_global_oob_right+0x286/0x2d0
[   25.894029]  __asan_report_load1_noabort+0x18/0x20
[   25.894053]  kasan_global_oob_right+0x286/0x2d0
[   25.894074]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   25.894100]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   25.894125]  kunit_try_run_case+0x1a5/0x480
[   25.894149]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.894170]  ? _raw_spin_lock_irqsave+0xf9/0x100
[   25.894194]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.894220]  ? __kthread_parkme+0x82/0x180
[   25.894240]  ? preempt_count_sub+0x50/0x80
[   25.894264]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.894286]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.894310]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.894335]  kthread+0x337/0x6f0
[   25.894354]  ? trace_preempt_on+0x20/0xc0
[   25.894378]  ? __pfx_kthread+0x10/0x10
[   25.894398]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.894420]  ? calculate_sigpending+0x7b/0xa0
[   25.894444]  ? __pfx_kthread+0x10/0x10
[   25.894466]  ret_from_fork+0x116/0x1d0
[   25.894486]  ? __pfx_kthread+0x10/0x10
[   25.894507]  ret_from_fork_asm+0x1a/0x30
[   25.894537]  </TASK>
[   25.894550] 
[   25.901393] The buggy address belongs to the variable:
[   25.901562]  global_array+0xd/0x40
[   25.901788] 
[   25.902016] The buggy address belongs to the physical page:
[   25.902280] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12b6ac
[   25.902613] flags: 0x200000000002000(reserved|node=0|zone=2)
[   25.903113] raw: 0200000000002000 ffffea0004adab08 ffffea0004adab08 0000000000000000
[   25.903445] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   25.903827] page dumped because: kasan: bad access detected
[   25.904142] 
[   25.904215] Memory state around the buggy address:
[   25.904407]  ffffffff93eace00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.904709]  ffffffff93eace80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.905080] >ffffffff93eacf00: 00 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9
[   25.905367]                                               ^
[   25.905595]  ffffffff93eacf80: 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   25.905929]  ffffffff93ead000: 02 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   25.906208] ==================================================================