Hay
Date
June 19, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   33.222513] ==================================================================
[   33.222711] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   33.222867] Read of size 1 at addr ffff800080a17c2a by task kunit_try_catch/260
[   33.223023] 
[   33.223116] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   33.223343] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.223418] Hardware name: linux,dummy-virt (DT)
[   33.223520] Call trace:
[   33.223576]  show_stack+0x20/0x38 (C)
[   33.223728]  dump_stack_lvl+0x8c/0xd0
[   33.223859]  print_report+0x310/0x608
[   33.223987]  kasan_report+0xdc/0x128
[   33.224113]  __asan_report_load1_noabort+0x20/0x30
[   33.224315]  kasan_stack_oob+0x238/0x270
[   33.224446]  kunit_try_run_case+0x170/0x3f0
[   33.224568]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.224697]  kthread+0x328/0x630
[   33.224814]  ret_from_fork+0x10/0x20
[   33.224961] 
[   33.225120] The buggy address belongs to stack of task kunit_try_catch/260
[   33.225358]  and is located at offset 138 in frame:
[   33.225454]  kasan_stack_oob+0x0/0x270
[   33.225758] 
[   33.225842] This frame has 4 objects:
[   33.226049]  [48, 49) '__assertion'
[   33.226149]  [64, 72) 'array'
[   33.226243]  [96, 112) '__assertion'
[   33.226346]  [128, 138) 'stack_array'
[   33.226443] 
[   33.226517] The buggy address belongs to the virtual mapping at
[   33.226517]  [ffff800080a10000, ffff800080a19000) created by:
[   33.226517]  kernel_clone+0x150/0x7a8
[   33.226699] 
[   33.226758] The buggy address belongs to the physical page:
[   33.226939] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107679
[   33.227133] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.227298] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.227433] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.227543] page dumped because: kasan: bad access detected
[   33.227629] 
[   33.227678] Memory state around the buggy address:
[   33.227764]  ffff800080a17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.227888]  ffff800080a17b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   33.228005] >ffff800080a17c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   33.228115]                                   ^
[   33.228196]  ffff800080a17c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   33.228338]  ffff800080a17d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.228444] ==================================================================

[   29.191342] ==================================================================
[   29.192487] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   29.192978] Read of size 1 at addr ffff888103aa7d02 by task kunit_try_catch/278
[   29.193239] 
[   29.193386] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   29.193489] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.193514] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.193769] Call Trace:
[   29.193819]  <TASK>
[   29.193873]  dump_stack_lvl+0x73/0xb0
[   29.193944]  print_report+0xd1/0x650
[   29.194096]  ? __virt_addr_valid+0x1db/0x2d0
[   29.194197]  ? kasan_stack_oob+0x2b5/0x300
[   29.194240]  ? kasan_addr_to_slab+0x11/0xa0
[   29.194279]  ? kasan_stack_oob+0x2b5/0x300
[   29.194316]  kasan_report+0x141/0x180
[   29.194362]  ? kasan_stack_oob+0x2b5/0x300
[   29.194409]  __asan_report_load1_noabort+0x18/0x20
[   29.194502]  kasan_stack_oob+0x2b5/0x300
[   29.194566]  ? __pfx_kasan_stack_oob+0x10/0x10
[   29.194607]  ? finish_task_switch.isra.0+0x153/0x700
[   29.194656]  ? __switch_to+0x47/0xf50
[   29.194748]  ? __schedule+0x10cc/0x2b60
[   29.194817]  ? __pfx_read_tsc+0x10/0x10
[   29.194859]  ? ktime_get_ts64+0x86/0x230
[   29.194910]  kunit_try_run_case+0x1a5/0x480
[   29.194967]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.195097]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   29.195147]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   29.195174]  ? __kthread_parkme+0x82/0x180
[   29.195198]  ? preempt_count_sub+0x50/0x80
[   29.195224]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.195250]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.195277]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   29.195303]  kthread+0x337/0x6f0
[   29.195325]  ? trace_preempt_on+0x20/0xc0
[   29.195351]  ? __pfx_kthread+0x10/0x10
[   29.195375]  ? _raw_spin_unlock_irq+0x47/0x80
[   29.195399]  ? calculate_sigpending+0x7b/0xa0
[   29.195426]  ? __pfx_kthread+0x10/0x10
[   29.195451]  ret_from_fork+0x116/0x1d0
[   29.195473]  ? __pfx_kthread+0x10/0x10
[   29.195496]  ret_from_fork_asm+0x1a/0x30
[   29.195530]  </TASK>
[   29.195545] 
[   29.206506] The buggy address belongs to stack of task kunit_try_catch/278
[   29.207621]  and is located at offset 138 in frame:
[   29.208340]  kasan_stack_oob+0x0/0x300
[   29.208844] 
[   29.209334] This frame has 4 objects:
[   29.209854]  [48, 49) '__assertion'
[   29.209913]  [64, 72) 'array'
[   29.210085]  [96, 112) '__assertion'
[   29.210267]  [128, 138) 'stack_array'
[   29.210506] 
[   29.211182] The buggy address belongs to the physical page:
[   29.211683] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aa7
[   29.212645] flags: 0x200000000000000(node=0|zone=2)
[   29.212917] raw: 0200000000000000 ffffea00040ea9c8 ffffea00040ea9c8 0000000000000000
[   29.213758] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   29.214686] page dumped because: kasan: bad access detected
[   29.215287] 
[   29.215542] Memory state around the buggy address:
[   29.215878]  ffff888103aa7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   29.216579]  ffff888103aa7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   29.216845] >ffff888103aa7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   29.217364]                    ^
[   29.217820]  ffff888103aa7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   29.218690]  ffff888103aa7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.219457] ==================================================================