Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   25.274251] ==================================================================
[   25.274520] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   25.274660] Read of size 1 at addr ffffa69f515f14ed by task kunit_try_catch/249
[   25.274743] 
[   25.274814] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT 
[   25.275026] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.275082] Hardware name: linux,dummy-virt (DT)
[   25.275123] Call trace:
[   25.275156]  show_stack+0x20/0x38 (C)
[   25.275256]  dump_stack_lvl+0x8c/0xd0
[   25.275321]  print_report+0x310/0x608
[   25.275375]  kasan_report+0xdc/0x128
[   25.275445]  __asan_report_load1_noabort+0x20/0x30
[   25.275571]  kasan_global_oob_right+0x230/0x270
[   25.275636]  kunit_try_run_case+0x170/0x3f0
[   25.275696]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.275759]  kthread+0x328/0x630
[   25.275813]  ret_from_fork+0x10/0x20
[   25.275927] 
[   25.275990] The buggy address belongs to the variable:
[   25.276077]  global_array+0xd/0x40
[   25.276159] 
[   25.276340] The buggy address belongs to the virtual mapping at
[   25.276340]  [ffffa69f4f810000, ffffa69f516a1000) created by:
[   25.276340]  paging_init+0x66c/0x7d0
[   25.276457] 
[   25.276543] The buggy address belongs to the physical page:
[   25.276587] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47bf1
[   25.276653] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   25.276748] raw: 03fffe0000002000 ffffc1ffc01efc48 ffffc1ffc01efc48 0000000000000000
[   25.276807] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   25.276855] page dumped because: kasan: bad access detected
[   25.276917] 
[   25.276938] Memory state around the buggy address:
[   25.276994]  ffffa69f515f1380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.277046]  ffffa69f515f1400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.277095] >ffffa69f515f1480: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9
[   25.277137]                                                           ^
[   25.277186]  ffffa69f515f1500: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
[   25.277235]  ffffa69f515f1580: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[   25.277279] ==================================================================

[   15.724177] ==================================================================
[   15.724502] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   15.724701] Read of size 1 at addr ffffffff9be422ad by task kunit_try_catch/265
[   15.725227] 
[   15.725393] CPU: 1 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT(voluntary) 
[   15.725462] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.725476] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.725500] Call Trace:
[   15.725517]  <TASK>
[   15.725538]  dump_stack_lvl+0x73/0xb0
[   15.725583]  print_report+0xd1/0x650
[   15.725905]  ? __virt_addr_valid+0x1db/0x2d0
[   15.725937]  ? kasan_global_oob_right+0x286/0x2d0
[   15.725961]  ? kasan_addr_to_slab+0x11/0xa0
[   15.725983]  ? kasan_global_oob_right+0x286/0x2d0
[   15.726007]  kasan_report+0x141/0x180
[   15.726030]  ? kasan_global_oob_right+0x286/0x2d0
[   15.726057]  __asan_report_load1_noabort+0x18/0x20
[   15.726078]  kasan_global_oob_right+0x286/0x2d0
[   15.726100]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   15.726125]  ? __schedule+0x10cc/0x2b30
[   15.726148]  ? __pfx_read_tsc+0x10/0x10
[   15.726169]  ? ktime_get_ts64+0x86/0x230
[   15.726198]  kunit_try_run_case+0x1a5/0x480
[   15.726224]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.726246]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.726271]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.726292]  ? __kthread_parkme+0x82/0x180
[   15.726314]  ? preempt_count_sub+0x50/0x80
[   15.726339]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.726360]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.726382]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.726404]  kthread+0x337/0x6f0
[   15.726421]  ? trace_preempt_on+0x20/0xc0
[   15.726445]  ? __pfx_kthread+0x10/0x10
[   15.726463]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.726483]  ? calculate_sigpending+0x7b/0xa0
[   15.726506]  ? __pfx_kthread+0x10/0x10
[   15.726524]  ret_from_fork+0x41/0x80
[   15.726544]  ? __pfx_kthread+0x10/0x10
[   15.726641]  ret_from_fork_asm+0x1a/0x30
[   15.726689]  </TASK>
[   15.726703] 
[   15.734962] The buggy address belongs to the variable:
[   15.735251]  global_array+0xd/0x40
[   15.735475] 
[   15.735602] The buggy address belongs to the physical page:
[   15.736143] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42a42
[   15.736533] flags: 0x100000000002000(reserved|node=0|zone=1)
[   15.736834] raw: 0100000000002000 ffffea00010a9088 ffffea00010a9088 0000000000000000
[   15.737195] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   15.737556] page dumped because: kasan: bad access detected
[   15.737699] 
[   15.737975] Memory state around the buggy address:
[   15.738140]  ffffffff9be42180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.738337]  ffffffff9be42200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.738521] >ffffffff9be42280: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
[   15.739602]                                   ^
[   15.739768]  ffffffff9be42300: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9
[   15.740185]  ffffffff9be42380: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[   15.740393] ==================================================================