Hay
Date
July 8, 2025, 7:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.499468] ==================================================================
[   21.499531] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   21.499932] Read of size 1 at addr ffff9d16efb4f58d by task kunit_try_catch/245
[   21.500186] 
[   21.500295] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.500477] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.500506] Hardware name: linux,dummy-virt (DT)
[   21.500567] Call trace:
[   21.500590]  show_stack+0x20/0x38 (C)
[   21.500780]  dump_stack_lvl+0x8c/0xd0
[   21.500969]  print_report+0x310/0x608
[   21.501021]  kasan_report+0xdc/0x128
[   21.501504]  __asan_report_load1_noabort+0x20/0x30
[   21.501631]  kasan_global_oob_right+0x230/0x270
[   21.501855]  kunit_try_run_case+0x170/0x3f0
[   21.501932]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.502160]  kthread+0x328/0x630
[   21.502349]  ret_from_fork+0x10/0x20
[   21.502461] 
[   21.502720] The buggy address belongs to the variable:
[   21.502963]  global_array+0xd/0x40
[   21.503206] 
[   21.503986] The buggy address belongs to the virtual mapping at
[   21.503986]  [ffff9d16edd00000, ffff9d16efc01000) created by:
[   21.503986]  paging_init+0x66c/0x7d0
[   21.504208] 
[   21.505144] The buggy address belongs to the physical page:
[   21.505229] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   21.505304] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   21.505380] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   21.505573] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.505660] page dumped because: kasan: bad access detected
[   21.506216] 
[   21.506241] Memory state around the buggy address:
[   21.506425]  ffff9d16efb4f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.506687]  ffff9d16efb4f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   21.507040] >ffff9d16efb4f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   21.507100]                       ^
[   21.507379]  ffff9d16efb4f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   21.507483]  ffff9d16efb4f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.507533] ==================================================================

[   14.780435] ==================================================================
[   14.781848] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.782416] Read of size 1 at addr ffffffff93063e8d by task kunit_try_catch/262
[   14.782950] 
[   14.783232] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.783283] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.783296] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.783318] Call Trace:
[   14.783330]  <TASK>
[   14.783347]  dump_stack_lvl+0x73/0xb0
[   14.783406]  print_report+0xd1/0x650
[   14.783440]  ? __virt_addr_valid+0x1db/0x2d0
[   14.783465]  ? kasan_global_oob_right+0x286/0x2d0
[   14.783485]  ? kasan_addr_to_slab+0x11/0xa0
[   14.783504]  ? kasan_global_oob_right+0x286/0x2d0
[   14.783525]  kasan_report+0x141/0x180
[   14.783547]  ? kasan_global_oob_right+0x286/0x2d0
[   14.783573]  __asan_report_load1_noabort+0x18/0x20
[   14.783597]  kasan_global_oob_right+0x286/0x2d0
[   14.783618]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.783639]  ? __kasan_check_write+0x18/0x20
[   14.783657]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.783680]  ? irqentry_exit+0x2a/0x60
[   14.783704]  ? trace_hardirqs_on+0x37/0xe0
[   14.783727]  ? __pfx_read_tsc+0x10/0x10
[   14.783748]  ? ktime_get_ts64+0x86/0x230
[   14.783771]  kunit_try_run_case+0x1a5/0x480
[   14.783796]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.783819]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.783841]  ? __kthread_parkme+0x82/0x180
[   14.783861]  ? preempt_count_sub+0x50/0x80
[   14.783885]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.783908]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.783930]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.783953]  kthread+0x337/0x6f0
[   14.783972]  ? trace_preempt_on+0x20/0xc0
[   14.783993]  ? __pfx_kthread+0x10/0x10
[   14.784013]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.784034]  ? calculate_sigpending+0x7b/0xa0
[   14.784068]  ? __pfx_kthread+0x10/0x10
[   14.784089]  ret_from_fork+0x116/0x1d0
[   14.784106]  ? __pfx_kthread+0x10/0x10
[   14.784126]  ret_from_fork_asm+0x1a/0x30
[   14.784158]  </TASK>
[   14.784170] 
[   14.796720] The buggy address belongs to the variable:
[   14.797022]  global_array+0xd/0x40
[   14.797421] 
[   14.797579] The buggy address belongs to the physical page:
[   14.797845] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122463
[   14.798309] flags: 0x200000000002000(reserved|node=0|zone=2)
[   14.798613] raw: 0200000000002000 ffffea00048918c8 ffffea00048918c8 0000000000000000
[   14.798954] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.799437] page dumped because: kasan: bad access detected
[   14.799753] 
[   14.799824] Memory state around the buggy address:
[   14.800013]  ffffffff93063d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.800405]  ffffffff93063e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.800743] >ffffffff93063e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.801260]                       ^
[   14.801442]  ffffffff93063f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.801777]  ffffffff93063f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.802275] ==================================================================