Hay
Date
July 8, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   33.458026] ==================================================================
[   33.458106] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   33.458163] Read of size 1 at addr ffff800080b37b5f by task kunit_try_catch/282
[   33.458230] 
[   33.458881] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   33.458988] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.459175] Hardware name: linux,dummy-virt (DT)
[   33.459238] Call trace:
[   33.459293]  show_stack+0x20/0x38 (C)
[   33.459356]  dump_stack_lvl+0x8c/0xd0
[   33.459430]  print_report+0x310/0x5d0
[   33.459480]  kasan_report+0xdc/0x128
[   33.459540]  __asan_report_load1_noabort+0x20/0x30
[   33.459912]  kasan_alloca_oob_left+0x2b8/0x310
[   33.460103]  kunit_try_run_case+0x170/0x3f0
[   33.460169]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.460413]  kthread+0x328/0x630
[   33.460478]  ret_from_fork+0x10/0x20
[   33.460537] 
[   33.460710] The buggy address belongs to stack of task kunit_try_catch/282
[   33.461117] 
[   33.461167] The buggy address ffff800080b37b5f belongs to a vmalloc virtual mapping
[   33.461289] The buggy address belongs to the physical page:
[   33.461376] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109bc9
[   33.461453] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.461882] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.462087] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.462155] page dumped because: kasan: bad access detected
[   33.462296] 
[   33.462355] Memory state around the buggy address:
[   33.462416]  ffff800080b37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.462474]  ffff800080b37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.462725] >ffff800080b37b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   33.462930]                                                     ^
[   33.463044]  ffff800080b37b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   33.463149]  ffff800080b37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.463192] ==================================================================

[   25.237252] ==================================================================
[   25.237648] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   25.238466] Read of size 1 at addr ffff88810269fc3f by task kunit_try_catch/299
[   25.239467] 
[   25.239768] CPU: 1 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   25.239830] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.239844] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.239869] Call Trace:
[   25.239884]  <TASK>
[   25.239906]  dump_stack_lvl+0x73/0xb0
[   25.239940]  print_report+0xd1/0x610
[   25.239965]  ? __virt_addr_valid+0x1db/0x2d0
[   25.239992]  ? kasan_alloca_oob_left+0x320/0x380
[   25.240015]  ? kasan_addr_to_slab+0x11/0xa0
[   25.240132]  ? kasan_alloca_oob_left+0x320/0x380
[   25.240166]  kasan_report+0x141/0x180
[   25.240191]  ? kasan_alloca_oob_left+0x320/0x380
[   25.240219]  __asan_report_load1_noabort+0x18/0x20
[   25.240293]  kasan_alloca_oob_left+0x320/0x380
[   25.240317]  ? __kasan_check_write+0x18/0x20
[   25.240345]  ? __pfx_sched_clock_cpu+0x10/0x10
[   25.240369]  ? finish_task_switch.isra.0+0x153/0x700
[   25.240395]  ? down_read+0x1de/0x270
[   25.240419]  ? trace_hardirqs_on+0x37/0xe0
[   25.240446]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   25.240471]  ? __schedule+0x10cc/0x2b60
[   25.240500]  ? __pfx_read_tsc+0x10/0x10
[   25.240526]  ? ktime_get_ts64+0x86/0x230
[   25.240554]  kunit_try_run_case+0x1a5/0x480
[   25.240578]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.240599]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.240621]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.240650]  ? __kthread_parkme+0x82/0x180
[   25.240671]  ? preempt_count_sub+0x50/0x80
[   25.240695]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.240717]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.240841]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.240877]  kthread+0x337/0x6f0
[   25.240900]  ? trace_preempt_on+0x20/0xc0
[   25.240924]  ? __pfx_kthread+0x10/0x10
[   25.240947]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.240974]  ? calculate_sigpending+0x7b/0xa0
[   25.241003]  ? __pfx_kthread+0x10/0x10
[   25.241026]  ret_from_fork+0x116/0x1d0
[   25.241047]  ? __pfx_kthread+0x10/0x10
[   25.241069]  ret_from_fork_asm+0x1a/0x30
[   25.241105]  </TASK>
[   25.241117] 
[   25.254539] The buggy address belongs to stack of task kunit_try_catch/299
[   25.254857] 
[   25.255042] The buggy address belongs to the physical page:
[   25.255548] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10269f
[   25.256406] flags: 0x200000000000000(node=0|zone=2)
[   25.256997] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000
[   25.257654] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   25.258437] page dumped because: kasan: bad access detected
[   25.258703] 
[   25.258824] Memory state around the buggy address:
[   25.259264]  ffff88810269fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.259693]  ffff88810269fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.260385] >ffff88810269fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   25.260717]                                         ^
[   25.260920]  ffff88810269fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   25.261602]  ffff88810269fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   25.262352] ==================================================================