Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.515552] ==================================================================
[   32.515616] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   32.515674] Read of size 1 at addr ffff97f87258f68d by task kunit_try_catch/276
[   32.515727] 
[   32.515765] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   32.516698] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.516778] Hardware name: linux,dummy-virt (DT)
[   32.516836] Call trace:
[   32.516884]  show_stack+0x20/0x38 (C)
[   32.516976]  dump_stack_lvl+0x8c/0xd0
[   32.517052]  print_report+0x310/0x5e8
[   32.517139]  kasan_report+0xdc/0x128
[   32.517315]  __asan_report_load1_noabort+0x20/0x30
[   32.517379]  kasan_global_oob_right+0x230/0x270
[   32.517438]  kunit_try_run_case+0x170/0x3f0
[   32.517828]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.518012]  kthread+0x328/0x630
[   32.518181]  ret_from_fork+0x10/0x20
[   32.518261] 
[   32.518627] The buggy address belongs to the variable:
[   32.519035]  global_array+0xd/0x40
[   32.519184] 
[   32.519300] The buggy address belongs to a 0-page vmalloc region starting at 0xffff97f8706f0000 allocated at paging_init+0x66c/0x7d0
[   32.520798] The buggy address belongs to the physical page:
[   32.521000] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d8f
[   32.521166] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   32.521417] raw: 03fffe0000002000 ffffc1ffc01f63c8 ffffc1ffc01f63c8 0000000000000000
[   32.521650] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   32.521755] page dumped because: kasan: bad access detected
[   32.521787] 
[   32.521852] Memory state around the buggy address:
[   32.522109]  ffff97f87258f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.522294]  ffff97f87258f600: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   32.522387] >ffff97f87258f680: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   32.522798]                       ^
[   32.522954]  ffff97f87258f700: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   32.523057]  ffff97f87258f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.523495] ==================================================================

[   26.865960] ==================================================================
[   26.866727] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   26.867155] Read of size 1 at addr ffffffffad4ca00d by task kunit_try_catch/293
[   26.867551] 
[   26.868038] CPU: 1 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   26.868096] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.868111] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.868135] Call Trace:
[   26.868150]  <TASK>
[   26.868184]  dump_stack_lvl+0x73/0xb0
[   26.868218]  print_report+0xd1/0x640
[   26.868242]  ? __virt_addr_valid+0x1db/0x2d0
[   26.868268]  ? kasan_global_oob_right+0x286/0x2d0
[   26.868290]  ? kasan_addr_to_slab+0x11/0xa0
[   26.868311]  ? kasan_global_oob_right+0x286/0x2d0
[   26.868334]  kasan_report+0x141/0x180
[   26.868357]  ? kasan_global_oob_right+0x286/0x2d0
[   26.868383]  __asan_report_load1_noabort+0x18/0x20
[   26.868408]  kasan_global_oob_right+0x286/0x2d0
[   26.868430]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   26.868456]  ? __schedule+0x10da/0x2b60
[   26.868494]  ? __pfx_read_tsc+0x10/0x10
[   26.868517]  ? ktime_get_ts64+0x86/0x230
[   26.868543]  kunit_try_run_case+0x1a5/0x480
[   26.868570]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.868593]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.868619]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.868645]  ? __kthread_parkme+0x82/0x180
[   26.868667]  ? preempt_count_sub+0x50/0x80
[   26.868691]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.868716]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.868740]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.868764]  kthread+0x337/0x6f0
[   26.868785]  ? trace_preempt_on+0x20/0xc0
[   26.868809]  ? __pfx_kthread+0x10/0x10
[   26.868842]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.868873]  ? calculate_sigpending+0x7b/0xa0
[   26.868897]  ? __pfx_kthread+0x10/0x10
[   26.868918]  ret_from_fork+0x116/0x1d0
[   26.868939]  ? __pfx_kthread+0x10/0x10
[   26.868960]  ret_from_fork_asm+0x1a/0x30
[   26.868991]  </TASK>
[   26.869003] 
[   26.880219] The buggy address belongs to the variable:
[   26.880841]  global_array+0xd/0x40
[   26.881185] 
[   26.881337] The buggy address belongs to the physical page:
[   26.881914] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1c0ca
[   26.882296] flags: 0x100000000002000(reserved|node=0|zone=1)
[   26.882843] raw: 0100000000002000 ffffea0000703288 ffffea0000703288 0000000000000000
[   26.883311] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   26.883770] page dumped because: kasan: bad access detected
[   26.884005] 
[   26.884101] Memory state around the buggy address:
[   26.884559]  ffffffffad4c9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.884863]  ffffffffad4c9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.885336] >ffffffffad4ca000: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   26.885814]                       ^
[   26.886011]  ffffffffad4ca080: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   26.886547]  ffffffffad4ca100: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   26.886975] ==================================================================