Hay
Date
July 19, 2025, 11:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.436967] ==================================================================
[   17.437031] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   17.437083] Read of size 1 at addr ffff9612d814f58d by task kunit_try_catch/245
[   17.437145] 
[   17.437190] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.437281] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.437309] Hardware name: linux,dummy-virt (DT)
[   17.437340] Call trace:
[   17.437364]  show_stack+0x20/0x38 (C)
[   17.437411]  dump_stack_lvl+0x8c/0xd0
[   17.437468]  print_report+0x310/0x5d0
[   17.437515]  kasan_report+0xdc/0x128
[   17.437562]  __asan_report_load1_noabort+0x20/0x30
[   17.437620]  kasan_global_oob_right+0x230/0x270
[   17.437668]  kunit_try_run_case+0x170/0x3f0
[   17.437729]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.437780]  kthread+0x328/0x630
[   17.437824]  ret_from_fork+0x10/0x20
[   17.437877] 
[   17.437924] The buggy address belongs to the variable:
[   17.437964]  global_array+0xd/0x40
[   17.438027] 
[   17.438079] The buggy address ffff9612d814f58d belongs to a vmalloc virtual mapping
[   17.438168] The buggy address belongs to the physical page:
[   17.438202] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   17.438255] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   17.438327] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   17.438379] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.438420] page dumped because: kasan: bad access detected
[   17.438452] 
[   17.438470] Memory state around the buggy address:
[   17.438502]  ffff9612d814f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.438551]  ffff9612d814f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   17.438595] >ffff9612d814f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   17.438633]                       ^
[   17.438672]  ffff9612d814f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   17.439417]  ffff9612d814f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.439637] ==================================================================

[   13.765238] ==================================================================
[   13.766073] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   13.766356] Read of size 1 at addr ffffffff98463e8d by task kunit_try_catch/262
[   13.766903] 
[   13.767049] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.767093] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.767105] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.767125] Call Trace:
[   13.767136]  <TASK>
[   13.767150]  dump_stack_lvl+0x73/0xb0
[   13.767179]  print_report+0xd1/0x610
[   13.767201]  ? __virt_addr_valid+0x1db/0x2d0
[   13.767223]  ? kasan_global_oob_right+0x286/0x2d0
[   13.767243]  ? kasan_addr_to_slab+0x11/0xa0
[   13.767263]  ? kasan_global_oob_right+0x286/0x2d0
[   13.767284]  kasan_report+0x141/0x180
[   13.767305]  ? kasan_global_oob_right+0x286/0x2d0
[   13.767331]  __asan_report_load1_noabort+0x18/0x20
[   13.767353]  kasan_global_oob_right+0x286/0x2d0
[   13.767403]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   13.767427]  ? __schedule+0x10cc/0x2b60
[   13.767449]  ? __pfx_read_tsc+0x10/0x10
[   13.767472]  ? ktime_get_ts64+0x86/0x230
[   13.767497]  kunit_try_run_case+0x1a5/0x480
[   13.767522]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.767543]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.767567]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.767590]  ? __kthread_parkme+0x82/0x180
[   13.767611]  ? preempt_count_sub+0x50/0x80
[   13.767633]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.767657]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.767680]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.767702]  kthread+0x337/0x6f0
[   13.767721]  ? trace_preempt_on+0x20/0xc0
[   13.767744]  ? __pfx_kthread+0x10/0x10
[   13.767764]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.767785]  ? calculate_sigpending+0x7b/0xa0
[   13.767807]  ? __pfx_kthread+0x10/0x10
[   13.767828]  ret_from_fork+0x116/0x1d0
[   13.767847]  ? __pfx_kthread+0x10/0x10
[   13.767867]  ret_from_fork_asm+0x1a/0x30
[   13.767897]  </TASK>
[   13.767908] 
[   13.775785] The buggy address belongs to the variable:
[   13.775977]  global_array+0xd/0x40
[   13.776128] 
[   13.776243] The buggy address belongs to the physical page:
[   13.776553] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x132863
[   13.777025] flags: 0x200000000002000(reserved|node=0|zone=2)
[   13.777269] raw: 0200000000002000 ffffea0004ca18c8 ffffea0004ca18c8 0000000000000000
[   13.777835] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.778093] page dumped because: kasan: bad access detected
[   13.778343] 
[   13.778714] Memory state around the buggy address:
[   13.778942]  ffffffff98463d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.779166]  ffffffff98463e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.779374] >ffffffff98463e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   13.779686]                       ^
[   13.779944]  ffffffff98463f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   13.780278]  ffffffff98463f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   13.780575] ==================================================================