Hay
Date
May 12, 2025, 6:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.662265] ==================================================================
[   20.662788] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   20.663330] Read of size 1 at addr ffff800080b17c2a by task kunit_try_catch/238
[   20.663574] 
[   20.663732] CPU: 1 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   20.663878] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.663911] Hardware name: linux,dummy-virt (DT)
[   20.663950] Call trace:
[   20.663977]  show_stack+0x20/0x38 (C)
[   20.664038]  dump_stack_lvl+0x8c/0xd0
[   20.664096]  print_report+0x310/0x608
[   20.664181]  kasan_report+0xdc/0x128
[   20.664236]  __asan_report_load1_noabort+0x20/0x30
[   20.664289]  kasan_stack_oob+0x238/0x270
[   20.664341]  kunit_try_run_case+0x170/0x3f0
[   20.664398]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.664457]  kthread+0x318/0x620
[   20.664510]  ret_from_fork+0x10/0x20
[   20.664566] 
[   20.667311] The buggy address belongs to stack of task kunit_try_catch/238
[   20.667769]  and is located at offset 138 in frame:
[   20.667969]  kasan_stack_oob+0x0/0x270
[   20.668489] 
[   20.668621] This frame has 4 objects:
[   20.668913]  [48, 49) '__assertion'
[   20.668987]  [64, 72) 'array'
[   20.669227]  [96, 112) '__assertion'
[   20.669489]  [128, 138) 'stack_array'
[   20.669688] 
[   20.670130] The buggy address belongs to the virtual mapping at
[   20.670130]  [ffff800080b10000, ffff800080b19000) created by:
[   20.670130]  kernel_clone+0x150/0x7a8
[   20.670939] 
[   20.671117] The buggy address belongs to the physical page:
[   20.671367] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10653b
[   20.671803] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.672193] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.672571] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.672947] page dumped because: kasan: bad access detected
[   20.673265] 
[   20.673536] Memory state around the buggy address:
[   20.673817]  ffff800080b17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.674289]  ffff800080b17b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   20.674908] >ffff800080b17c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   20.675187]                                   ^
[   20.675527]  ffff800080b17c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   20.675910]  ffff800080b17d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.676215] ==================================================================

[   14.204060] ==================================================================
[   14.204717] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b7/0x300
[   14.205258] Read of size 1 at addr ffff888102be7d02 by task kunit_try_catch/257
[   14.205584] 
[   14.205971] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   14.206038] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.206069] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.206092] Call Trace:
[   14.206108]  <TASK>
[   14.206128]  dump_stack_lvl+0x73/0xb0
[   14.206210]  print_report+0xd1/0x650
[   14.206251]  ? __virt_addr_valid+0x1db/0x2d0
[   14.206276]  ? kasan_stack_oob+0x2b7/0x300
[   14.206296]  ? kasan_addr_to_slab+0x11/0xa0
[   14.206326]  ? kasan_stack_oob+0x2b7/0x300
[   14.206345]  kasan_report+0x140/0x180
[   14.206367]  ? kasan_stack_oob+0x2b7/0x300
[   14.206404]  __asan_report_load1_noabort+0x18/0x20
[   14.206427]  kasan_stack_oob+0x2b7/0x300
[   14.206447]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.206466]  ? finish_task_switch.isra.0+0x153/0x700
[   14.206493]  ? __switch_to+0x5d9/0xf60
[   14.206521]  ? __schedule+0xce8/0x2840
[   14.206548]  ? __pfx_read_tsc+0x10/0x10
[   14.206570]  ? ktime_get_ts64+0x86/0x230
[   14.206596]  kunit_try_run_case+0x1a6/0x480
[   14.206621]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.206641]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   14.206662]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.206687]  ? __kthread_parkme+0x82/0x160
[   14.206711]  ? preempt_count_sub+0x50/0x80
[   14.206733]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.206757]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.206782]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.206808]  kthread+0x324/0x6e0
[   14.206830]  ? trace_preempt_on+0x20/0xc0
[   14.206864]  ? __pfx_kthread+0x10/0x10
[   14.206887]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.206909]  ? calculate_sigpending+0x7b/0xa0
[   14.206931]  ? __pfx_kthread+0x10/0x10
[   14.206953]  ret_from_fork+0x41/0x80
[   14.206972]  ? __pfx_kthread+0x10/0x10
[   14.206994]  ret_from_fork_asm+0x1a/0x30
[   14.207078]  </TASK>
[   14.207090] 
[   14.216713] The buggy address belongs to stack of task kunit_try_catch/257
[   14.217152]  and is located at offset 138 in frame:
[   14.217461]  kasan_stack_oob+0x0/0x300
[   14.217834] 
[   14.217977] This frame has 4 objects:
[   14.218205]  [48, 49) '__assertion'
[   14.218229]  [64, 72) 'array'
[   14.218357]  [96, 112) '__assertion'
[   14.218531]  [128, 138) 'stack_array'
[   14.218979] 
[   14.219288] The buggy address belongs to the physical page:
[   14.219469] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102be7
[   14.219830] flags: 0x200000000000000(node=0|zone=2)
[   14.220290] raw: 0200000000000000 ffffea00040af9c8 ffffea00040af9c8 0000000000000000
[   14.220691] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.221028] page dumped because: kasan: bad access detected
[   14.221697] 
[   14.221814] Memory state around the buggy address:
[   14.222139]  ffff888102be7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.222449]  ffff888102be7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.222746] >ffff888102be7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.223141]                    ^
[   14.223313]  ffff888102be7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.223629]  ffff888102be7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.223943] ==================================================================