Hay
Date
July 4, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   31.919868] ==================================================================
[   31.920193] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   31.920281] Read of size 1 at addr ffff800080ba7c2a by task kunit_try_catch/282
[   31.920333] 
[   31.920367] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   31.920709] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.920763] Hardware name: linux,dummy-virt (DT)
[   31.920802] Call trace:
[   31.920848]  show_stack+0x20/0x38 (C)
[   31.920922]  dump_stack_lvl+0x8c/0xd0
[   31.921076]  print_report+0x310/0x608
[   31.921173]  kasan_report+0xdc/0x128
[   31.921245]  __asan_report_load1_noabort+0x20/0x30
[   31.921405]  kasan_stack_oob+0x238/0x270
[   31.921452]  kunit_try_run_case+0x170/0x3f0
[   31.921503]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.921568]  kthread+0x328/0x630
[   31.921673]  ret_from_fork+0x10/0x20
[   31.921773] 
[   31.921842] The buggy address belongs to stack of task kunit_try_catch/282
[   31.922465]  and is located at offset 138 in frame:
[   31.922554]  kasan_stack_oob+0x0/0x270
[   31.922709] 
[   31.922753] This frame has 4 objects:
[   31.922985]  [48, 49) '__assertion'
[   31.923036]  [64, 72) 'array'
[   31.923201]  [96, 112) '__assertion'
[   31.923302]  [128, 138) 'stack_array'
[   31.923364] 
[   31.923407] The buggy address belongs to the virtual mapping at
[   31.923407]  [ffff800080ba0000, ffff800080ba9000) created by:
[   31.923407]  kernel_clone+0x150/0x7a8
[   31.923541] 
[   31.923613] The buggy address belongs to the physical page:
[   31.923654] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ac4
[   31.923853] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.925090] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   31.925152] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   31.925691] page dumped because: kasan: bad access detected
[   31.925736] 
[   31.925758] Memory state around the buggy address:
[   31.925794]  ffff800080ba7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.926181]  ffff800080ba7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   31.926235] >ffff800080ba7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   31.926276]                                   ^
[   31.926667]  ffff800080ba7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   31.926716]  ffff800080ba7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   31.927102] ==================================================================

[   26.915382] ==================================================================
[   26.917010] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   26.917748] Read of size 1 at addr ffff88810612fd02 by task kunit_try_catch/298
[   26.918487] 
[   26.918684] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   26.918746] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.918761] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.918788] Call Trace:
[   26.918804]  <TASK>
[   26.918825]  dump_stack_lvl+0x73/0xb0
[   26.918857]  print_report+0xd1/0x650
[   26.918882]  ? __virt_addr_valid+0x1db/0x2d0
[   26.918910]  ? kasan_stack_oob+0x2b5/0x300
[   26.918936]  ? kasan_addr_to_slab+0x11/0xa0
[   26.918964]  ? kasan_stack_oob+0x2b5/0x300
[   26.918990]  kasan_report+0x141/0x180
[   26.919014]  ? kasan_stack_oob+0x2b5/0x300
[   26.919044]  __asan_report_load1_noabort+0x18/0x20
[   26.919071]  kasan_stack_oob+0x2b5/0x300
[   26.919097]  ? __pfx_kasan_stack_oob+0x10/0x10
[   26.919122]  ? finish_task_switch.isra.0+0x153/0x700
[   26.919148]  ? __switch_to+0x47/0xf50
[   26.919178]  ? __schedule+0x10cc/0x2b60
[   26.919204]  ? __pfx_read_tsc+0x10/0x10
[   26.919229]  ? ktime_get_ts64+0x86/0x230
[   26.919257]  kunit_try_run_case+0x1a5/0x480
[   26.919304]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.919329]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.919355]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.919383]  ? __kthread_parkme+0x82/0x180
[   26.919418]  ? preempt_count_sub+0x50/0x80
[   26.919443]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.919470]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.919498]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.919525]  kthread+0x337/0x6f0
[   26.919547]  ? trace_preempt_on+0x20/0xc0
[   26.919574]  ? __pfx_kthread+0x10/0x10
[   26.919597]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.919623]  ? calculate_sigpending+0x7b/0xa0
[   26.919649]  ? __pfx_kthread+0x10/0x10
[   26.919673]  ret_from_fork+0x116/0x1d0
[   26.919694]  ? __pfx_kthread+0x10/0x10
[   26.919717]  ret_from_fork_asm+0x1a/0x30
[   26.919750]  </TASK>
[   26.919765] 
[   26.934685] The buggy address belongs to stack of task kunit_try_catch/298
[   26.935120]  and is located at offset 138 in frame:
[   26.935288]  kasan_stack_oob+0x0/0x300
[   26.935695] 
[   26.935788] This frame has 4 objects:
[   26.936092]  [48, 49) '__assertion'
[   26.936117]  [64, 72) 'array'
[   26.936362]  [96, 112) '__assertion'
[   26.936592]  [128, 138) 'stack_array'
[   26.936891] 
[   26.937197] The buggy address belongs to the physical page:
[   26.937461] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10612f
[   26.937724] flags: 0x200000000000000(node=0|zone=2)
[   26.937907] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000
[   26.939027] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   26.939829] page dumped because: kasan: bad access detected
[   26.940681] 
[   26.940978] Memory state around the buggy address:
[   26.941501]  ffff88810612fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.942014]  ffff88810612fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   26.942235] >ffff88810612fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   26.942453]                    ^
[   26.942849]  ffff88810612fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   26.943574]  ffff88810612fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.944405] ==================================================================