Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.060041] ==================================================================
[   19.060114] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   19.060406] Read of size 1 at addr ffff800080967c2a by task kunit_try_catch/249
[   19.060477] 
[   19.060729] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.060819] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.060845] Hardware name: linux,dummy-virt (DT)
[   19.061171] Call trace:
[   19.061212]  show_stack+0x20/0x38 (C)
[   19.061404]  dump_stack_lvl+0x8c/0xd0
[   19.061567]  print_report+0x310/0x608
[   19.061665]  kasan_report+0xdc/0x128
[   19.061808]  __asan_report_load1_noabort+0x20/0x30
[   19.061934]  kasan_stack_oob+0x238/0x270
[   19.062101]  kunit_try_run_case+0x170/0x3f0
[   19.062434]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.062552]  kthread+0x328/0x630
[   19.062643]  ret_from_fork+0x10/0x20
[   19.062742] 
[   19.063037] The buggy address belongs to stack of task kunit_try_catch/249
[   19.063312]  and is located at offset 138 in frame:
[   19.063386]  kasan_stack_oob+0x0/0x270
[   19.064159] 
[   19.064312] This frame has 4 objects:
[   19.064980]  [48, 49) '__assertion'
[   19.065193]  [64, 72) 'array'
[   19.065423]  [96, 112) '__assertion'
[   19.065494]  [128, 138) 'stack_array'
[   19.065548] 
[   19.065676] The buggy address belongs to the virtual mapping at
[   19.065676]  [ffff800080960000, ffff800080969000) created by:
[   19.065676]  kernel_clone+0x150/0x7a8
[   19.066015] 
[   19.066069] The buggy address belongs to the physical page:
[   19.066122] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10583f
[   19.066262] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.066345] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.066503] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.066547] page dumped because: kasan: bad access detected
[   19.066580] 
[   19.066984] Memory state around the buggy address:
[   19.067055]  ffff800080967b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.067247]  ffff800080967b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   19.067373] >ffff800080967c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   19.067532]                                   ^
[   19.068009]  ffff800080967c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   19.068208]  ffff800080967d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.068428] ==================================================================

[   13.214918] ==================================================================
[   13.215864] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.216385] Read of size 1 at addr ffff888102b0fd02 by task kunit_try_catch/267
[   13.216954] 
[   13.217217] CPU: 0 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.217399] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.217413] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.217436] Call Trace:
[   13.217449]  <TASK>
[   13.217465]  dump_stack_lvl+0x73/0xb0
[   13.217494]  print_report+0xd1/0x650
[   13.217516]  ? __virt_addr_valid+0x1db/0x2d0
[   13.217540]  ? kasan_stack_oob+0x2b5/0x300
[   13.217559]  ? kasan_addr_to_slab+0x11/0xa0
[   13.217580]  ? kasan_stack_oob+0x2b5/0x300
[   13.217601]  kasan_report+0x141/0x180
[   13.217623]  ? kasan_stack_oob+0x2b5/0x300
[   13.217648]  __asan_report_load1_noabort+0x18/0x20
[   13.217671]  kasan_stack_oob+0x2b5/0x300
[   13.217692]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.217711]  ? finish_task_switch.isra.0+0x153/0x700
[   13.217732]  ? __switch_to+0x47/0xf50
[   13.217757]  ? __schedule+0x10cc/0x2b60
[   13.217779]  ? __pfx_read_tsc+0x10/0x10
[   13.217798]  ? ktime_get_ts64+0x86/0x230
[   13.217821]  kunit_try_run_case+0x1a5/0x480
[   13.217844]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.217867]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.217888]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.217911]  ? __kthread_parkme+0x82/0x180
[   13.217930]  ? preempt_count_sub+0x50/0x80
[   13.217953]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.217976]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.217998]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.218020]  kthread+0x337/0x6f0
[   13.218038]  ? trace_preempt_on+0x20/0xc0
[   13.218062]  ? __pfx_kthread+0x10/0x10
[   13.218082]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.218116]  ? calculate_sigpending+0x7b/0xa0
[   13.218160]  ? __pfx_kthread+0x10/0x10
[   13.218182]  ret_from_fork+0x116/0x1d0
[   13.218200]  ? __pfx_kthread+0x10/0x10
[   13.218221]  ret_from_fork_asm+0x1a/0x30
[   13.218251]  </TASK>
[   13.218261] 
[   13.229629] The buggy address belongs to stack of task kunit_try_catch/267
[   13.230207]  and is located at offset 138 in frame:
[   13.230475]  kasan_stack_oob+0x0/0x300
[   13.231036] 
[   13.231263] This frame has 4 objects:
[   13.231784]  [48, 49) '__assertion'
[   13.231817]  [64, 72) 'array'
[   13.231986]  [96, 112) '__assertion'
[   13.232433]  [128, 138) 'stack_array'
[   13.232630] 
[   13.232971] The buggy address belongs to the physical page:
[   13.233677] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b0f
[   13.234056] flags: 0x200000000000000(node=0|zone=2)
[   13.234290] raw: 0200000000000000 0000000000000000 ffffea00040ac3c8 0000000000000000
[   13.234638] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.234956] page dumped because: kasan: bad access detected
[   13.235216] 
[   13.235305] Memory state around the buggy address:
[   13.235530]  ffff888102b0fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.235799]  ffff888102b0fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.236241] >ffff888102b0fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.236496]                    ^
[   13.236618]  ffff888102b0fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.236940]  ffff888102b0fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.237452] ==================================================================