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

Environment
qemu-arm64
qemu-x86_64

[   20.383829] ==================================================================
[   20.384065] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   20.384127] Read of size 1 at addr ffff800080977c2a by task kunit_try_catch/249
[   20.384187] 
[   20.384234] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.384771] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.384803] Hardware name: linux,dummy-virt (DT)
[   20.384836] Call trace:
[   20.384860]  show_stack+0x20/0x38 (C)
[   20.384912]  dump_stack_lvl+0x8c/0xd0
[   20.384962]  print_report+0x310/0x608
[   20.385271]  kasan_report+0xdc/0x128
[   20.385320]  __asan_report_load1_noabort+0x20/0x30
[   20.385967]  kasan_stack_oob+0x238/0x270
[   20.386021]  kunit_try_run_case+0x170/0x3f0
[   20.386096]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.386171]  kthread+0x328/0x630
[   20.386219]  ret_from_fork+0x10/0x20
[   20.386941] 
[   20.387288] The buggy address belongs to stack of task kunit_try_catch/249
[   20.387662]  and is located at offset 138 in frame:
[   20.387706]  kasan_stack_oob+0x0/0x270
[   20.387832] 
[   20.387863] This frame has 4 objects:
[   20.388474]  [48, 49) '__assertion'
[   20.388587]  [64, 72) 'array'
[   20.388661]  [96, 112) '__assertion'
[   20.388713]  [128, 138) 'stack_array'
[   20.388812] 
[   20.388848] The buggy address belongs to the virtual mapping at
[   20.388848]  [ffff800080970000, ffff800080979000) created by:
[   20.388848]  kernel_clone+0x150/0x7a8
[   20.388957] 
[   20.388981] The buggy address belongs to the physical page:
[   20.389016] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103e93
[   20.389071] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.389138] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.389202] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.389244] page dumped because: kasan: bad access detected
[   20.389279] 
[   20.389298] Memory state around the buggy address:
[   20.389331]  ffff800080977b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.389375]  ffff800080977b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   20.389419] >ffff800080977c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   20.389460]                                   ^
[   20.389493]  ffff800080977c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   20.389535]  ffff800080977d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.389575] ==================================================================

[   15.584193] ==================================================================
[   15.585399] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   15.585813] Read of size 1 at addr ffff888103ae7d02 by task kunit_try_catch/267
[   15.586380] 
[   15.586495] CPU: 0 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   15.586550] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.586565] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.586591] Call Trace:
[   15.586608]  <TASK>
[   15.586630]  dump_stack_lvl+0x73/0xb0
[   15.586670]  print_report+0xd1/0x650
[   15.586698]  ? __virt_addr_valid+0x1db/0x2d0
[   15.586729]  ? kasan_stack_oob+0x2b5/0x300
[   15.586752]  ? kasan_addr_to_slab+0x11/0xa0
[   15.586775]  ? kasan_stack_oob+0x2b5/0x300
[   15.586812]  kasan_report+0x141/0x180
[   15.586837]  ? kasan_stack_oob+0x2b5/0x300
[   15.586866]  __asan_report_load1_noabort+0x18/0x20
[   15.586894]  kasan_stack_oob+0x2b5/0x300
[   15.586918]  ? __pfx_kasan_stack_oob+0x10/0x10
[   15.586940]  ? finish_task_switch.isra.0+0x153/0x700
[   15.586967]  ? __switch_to+0x47/0xf50
[   15.586998]  ? __schedule+0x10cc/0x2b60
[   15.587024]  ? __pfx_read_tsc+0x10/0x10
[   15.587049]  ? ktime_get_ts64+0x86/0x230
[   15.587076]  kunit_try_run_case+0x1a5/0x480
[   15.587108]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.587133]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.587161]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.587187]  ? __kthread_parkme+0x82/0x180
[   15.587213]  ? preempt_count_sub+0x50/0x80
[   15.587239]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.587265]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.587292]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.587318]  kthread+0x337/0x6f0
[   15.587340]  ? trace_preempt_on+0x20/0xc0
[   15.587368]  ? __pfx_kthread+0x10/0x10
[   15.587392]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.587417]  ? calculate_sigpending+0x7b/0xa0
[   15.587445]  ? __pfx_kthread+0x10/0x10
[   15.587470]  ret_from_fork+0x116/0x1d0
[   15.587492]  ? __pfx_kthread+0x10/0x10
[   15.587518]  ret_from_fork_asm+0x1a/0x30
[   15.587567]  </TASK>
[   15.587582] 
[   15.598565] The buggy address belongs to stack of task kunit_try_catch/267
[   15.599035]  and is located at offset 138 in frame:
[   15.599732]  kasan_stack_oob+0x0/0x300
[   15.600464] 
[   15.600623] This frame has 4 objects:
[   15.600944]  [48, 49) '__assertion'
[   15.600973]  [64, 72) 'array'
[   15.601122]  [96, 112) '__assertion'
[   15.601265]  [128, 138) 'stack_array'
[   15.601916] 
[   15.603006] The buggy address belongs to the physical page:
[   15.603242] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ae7
[   15.603522] flags: 0x200000000000000(node=0|zone=2)
[   15.603729] raw: 0200000000000000 ffffea00040eb9c8 ffffea00040eb9c8 0000000000000000
[   15.604008] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   15.604260] page dumped because: kasan: bad access detected
[   15.604453] 
[   15.604532] Memory state around the buggy address:
[   15.604708]  ffff888103ae7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.605853]  ffff888103ae7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   15.607415] >ffff888103ae7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.607960]                    ^
[   15.608144]  ffff888103ae7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   15.608466]  ffff888103ae7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.608719] ==================================================================