Hay
Date
June 26, 2025, 9:10 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   51.218682] ==================================================================
[   51.229708] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   51.237295] Read of size 1 at addr ffff8000841d7b5f by task kunit_try_catch/337
[   51.244700] 
[   51.246231] CPU: 6 UID: 0 PID: 337 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   51.246265] Tainted: [B]=BAD_PAGE, [N]=TEST
[   51.246273] Hardware name: Thundercomm Dragonboard 845c (DT)
[   51.246287] Call trace:
[   51.246295]  show_stack+0x20/0x38 (C)
[   51.246313]  dump_stack_lvl+0x8c/0xd0
[   51.246332]  print_report+0x310/0x608
[   51.246351]  kasan_report+0xdc/0x128
[   51.246368]  __asan_report_load1_noabort+0x20/0x30
[   51.246386]  kasan_alloca_oob_left+0x2b8/0x310
[   51.246403]  kunit_try_run_case+0x170/0x3f0
[   51.246422]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   51.246445]  kthread+0x328/0x630
[   51.246458]  ret_from_fork+0x10/0x20
[   51.246476] 
[   51.312391] The buggy address belongs to stack of task kunit_try_catch/337
[   51.319362] 
[   51.320895] The buggy address belongs to the virtual mapping at
[   51.320895]  [ffff8000841d0000, ffff8000841d9000) created by:
[   51.320895]  kernel_clone+0x150/0x7a8
[   51.336358] 
[   51.337884] The buggy address belongs to the physical page:
[   51.343525] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1166e7
[   51.351626] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   51.358248] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   51.366091] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   51.373926] page dumped because: kasan: bad access detected
[   51.379567] 
[   51.381089] Memory state around the buggy address:
[   51.385942]  ffff8000841d7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   51.393259]  ffff8000841d7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   51.400566] >ffff8000841d7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   51.407879]                                                     ^
[   51.414048]  ffff8000841d7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   51.421354]  ffff8000841d7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   51.428668] ==================================================================

[   29.041195] ==================================================================
[   29.041271] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   29.041328] Read of size 1 at addr ffff800080b17b5f by task kunit_try_catch/263
[   29.041618] 
[   29.041660] CPU: 0 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   29.041775] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.041804] Hardware name: linux,dummy-virt (DT)
[   29.041885] Call trace:
[   29.041911]  show_stack+0x20/0x38 (C)
[   29.041962]  dump_stack_lvl+0x8c/0xd0
[   29.042014]  print_report+0x310/0x608
[   29.042195]  kasan_report+0xdc/0x128
[   29.042250]  __asan_report_load1_noabort+0x20/0x30
[   29.042299]  kasan_alloca_oob_left+0x2b8/0x310
[   29.042494]  kunit_try_run_case+0x170/0x3f0
[   29.042613]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.042698]  kthread+0x328/0x630
[   29.042753]  ret_from_fork+0x10/0x20
[   29.042804] 
[   29.042826] The buggy address belongs to stack of task kunit_try_catch/263
[   29.042937] 
[   29.043028] The buggy address belongs to the virtual mapping at
[   29.043028]  [ffff800080b10000, ffff800080b19000) created by:
[   29.043028]  kernel_clone+0x150/0x7a8
[   29.043160] 
[   29.043182] The buggy address belongs to the physical page:
[   29.043239] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105785
[   29.043294] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.043582] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   29.043669] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   29.043748] page dumped because: kasan: bad access detected
[   29.043789] 
[   29.043905] Memory state around the buggy address:
[   29.044042]  ffff800080b17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.044137]  ffff800080b17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.044261] >ffff800080b17b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   29.044436]                                                     ^
[   29.044539]  ffff800080b17b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   29.044585]  ffff800080b17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   29.044801] ==================================================================

[   23.964415] ==================================================================
[   23.964870] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   23.965296] Read of size 1 at addr ffff888103b77c3f by task kunit_try_catch/280
[   23.965594] 
[   23.965697] CPU: 0 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   23.965749] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.965761] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.965787] Call Trace:
[   23.965803]  <TASK>
[   23.965825]  dump_stack_lvl+0x73/0xb0
[   23.965856]  print_report+0xd1/0x650
[   23.965879]  ? __virt_addr_valid+0x1db/0x2d0
[   23.965905]  ? kasan_alloca_oob_left+0x320/0x380
[   23.965926]  ? kasan_addr_to_slab+0x11/0xa0
[   23.965945]  ? kasan_alloca_oob_left+0x320/0x380
[   23.965966]  kasan_report+0x141/0x180
[   23.965988]  ? kasan_alloca_oob_left+0x320/0x380
[   23.966013]  __asan_report_load1_noabort+0x18/0x20
[   23.966170]  kasan_alloca_oob_left+0x320/0x380
[   23.966191]  ? __kasan_check_write+0x18/0x20
[   23.966215]  ? __pfx_sched_clock_cpu+0x10/0x10
[   23.966253]  ? finish_task_switch.isra.0+0x153/0x700
[   23.966277]  ? down_write_killable+0x7e/0x180
[   23.966301]  ? trace_hardirqs_on+0x37/0xe0
[   23.966327]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   23.966350]  ? __schedule+0x10cc/0x2b60
[   23.966375]  ? __pfx_read_tsc+0x10/0x10
[   23.966397]  ? ktime_get_ts64+0x86/0x230
[   23.966423]  kunit_try_run_case+0x1a5/0x480
[   23.966450]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.966472]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.966496]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.966520]  ? __kthread_parkme+0x82/0x180
[   23.966541]  ? preempt_count_sub+0x50/0x80
[   23.966564]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.966586]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.966609]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.966632]  kthread+0x337/0x6f0
[   23.966651]  ? trace_preempt_on+0x20/0xc0
[   23.966673]  ? __pfx_kthread+0x10/0x10
[   23.966692]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.966714]  ? calculate_sigpending+0x7b/0xa0
[   23.966739]  ? __pfx_kthread+0x10/0x10
[   23.966759]  ret_from_fork+0x116/0x1d0
[   23.966778]  ? __pfx_kthread+0x10/0x10
[   23.966851]  ret_from_fork_asm+0x1a/0x30
[   23.966885]  </TASK>
[   23.966897] 
[   23.975778] The buggy address belongs to stack of task kunit_try_catch/280
[   23.976204] 
[   23.976345] The buggy address belongs to the physical page:
[   23.976604] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b77
[   23.977164] flags: 0x200000000000000(node=0|zone=2)
[   23.977416] raw: 0200000000000000 ffffea00040eddc8 ffffea00040eddc8 0000000000000000
[   23.977646] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   23.978159] page dumped because: kasan: bad access detected
[   23.978538] 
[   23.978629] Memory state around the buggy address:
[   23.978898]  ffff888103b77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.979116]  ffff888103b77b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.979336] >ffff888103b77c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   23.979883]                                         ^
[   23.980146]  ffff888103b77c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   23.980521]  ffff888103b77d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   23.980925] ==================================================================