Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   28.617106] ==================================================================
[   28.617264] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   28.617419] Read of size 1 at addr ffff800080aa7c2a by task kunit_try_catch/249
[   28.617565] 
[   28.617646] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   28.618166] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.618297] Hardware name: linux,dummy-virt (DT)
[   28.618442] Call trace:
[   28.618503]  show_stack+0x20/0x38 (C)
[   28.618686]  dump_stack_lvl+0x8c/0xd0
[   28.618820]  print_report+0x310/0x608
[   28.619031]  kasan_report+0xdc/0x128
[   28.619462]  __asan_report_load1_noabort+0x20/0x30
[   28.619618]  kasan_stack_oob+0x238/0x270
[   28.620369]  kunit_try_run_case+0x170/0x3f0
[   28.620598]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.620744]  kthread+0x328/0x630
[   28.621023]  ret_from_fork+0x10/0x20
[   28.621177] 
[   28.621310] The buggy address belongs to stack of task kunit_try_catch/249
[   28.621937]  and is located at offset 138 in frame:
[   28.622130]  kasan_stack_oob+0x0/0x270
[   28.622639] 
[   28.622722] This frame has 4 objects:
[   28.622971]  [48, 49) '__assertion'
[   28.623101]  [64, 72) 'array'
[   28.623192]  [96, 112) '__assertion'
[   28.623383]  [128, 138) 'stack_array'
[   28.623518] 
[   28.623599] The buggy address belongs to the virtual mapping at
[   28.623599]  [ffff800080aa0000, ffff800080aa9000) created by:
[   28.623599]  kernel_clone+0x150/0x7a8
[   28.623805] 
[   28.623880] The buggy address belongs to the physical page:
[   28.623975] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107763
[   28.624127] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   28.624811] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   28.624952] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   28.625589] page dumped because: kasan: bad access detected
[   28.625743] 
[   28.625806] Memory state around the buggy address:
[   28.625997]  ffff800080aa7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.626215]  ffff800080aa7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   28.626348] >ffff800080aa7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   28.626474]                                   ^
[   28.626617]  ffff800080aa7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   28.626742]  ffff800080aa7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   28.627044] ==================================================================


[   13.213785] ==================================================================
[   13.214404] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.214630] Read of size 1 at addr ffff888103a87d02 by task kunit_try_catch/266
[   13.214852] 
[   13.214968] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   13.215014] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.215026] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.215048] Call Trace:
[   13.215059]  <TASK>
[   13.215074]  dump_stack_lvl+0x73/0xb0
[   13.215100]  print_report+0xd1/0x650
[   13.215122]  ? __virt_addr_valid+0x1db/0x2d0
[   13.215146]  ? kasan_stack_oob+0x2b5/0x300
[   13.215165]  ? kasan_addr_to_slab+0x11/0xa0
[   13.215185]  ? kasan_stack_oob+0x2b5/0x300
[   13.215206]  kasan_report+0x141/0x180
[   13.215228]  ? kasan_stack_oob+0x2b5/0x300
[   13.215252]  __asan_report_load1_noabort+0x18/0x20
[   13.215276]  kasan_stack_oob+0x2b5/0x300
[   13.215297]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.215317]  ? finish_task_switch.isra.0+0x153/0x700
[   13.215340]  ? __switch_to+0x47/0xf50
[   13.215366]  ? __schedule+0x10cc/0x2b60
[   13.215389]  ? __pfx_read_tsc+0x10/0x10
[   13.215410]  ? ktime_get_ts64+0x86/0x230
[   13.215434]  kunit_try_run_case+0x1a5/0x480
[   13.215456]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.215475]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.215500]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.215525]  ? __kthread_parkme+0x82/0x180
[   13.215544]  ? preempt_count_sub+0x50/0x80
[   13.215567]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.215587]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.215612]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.215942]  kthread+0x337/0x6f0
[   13.215970]  ? trace_preempt_on+0x20/0xc0
[   13.215993]  ? __pfx_kthread+0x10/0x10
[   13.216014]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.216037]  ? calculate_sigpending+0x7b/0xa0
[   13.216061]  ? __pfx_kthread+0x10/0x10
[   13.216082]  ret_from_fork+0x116/0x1d0
[   13.216100]  ? __pfx_kthread+0x10/0x10
[   13.216120]  ret_from_fork_asm+0x1a/0x30
[   13.216150]  </TASK>
[   13.216161] 
[   13.225384] The buggy address belongs to stack of task kunit_try_catch/266
[   13.225771]  and is located at offset 138 in frame:
[   13.226087]  kasan_stack_oob+0x0/0x300
[   13.226376] 
[   13.226471] This frame has 4 objects:
[   13.226714]  [48, 49) '__assertion'
[   13.226737]  [64, 72) 'array'
[   13.226921]  [96, 112) '__assertion'
[   13.227092]  [128, 138) 'stack_array'
[   13.227252] 
[   13.227493] The buggy address belongs to the physical page:
[   13.227816] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a87
[   13.228078] flags: 0x200000000000000(node=0|zone=2)
[   13.228253] raw: 0200000000000000 ffffea00040ea1c8 ffffea00040ea1c8 0000000000000000
[   13.228484] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.228813] page dumped because: kasan: bad access detected
[   13.229226] 
[   13.229318] Memory state around the buggy address:
[   13.229538]  ffff888103a87c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.230072]  ffff888103a87c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.230369] >ffff888103a87d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.230604]                    ^
[   13.230941]  ffff888103a87d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.231342]  ffff888103a87e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.231747] ==================================================================