Hay
Date
July 20, 2025, 8:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.355722] ==================================================================
[   17.355784] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270
[   17.355836] Read of size 1 at addr ffff9b2f7954f58d by task kunit_try_catch/246
[   17.355900] 
[   17.355940] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.356021] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.356049] Hardware name: linux,dummy-virt (DT)
[   17.356096] Call trace:
[   17.356133]  show_stack+0x20/0x38 (C)
[   17.356198]  dump_stack_lvl+0x8c/0xd0
[   17.356993]  print_report+0x310/0x5d0
[   17.357042]  kasan_report+0xdc/0x128
[   17.357094]  __asan_report_load1_noabort+0x20/0x30
[   17.357146]  kasan_global_oob_right+0x230/0x270
[   17.357204]  kunit_try_run_case+0x170/0x3f0
[   17.357251]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.357307]  kthread+0x328/0x630
[   17.357348]  ret_from_fork+0x10/0x20
[   17.357409] 
[   17.357465] The buggy address belongs to the variable:
[   17.357498]  global_array+0xd/0x40
[   17.357548] 
[   17.357603] The buggy address ffff9b2f7954f58d belongs to a vmalloc virtual mapping
[   17.357686] The buggy address belongs to the physical page:
[   17.357721] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47d4f
[   17.357774] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff)
[   17.357837] raw: 03fffe0000002000 ffffc1ffc01f53c8 ffffc1ffc01f53c8 0000000000000000
[   17.357886] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.357927] page dumped because: kasan: bad access detected
[   17.357958] 
[   17.357978] Memory state around the buggy address:
[   17.358010]  ffff9b2f7954f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.358053]  ffff9b2f7954f500: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
[   17.358096] >ffff9b2f7954f580: 00 02 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
[   17.358134]                       ^
[   17.358164]  ffff9b2f7954f600: 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
[   17.358217]  ffff9b2f7954f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.358255] ==================================================================

[   14.714890] ==================================================================
[   14.716187] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x286/0x2d0
[   14.716455] Read of size 1 at addr ffffffffad863e8d by task kunit_try_catch/263
[   14.718179] 
[   14.718638] CPU: 1 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.718702] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.718715] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.718738] Call Trace:
[   14.718751]  <TASK>
[   14.718955]  dump_stack_lvl+0x73/0xb0
[   14.719026]  print_report+0xd1/0x610
[   14.719053]  ? __virt_addr_valid+0x1db/0x2d0
[   14.719078]  ? kasan_global_oob_right+0x286/0x2d0
[   14.719125]  ? kasan_addr_to_slab+0x11/0xa0
[   14.719147]  ? kasan_global_oob_right+0x286/0x2d0
[   14.719201]  kasan_report+0x141/0x180
[   14.719225]  ? kasan_global_oob_right+0x286/0x2d0
[   14.719251]  __asan_report_load1_noabort+0x18/0x20
[   14.719277]  kasan_global_oob_right+0x286/0x2d0
[   14.719299]  ? __pfx_kasan_global_oob_right+0x10/0x10
[   14.719323]  ? __schedule+0x10c6/0x2b60
[   14.719346]  ? __pfx_read_tsc+0x10/0x10
[   14.719368]  ? ktime_get_ts64+0x86/0x230
[   14.719394]  kunit_try_run_case+0x1a5/0x480
[   14.719420]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.719443]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.719466]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.719501]  ? __kthread_parkme+0x82/0x180
[   14.719522]  ? preempt_count_sub+0x50/0x80
[   14.719546]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.719571]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.719594]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.719618]  kthread+0x337/0x6f0
[   14.719638]  ? trace_preempt_on+0x20/0xc0
[   14.719661]  ? __pfx_kthread+0x10/0x10
[   14.719684]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.719706]  ? calculate_sigpending+0x7b/0xa0
[   14.719731]  ? __pfx_kthread+0x10/0x10
[   14.719752]  ret_from_fork+0x116/0x1d0
[   14.719789]  ? __pfx_kthread+0x10/0x10
[   14.719810]  ret_from_fork_asm+0x1a/0x30
[   14.719841]  </TASK>
[   14.719852] 
[   14.733306] The buggy address belongs to the variable:
[   14.733889]  global_array+0xd/0x40
[   14.734390] 
[   14.734592] The buggy address belongs to the physical page:
[   14.735230] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2fc63
[   14.735989] flags: 0x100000000002000(reserved|node=0|zone=1)
[   14.736608] raw: 0100000000002000 ffffea0000bf18c8 ffffea0000bf18c8 0000000000000000
[   14.737322] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.738059] page dumped because: kasan: bad access detected
[   14.738508] 
[   14.738581] Memory state around the buggy address:
[   14.738741]  ffffffffad863d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.738981]  ffffffffad863e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.739208] >ffffffffad863e80: 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
[   14.740009]                       ^
[   14.740371]  ffffffffad863f00: 04 f9 f9 f9 f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9
[   14.741080]  ffffffffad863f80: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
[   14.741920] ==================================================================