Hay
Date
June 2, 2025, 2:11 p.m.

Environment
e850-96
qemu-x86_64

[   36.849423] ==================================================================
[   36.860083] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   36.867632] Read of size 1 at addr ffff8000879f14ed by task kunit_try_catch/292
[   36.874921] 
[   36.876407] CPU: 6 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   36.876458] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.876477] Hardware name: WinLink E850-96 board (DT)
[   36.876500] Call trace:
[   36.876515]  show_stack+0x20/0x38 (C)
[   36.876551]  dump_stack_lvl+0x8c/0xd0
[   36.876589]  print_report+0x310/0x608
[   36.876620]  kasan_report+0xdc/0x128
[   36.876649]  __asan_report_load1_noabort+0x20/0x30
[   36.876686]  kasan_global_oob_right+0x230/0x270
[   36.876721]  kunit_try_run_case+0x170/0x3f0
[   36.876759]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.876802]  kthread+0x328/0x630
[   36.876836]  ret_from_fork+0x10/0x20
[   36.876874] 
[   36.939589] The buggy address belongs to the variable:
[   36.944711]  global_array+0xd/0x40
[   36.948097] 
[   36.949580] The buggy address belongs to the virtual mapping at
[   36.949580]  [ffff800085c10000, ffff800087aa1000) created by:
[   36.949580]  paging_init+0x66c/0x7d0
[   36.964763] 
[   36.966243] The buggy address belongs to the physical page:
[   36.971800] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x879f1
[   36.979698] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   36.986999] raw: 03fffe0000002000 fffffdffc01e7c48 fffffdffc01e7c48 0000000000000000
[   36.994717] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   37.002436] page dumped because: kasan: bad access detected
[   37.007991] 
[   37.009467] Memory state around the buggy address:
[   37.014247]  ffff8000879f1380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.021450]  ffff8000879f1400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.028655] >ffff8000879f1480: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9
[   37.035856]                                                           ^
[   37.042457]  ffff8000879f1500: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
[   37.049661]  ffff8000879f1580: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[   37.056864] ==================================================================

[   18.760488] ==================================================================
[   18.761178] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   18.762410] Read of size 1 at addr ffffffff946422ad by task kunit_try_catch/266
[   18.763047] 
[   18.763378] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   18.763495] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.763523] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.763571] Call Trace:
[   18.763600]  <TASK>
[   18.763667]  dump_stack_lvl+0x73/0xb0
[   18.763917]  print_report+0xd1/0x650
[   18.764010]  ? __virt_addr_valid+0x1db/0x2d0
[   18.764062]  ? kasan_global_oob_right+0x286/0x2d0
[   18.764181]  ? kasan_addr_to_slab+0x11/0xa0
[   18.764280]  ? kasan_global_oob_right+0x286/0x2d0
[   18.764339]  kasan_report+0x141/0x180
[   18.764391]  ? kasan_global_oob_right+0x286/0x2d0
[   18.764450]  __asan_report_load1_noabort+0x18/0x20
[   18.764502]  kasan_global_oob_right+0x286/0x2d0
[   18.764554]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   18.764612]  ? __schedule+0x10cc/0x2b30
[   18.764666]  ? __pfx_read_tsc+0x10/0x10
[   18.764714]  ? ktime_get_ts64+0x86/0x230
[   18.764787]  kunit_try_run_case+0x1a5/0x480
[   18.764847]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.764897]  ? irqentry_exit+0x2a/0x60
[   18.764949]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.764996]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.765031]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.765055]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.765080]  kthread+0x337/0x6f0
[   18.765125]  ? trace_preempt_on+0x20/0xc0
[   18.765159]  ? __pfx_kthread+0x10/0x10
[   18.765191]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.765220]  ? calculate_sigpending+0x7b/0xa0
[   18.765246]  ? __pfx_kthread+0x10/0x10
[   18.765267]  ret_from_fork+0x41/0x80
[   18.765290]  ? __pfx_kthread+0x10/0x10
[   18.765311]  ret_from_fork_asm+0x1a/0x30
[   18.765345]  </TASK>
[   18.765360] 
[   18.777356] The buggy address belongs to the variable:
[   18.777672]  global_array+0xd/0x40
[   18.778490] 
[   18.778780] The buggy address belongs to the physical page:
[   18.779449] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ac42
[   18.780172] flags: 0x100000000002000(reserved|node=0|zone=1)
[   18.780857] raw: 0100000000002000 ffffea00012b1088 ffffea00012b1088 0000000000000000
[   18.781627] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.782193] page dumped because: kasan: bad access detected
[   18.782802] 
[   18.783005] Memory state around the buggy address:
[   18.783304]  ffffffff94642180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.783600]  ffffffff94642200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.784109] >ffffffff94642280: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
[   18.784587]                                   ^
[   18.785310]  ffffffff94642300: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9
[   18.785965]  ffffffff94642380: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[   18.786624] ==================================================================