Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.542329] ==================================================================
[   32.542478] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   32.543009] Read of size 1 at addr ffff800080b37c2a by task kunit_try_catch/280
[   32.543354] 
[   32.543426] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   32.543524] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.543564] Hardware name: linux,dummy-virt (DT)
[   32.543598] Call trace:
[   32.543623]  show_stack+0x20/0x38 (C)
[   32.543676]  dump_stack_lvl+0x8c/0xd0
[   32.543863]  print_report+0x310/0x5e8
[   32.543953]  kasan_report+0xdc/0x128
[   32.544117]  __asan_report_load1_noabort+0x20/0x30
[   32.544181]  kasan_stack_oob+0x238/0x270
[   32.544358]  kunit_try_run_case+0x170/0x3f0
[   32.544615]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.544901]  kthread+0x328/0x630
[   32.545185]  ret_from_fork+0x10/0x20
[   32.545479] 
[   32.546330] The buggy address belongs to stack of task kunit_try_catch/280
[   32.546623]  and is located at offset 138 in frame:
[   32.546799]  kasan_stack_oob+0x0/0x270
[   32.547206] 
[   32.547416] This frame has 4 objects:
[   32.547896]  [48, 49) '__assertion'
[   32.548284]  [64, 72) 'array'
[   32.548337]  [96, 112) '__assertion'
[   32.548538]  [128, 138) 'stack_array'
[   32.548596] 
[   32.548900] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080b30000 allocated at kernel_clone+0x150/0x7b0
[   32.549081] The buggy address belongs to the physical page:
[   32.549257] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109253
[   32.549542] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.549659] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   32.549736] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   32.550145] page dumped because: kasan: bad access detected
[   32.550204] 
[   32.550356] Memory state around the buggy address:
[   32.550440]  ffff800080b37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.550708]  ffff800080b37b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   32.550760] >ffff800080b37c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   32.551148]                                   ^
[   32.551206]  ffff800080b37c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   32.551378]  ffff800080b37d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   32.551424] ==================================================================

[   26.896660] ==================================================================
[   26.897296] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   26.897564] Read of size 1 at addr ffff8881062d7d02 by task kunit_try_catch/297
[   26.898051] 
[   26.898159] CPU: 1 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   26.898208] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.898223] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.898243] Call Trace:
[   26.898257]  <TASK>
[   26.898270]  dump_stack_lvl+0x73/0xb0
[   26.898300]  print_report+0xd1/0x640
[   26.898322]  ? __virt_addr_valid+0x1db/0x2d0
[   26.898346]  ? kasan_stack_oob+0x2b5/0x300
[   26.898367]  ? kasan_addr_to_slab+0x11/0xa0
[   26.898388]  ? kasan_stack_oob+0x2b5/0x300
[   26.898409]  kasan_report+0x141/0x180
[   26.898432]  ? kasan_stack_oob+0x2b5/0x300
[   26.898635]  __asan_report_load1_noabort+0x18/0x20
[   26.898671]  kasan_stack_oob+0x2b5/0x300
[   26.898693]  ? __pfx_kasan_stack_oob+0x10/0x10
[   26.898715]  ? __kasan_check_write+0x18/0x20
[   26.898739]  ? queued_spin_lock_slowpath+0x116/0xb40
[   26.898766]  ? irqentry_exit+0x2a/0x60
[   26.898787]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   26.898816]  ? __pfx_read_tsc+0x10/0x10
[   26.898854]  ? ktime_get_ts64+0x86/0x230
[   26.898879]  kunit_try_run_case+0x1a5/0x480
[   26.898905]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.898930]  ? queued_spin_lock_slowpath+0x116/0xb40
[   26.898956]  ? __kthread_parkme+0x82/0x180
[   26.898977]  ? preempt_count_sub+0x50/0x80
[   26.899001]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.899025]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.899050]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.899074]  kthread+0x337/0x6f0
[   26.899094]  ? trace_preempt_on+0x20/0xc0
[   26.899117]  ? __pfx_kthread+0x10/0x10
[   26.899139]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.899174]  ? calculate_sigpending+0x7b/0xa0
[   26.899198]  ? __pfx_kthread+0x10/0x10
[   26.899221]  ret_from_fork+0x116/0x1d0
[   26.899240]  ? __pfx_kthread+0x10/0x10
[   26.899261]  ret_from_fork_asm+0x1a/0x30
[   26.899292]  </TASK>
[   26.899303] 
[   26.911069] The buggy address belongs to stack of task kunit_try_catch/297
[   26.911381]  and is located at offset 138 in frame:
[   26.911746]  kasan_stack_oob+0x0/0x300
[   26.912080] 
[   26.912200] This frame has 4 objects:
[   26.912449]  [48, 49) '__assertion'
[   26.912665]  [64, 72) 'array'
[   26.912818]  [96, 112) '__assertion'
[   26.913013]  [128, 138) 'stack_array'
[   26.913179] 
[   26.913428] The buggy address belongs to the physical page:
[   26.913753] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1062d7
[   26.914115] flags: 0x200000000000000(node=0|zone=2)
[   26.914382] raw: 0200000000000000 ffffea000418b5c8 ffffea000418b5c8 0000000000000000
[   26.914693] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   26.915051] page dumped because: kasan: bad access detected
[   26.915265] 
[   26.915332] Memory state around the buggy address:
[   26.915536]  ffff8881062d7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.915881]  ffff8881062d7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   26.916122] >ffff8881062d7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.916616]                    ^
[   26.916758]  ffff8881062d7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   26.917091]  ffff8881062d7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.917412] ==================================================================