Hay
Date
July 18, 2025, 1:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   33.768356] ==================================================================
[   33.768492] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   33.768550] Read of size 1 at addr ffff800080a97c2a by task kunit_try_catch/280
[   33.768611] 
[   33.768647] CPU: 0 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   33.769024] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.769138] Hardware name: linux,dummy-virt (DT)
[   33.769416] Call trace:
[   33.769464]  show_stack+0x20/0x38 (C)
[   33.769537]  dump_stack_lvl+0x8c/0xd0
[   33.769598]  print_report+0x310/0x5e8
[   33.769998]  kasan_report+0xdc/0x128
[   33.770097]  __asan_report_load1_noabort+0x20/0x30
[   33.770152]  kasan_stack_oob+0x238/0x270
[   33.770200]  kunit_try_run_case+0x170/0x3f0
[   33.770359]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.770425]  kthread+0x328/0x630
[   33.770529]  ret_from_fork+0x10/0x20
[   33.770836] 
[   33.771008] The buggy address belongs to stack of task kunit_try_catch/280
[   33.771192]  and is located at offset 138 in frame:
[   33.771238]  kasan_stack_oob+0x0/0x270
[   33.771379] 
[   33.771413] This frame has 4 objects:
[   33.771511]  [48, 49) '__assertion'
[   33.771547]  [64, 72) 'array'
[   33.771729]  [96, 112) '__assertion'
[   33.772026]  [128, 138) 'stack_array'
[   33.772100] 
[   33.772128] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080a90000 allocated at kernel_clone+0x150/0x7b0
[   33.772815] The buggy address belongs to the physical page:
[   33.772927] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a9a
[   33.773024] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.773478] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.773575] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.773655] page dumped because: kasan: bad access detected
[   33.773773] 
[   33.773831] Memory state around the buggy address:
[   33.773892]  ffff800080a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.773988]  ffff800080a97b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   33.774061] >ffff800080a97c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   33.774112]                                   ^
[   33.774158]  ffff800080a97c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   33.774204]  ffff800080a97d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.774253] ==================================================================

[   26.672095] ==================================================================
[   26.672600] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   26.672849] Read of size 1 at addr ffff88810635fd02 by task kunit_try_catch/297
[   26.673068] 
[   26.673154] CPU: 0 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   26.673206] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.673219] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.673242] Call Trace:
[   26.673255]  <TASK>
[   26.673312]  dump_stack_lvl+0x73/0xb0
[   26.673348]  print_report+0xd1/0x640
[   26.673371]  ? __virt_addr_valid+0x1db/0x2d0
[   26.673398]  ? kasan_stack_oob+0x2b5/0x300
[   26.673417]  ? kasan_addr_to_slab+0x11/0xa0
[   26.673466]  ? kasan_stack_oob+0x2b5/0x300
[   26.673486]  kasan_report+0x141/0x180
[   26.673507]  ? kasan_stack_oob+0x2b5/0x300
[   26.673531]  __asan_report_load1_noabort+0x18/0x20
[   26.673555]  kasan_stack_oob+0x2b5/0x300
[   26.673574]  ? __pfx_kasan_stack_oob+0x10/0x10
[   26.673593]  ? finish_task_switch.isra.0+0x153/0x700
[   26.673615]  ? __switch_to+0x47/0xf80
[   26.673643]  ? __schedule+0x10da/0x2b60
[   26.673726]  ? __pfx_read_tsc+0x10/0x10
[   26.673749]  ? ktime_get_ts64+0x86/0x230
[   26.673776]  kunit_try_run_case+0x1a5/0x480
[   26.673815]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.673837]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.673872]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.673905]  ? __kthread_parkme+0x82/0x180
[   26.673926]  ? preempt_count_sub+0x50/0x80
[   26.673948]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.673971]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.673994]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.674016]  kthread+0x337/0x6f0
[   26.674036]  ? trace_preempt_on+0x20/0xc0
[   26.674059]  ? __pfx_kthread+0x10/0x10
[   26.674079]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.674109]  ? calculate_sigpending+0x7b/0xa0
[   26.674171]  ? __pfx_kthread+0x10/0x10
[   26.674192]  ret_from_fork+0x116/0x1d0
[   26.674211]  ? __pfx_kthread+0x10/0x10
[   26.674243]  ret_from_fork_asm+0x1a/0x30
[   26.674303]  </TASK>
[   26.674316] 
[   26.687118] The buggy address belongs to stack of task kunit_try_catch/297
[   26.687786]  and is located at offset 138 in frame:
[   26.688102]  kasan_stack_oob+0x0/0x300
[   26.688442] 
[   26.688538] This frame has 4 objects:
[   26.688738]  [48, 49) '__assertion'
[   26.688764]  [64, 72) 'array'
[   26.688959]  [96, 112) '__assertion'
[   26.689128]  [128, 138) 'stack_array'
[   26.689332] 
[   26.689556] The buggy address belongs to the physical page:
[   26.689800] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10635f
[   26.690091] flags: 0x200000000000000(node=0|zone=2)
[   26.690287] raw: 0200000000000000 ffffea000418d7c8 ffffea000418d7c8 0000000000000000
[   26.690618] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   26.690908] page dumped because: kasan: bad access detected
[   26.691076] 
[   26.691162] Memory state around the buggy address:
[   26.691466]  ffff88810635fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.691786]  ffff88810635fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   26.692096] >ffff88810635fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.692367]                    ^
[   26.692528]  ffff88810635fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   26.692879]  ffff88810635fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.693162] ==================================================================