Hay
Date
July 11, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.969562] ==================================================================
[   18.969876] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   18.969949] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/254
[   18.970320] 
[   18.970518] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.970744] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.971031] Hardware name: linux,dummy-virt (DT)
[   18.971377] Call trace:
[   18.971406]  show_stack+0x20/0x38 (C)
[   18.971590]  dump_stack_lvl+0x8c/0xd0
[   18.971807]  print_report+0x310/0x608
[   18.971998]  kasan_report+0xdc/0x128
[   18.972282]  __asan_report_load1_noabort+0x20/0x30
[   18.972466]  kasan_alloca_oob_right+0x2dc/0x340
[   18.972760]  kunit_try_run_case+0x170/0x3f0
[   18.973130]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.973428]  kthread+0x328/0x630
[   18.973600]  ret_from_fork+0x10/0x20
[   18.973835] 
[   18.973932] The buggy address belongs to stack of task kunit_try_catch/254
[   18.974114] 
[   18.974152] The buggy address belongs to the virtual mapping at
[   18.974152]  [ffff800080a10000, ffff800080a19000) created by:
[   18.974152]  kernel_clone+0x150/0x7a8
[   18.974367] 
[   18.974565] The buggy address belongs to the physical page:
[   18.974745] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058ff
[   18.974875] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.975067] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.975125] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.975167] page dumped because: kasan: bad access detected
[   18.975364] 
[   18.975560] Memory state around the buggy address:
[   18.975750]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.975826]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.976119] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.976294]                                               ^
[   18.976412]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.976691]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.976852] ==================================================================

[   14.263336] ==================================================================
[   14.263939] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.264288] Read of size 1 at addr ffff888103aa7c4a by task kunit_try_catch/270
[   14.264595] 
[   14.264695] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.264739] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.264752] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.264772] Call Trace:
[   14.264784]  <TASK>
[   14.264801]  dump_stack_lvl+0x73/0xb0
[   14.264829]  print_report+0xd1/0x650
[   14.264850]  ? __virt_addr_valid+0x1db/0x2d0
[   14.264873]  ? kasan_alloca_oob_right+0x329/0x390
[   14.264895]  ? kasan_addr_to_slab+0x11/0xa0
[   14.264914]  ? kasan_alloca_oob_right+0x329/0x390
[   14.265345]  kasan_report+0x141/0x180
[   14.265370]  ? kasan_alloca_oob_right+0x329/0x390
[   14.265414]  __asan_report_load1_noabort+0x18/0x20
[   14.265440]  kasan_alloca_oob_right+0x329/0x390
[   14.265462]  ? __kasan_check_write+0x18/0x20
[   14.265483]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.265506]  ? finish_task_switch.isra.0+0x153/0x700
[   14.265530]  ? preempt_schedule_common+0xbe/0x110
[   14.265555]  ? trace_hardirqs_on+0x37/0xe0
[   14.265580]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.265607]  ? __schedule+0x10cc/0x2b60
[   14.265629]  ? __pfx_read_tsc+0x10/0x10
[   14.265650]  ? ktime_get_ts64+0x86/0x230
[   14.265674]  kunit_try_run_case+0x1a5/0x480
[   14.265699]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.265724]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.265770]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.265795]  ? __kthread_parkme+0x82/0x180
[   14.265816]  ? preempt_count_sub+0x50/0x80
[   14.265840]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.265864]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.265890]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.265927]  kthread+0x337/0x6f0
[   14.265948]  ? trace_preempt_on+0x20/0xc0
[   14.265971]  ? __pfx_kthread+0x10/0x10
[   14.265992]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.266032]  ? calculate_sigpending+0x7b/0xa0
[   14.266057]  ? __pfx_kthread+0x10/0x10
[   14.266078]  ret_from_fork+0x116/0x1d0
[   14.266096]  ? __pfx_kthread+0x10/0x10
[   14.266116]  ret_from_fork_asm+0x1a/0x30
[   14.266148]  </TASK>
[   14.266158] 
[   14.278964] The buggy address belongs to stack of task kunit_try_catch/270
[   14.279712] 
[   14.279967] The buggy address belongs to the physical page:
[   14.280437] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aa7
[   14.280943] flags: 0x200000000000000(node=0|zone=2)
[   14.281360] raw: 0200000000000000 ffffea00040ea9c8 ffffea00040ea9c8 0000000000000000
[   14.281868] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.282441] page dumped because: kasan: bad access detected
[   14.282833] 
[   14.283069] Memory state around the buggy address:
[   14.283342]  ffff888103aa7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.283630]  ffff888103aa7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.283964] >ffff888103aa7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.284265]                                               ^
[   14.284508]  ffff888103aa7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.284813]  ffff888103aa7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.285617] ==================================================================