Hay
Date
June 16, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.134412] ==================================================================
[   22.134541] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   22.134636] Read of size 1 at addr ffff800080ab7c2a by task kunit_try_catch/258
[   22.134703] 
[   22.134769] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT 
[   22.134904] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.134945] Hardware name: linux,dummy-virt (DT)
[   22.134992] Call trace:
[   22.135028]  show_stack+0x20/0x38 (C)
[   22.135098]  dump_stack_lvl+0x8c/0xd0
[   22.135160]  print_report+0x310/0x608
[   22.135221]  kasan_report+0xdc/0x128
[   22.136169]  __asan_report_load1_noabort+0x20/0x30
[   22.136336]  kasan_stack_oob+0x238/0x270
[   22.136396]  kunit_try_run_case+0x170/0x3f0
[   22.136515]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.136711]  kthread+0x328/0x630
[   22.136953]  ret_from_fork+0x10/0x20
[   22.137163] 
[   22.137451] The buggy address belongs to stack of task kunit_try_catch/258
[   22.137733]  and is located at offset 138 in frame:
[   22.138119]  kasan_stack_oob+0x0/0x270
[   22.138646] 
[   22.138747] This frame has 4 objects:
[   22.139198]  [48, 49) '__assertion'
[   22.139519]  [64, 72) 'array'
[   22.139760]  [96, 112) '__assertion'
[   22.139970]  [128, 138) 'stack_array'
[   22.140138] 
[   22.140311] The buggy address belongs to the virtual mapping at
[   22.140311]  [ffff800080ab0000, ffff800080ab9000) created by:
[   22.140311]  kernel_clone+0x150/0x7a8
[   22.140441] 
[   22.140684] The buggy address belongs to the physical page:
[   22.140738] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065d0
[   22.140941] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.141046] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.141267] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.141511] page dumped because: kasan: bad access detected
[   22.141562] 
[   22.141592] Memory state around the buggy address:
[   22.141642]  ffff800080ab7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.141703]  ffff800080ab7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   22.141759] >ffff800080ab7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   22.141824]                                   ^
[   22.141891]  ffff800080ab7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   22.141949]  ffff800080ab7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   22.142023] ==================================================================

[   13.298805] ==================================================================
[   13.299456] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.300034] Read of size 1 at addr ffff88810394fd02 by task kunit_try_catch/274
[   13.300449] 
[   13.300841] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) 
[   13.300893] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.300904] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.301299] Call Trace:
[   13.301312]  <TASK>
[   13.301328]  dump_stack_lvl+0x73/0xb0
[   13.301359]  print_report+0xd1/0x650
[   13.301382]  ? __virt_addr_valid+0x1db/0x2d0
[   13.301405]  ? kasan_stack_oob+0x2b5/0x300
[   13.301424]  ? kasan_addr_to_slab+0x11/0xa0
[   13.301443]  ? kasan_stack_oob+0x2b5/0x300
[   13.301463]  kasan_report+0x141/0x180
[   13.301483]  ? kasan_stack_oob+0x2b5/0x300
[   13.301507]  __asan_report_load1_noabort+0x18/0x20
[   13.301530]  kasan_stack_oob+0x2b5/0x300
[   13.301549]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.301568]  ? finish_task_switch.isra.0+0x153/0x700
[   13.301590]  ? __switch_to+0x47/0xf50
[   13.301616]  ? __schedule+0x10cc/0x2b60
[   13.301639]  ? __pfx_read_tsc+0x10/0x10
[   13.301661]  ? ktime_get_ts64+0x86/0x230
[   13.301693]  kunit_try_run_case+0x1a5/0x480
[   13.301717]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.301738]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.301760]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.301782]  ? __kthread_parkme+0x82/0x180
[   13.301803]  ? preempt_count_sub+0x50/0x80
[   13.301825]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.301848]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.301871]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.301893]  kthread+0x337/0x6f0
[   13.301913]  ? trace_preempt_on+0x20/0xc0
[   13.301949]  ? __pfx_kthread+0x10/0x10
[   13.301970]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.301990]  ? calculate_sigpending+0x7b/0xa0
[   13.302013]  ? __pfx_kthread+0x10/0x10
[   13.302034]  ret_from_fork+0x116/0x1d0
[   13.302053]  ? __pfx_kthread+0x10/0x10
[   13.302073]  ret_from_fork_asm+0x1a/0x30
[   13.302104]  </TASK>
[   13.302114] 
[   13.312444] The buggy address belongs to stack of task kunit_try_catch/274
[   13.313107]  and is located at offset 138 in frame:
[   13.313339]  kasan_stack_oob+0x0/0x300
[   13.314112] 
[   13.314228] This frame has 4 objects:
[   13.314696]  [48, 49) '__assertion'
[   13.314731]  [64, 72) 'array'
[   13.314895]  [96, 112) '__assertion'
[   13.315035]  [128, 138) 'stack_array'
[   13.315517] 
[   13.315752] The buggy address belongs to the physical page:
[   13.316003] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10394f
[   13.316340] flags: 0x200000000000000(node=0|zone=2)
[   13.316904] raw: 0200000000000000 ffffea00040e53c8 ffffea00040e53c8 0000000000000000
[   13.317317] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.318191] page dumped because: kasan: bad access detected
[   13.318431] 
[   13.318661] Memory state around the buggy address:
[   13.319089]  ffff88810394fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.319524]  ffff88810394fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.320069] >ffff88810394fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.320553]                    ^
[   13.320689]  ffff88810394fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.321186]  ffff88810394fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.321727] ==================================================================