Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.028930] ==================================================================
[   20.028999] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   20.029059] Read of size 1 at addr ffff977f49c035ad by task kunit_try_catch/247
[   20.029112] 
[   20.029169] CPU: 0 UID: 0 PID: 247 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   20.029273] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.029302] Hardware name: linux,dummy-virt (DT)
[   20.029333] Call trace:
[   20.029353]  show_stack+0x20/0x38 (C)
[   20.029403]  dump_stack_lvl+0x8c/0xd0
[   20.029451]  print_report+0x310/0x5d0
[   20.029496]  kasan_report+0xdc/0x128
[   20.029541]  __asan_report_load1_noabort+0x20/0x30
[   20.029624]  kasan_global_oob_right+0x230/0x270
[   20.030185]  kunit_try_run_case+0x170/0x3f0
[   20.030396]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.030453]  kthread+0x328/0x630
[   20.030821]  ret_from_fork+0x10/0x20
[   20.030977] 
[   20.031116] The buggy address belongs to the variable:
[   20.031293]  global_array+0xd/0x40
[   20.031362] 
[   20.031468] The buggy address ffff977f49c035ad belongs to a vmalloc virtual mapping
[   20.031667] The buggy address belongs to the physical page:
[   20.031723] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47c03
[   20.031789] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   20.031857] raw: 03fffe0000002000 ffffc1ffc01f00c8 ffffc1ffc01f00c8 0000000000000000
[   20.031908] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.031949] page dumped because: kasan: bad access detected
[   20.031982] 
[   20.032000] Memory state around the buggy address:
[   20.032040]  ffff977f49c03480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.032085]  ffff977f49c03500: 00 00 00 00 00 00 00 00 00 00 00 00 02 f9 f9 f9
[   20.032134] >ffff977f49c03580: f9 f9 f9 f9 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
[   20.032174]                                   ^
[   20.032224]  ffff977f49c03600: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9
[   20.032268]  ffff977f49c03680: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
[   20.032307] ==================================================================

[   12.762246] ==================================================================
[   12.762806] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   12.763405] Read of size 1 at addr ffffffff9ba4532d by task kunit_try_catch/264
[   12.763633] 
[   12.763842] CPU: 0 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   12.763900] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.763911] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.763930] Call Trace:
[   12.763941]  <TASK>
[   12.763993]  dump_stack_lvl+0x73/0xb0
[   12.764019]  print_report+0xd1/0x610
[   12.764041]  ? __virt_addr_valid+0x1db/0x2d0
[   12.764073]  ? kasan_global_oob_right+0x286/0x2d0
[   12.764122]  ? kasan_addr_to_slab+0x11/0xa0
[   12.764143]  ? kasan_global_oob_right+0x286/0x2d0
[   12.764164]  kasan_report+0x141/0x180
[   12.764196]  ? kasan_global_oob_right+0x286/0x2d0
[   12.764223]  __asan_report_load1_noabort+0x18/0x20
[   12.764243]  kasan_global_oob_right+0x286/0x2d0
[   12.764264]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   12.764288]  ? __schedule+0x10cc/0x2b60
[   12.764311]  ? __pfx_read_tsc+0x10/0x10
[   12.764330]  ? ktime_get_ts64+0x86/0x230
[   12.764354]  kunit_try_run_case+0x1a5/0x480
[   12.764375]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.764392]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.764415]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.764438]  ? __kthread_parkme+0x82/0x180
[   12.764459]  ? preempt_count_sub+0x50/0x80
[   12.764483]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.764502]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.764525]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.764547]  kthread+0x337/0x6f0
[   12.764563]  ? trace_preempt_on+0x20/0xc0
[   12.764585]  ? __pfx_kthread+0x10/0x10
[   12.764602]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.764623]  ? calculate_sigpending+0x7b/0xa0
[   12.764643]  ? __pfx_kthread+0x10/0x10
[   12.764661]  ret_from_fork+0x41/0x80
[   12.764680]  ? __pfx_kthread+0x10/0x10
[   12.764744]  ret_from_fork_asm+0x1a/0x30
[   12.764777]  </TASK>
[   12.764787] 
[   12.776556] The buggy address belongs to the variable:
[   12.776790]  global_array+0xd/0x40
[   12.777244] 
[   12.777423] The buggy address belongs to the physical page:
[   12.778077] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x135c45
[   12.778892] flags: 0x200000000002000(reserved|node=0|zone=2)
[   12.779217] raw: 0200000000002000 ffffea0004d71148 ffffea0004d71148 0000000000000000
[   12.779448] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.779673] page dumped because: kasan: bad access detected
[   12.779998] 
[   12.780436] Memory state around the buggy address:
[   12.780684]  ffffffff9ba45200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.781147]  ffffffff9ba45280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.781580] >ffffffff9ba45300: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
[   12.781853]                                   ^
[   12.782214]  ffffffff9ba45380: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9
[   12.782460]  ffffffff9ba45400: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[   12.782859] ==================================================================