Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.747070] ==================================================================
[   18.747696] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   18.747786] Read of size 1 at addr ffff800080a17c2a by task kunit_try_catch/249
[   18.748039] 
[   18.748084] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.748526] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.748689] Hardware name: linux,dummy-virt (DT)
[   18.748785] Call trace:
[   18.748820]  show_stack+0x20/0x38 (C)
[   18.749178]  dump_stack_lvl+0x8c/0xd0
[   18.749310]  print_report+0x310/0x608
[   18.749466]  kasan_report+0xdc/0x128
[   18.749599]  __asan_report_load1_noabort+0x20/0x30
[   18.749720]  kasan_stack_oob+0x238/0x270
[   18.750531]  kunit_try_run_case+0x170/0x3f0
[   18.750663]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.750894]  kthread+0x328/0x630
[   18.751235]  ret_from_fork+0x10/0x20
[   18.751366] 
[   18.751507] The buggy address belongs to stack of task kunit_try_catch/249
[   18.751683]  and is located at offset 138 in frame:
[   18.751734]  kasan_stack_oob+0x0/0x270
[   18.752548] 
[   18.752664] This frame has 4 objects:
[   18.752809]  [48, 49) '__assertion'
[   18.753061]  [64, 72) 'array'
[   18.753137]  [96, 112) '__assertion'
[   18.753475]  [128, 138) 'stack_array'
[   18.753681] 
[   18.753747] The buggy address belongs to the virtual mapping at
[   18.753747]  [ffff800080a10000, ffff800080a19000) created by:
[   18.753747]  kernel_clone+0x150/0x7a8
[   18.754299] 
[   18.754411] The buggy address belongs to the physical page:
[   18.754460] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ce9
[   18.754603] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.754867] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.755002] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.755291] page dumped because: kasan: bad access detected
[   18.755410] 
[   18.755471] Memory state around the buggy address:
[   18.755534]  ffff800080a17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.755925]  ffff800080a17b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   18.756067] >ffff800080a17c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   18.756185]                                   ^
[   18.756284]  ffff800080a17c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   18.756411]  ffff800080a17d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.756453] ==================================================================

[   14.346648] ==================================================================
[   14.347305] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.347839] Read of size 1 at addr ffff8881039f7d02 by task kunit_try_catch/266
[   14.348189] 
[   14.348322] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.348380] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.348392] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.348411] Call Trace:
[   14.348424]  <TASK>
[   14.348438]  dump_stack_lvl+0x73/0xb0
[   14.348469]  print_report+0xd1/0x650
[   14.348492]  ? __virt_addr_valid+0x1db/0x2d0
[   14.348514]  ? kasan_stack_oob+0x2b5/0x300
[   14.348534]  ? kasan_addr_to_slab+0x11/0xa0
[   14.348555]  ? kasan_stack_oob+0x2b5/0x300
[   14.348575]  kasan_report+0x141/0x180
[   14.348596]  ? kasan_stack_oob+0x2b5/0x300
[   14.348621]  __asan_report_load1_noabort+0x18/0x20
[   14.348647]  kasan_stack_oob+0x2b5/0x300
[   14.348667]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.348687]  ? finish_task_switch.isra.0+0x153/0x700
[   14.348721]  ? __switch_to+0x47/0xf50
[   14.348748]  ? __schedule+0x10cc/0x2b60
[   14.348770]  ? __pfx_read_tsc+0x10/0x10
[   14.348792]  ? ktime_get_ts64+0x86/0x230
[   14.348815]  kunit_try_run_case+0x1a5/0x480
[   14.348841]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.348864]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.348887]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.348911]  ? __kthread_parkme+0x82/0x180
[   14.348934]  ? preempt_count_sub+0x50/0x80
[   14.348957]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.348981]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.349007]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.349032]  kthread+0x337/0x6f0
[   14.349063]  ? trace_preempt_on+0x20/0xc0
[   14.349087]  ? __pfx_kthread+0x10/0x10
[   14.349107]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.349129]  ? calculate_sigpending+0x7b/0xa0
[   14.349154]  ? __pfx_kthread+0x10/0x10
[   14.349176]  ret_from_fork+0x116/0x1d0
[   14.349194]  ? __pfx_kthread+0x10/0x10
[   14.349216]  ret_from_fork_asm+0x1a/0x30
[   14.349248]  </TASK>
[   14.349258] 
[   14.356005] The buggy address belongs to stack of task kunit_try_catch/266
[   14.356373]  and is located at offset 138 in frame:
[   14.356576]  kasan_stack_oob+0x0/0x300
[   14.356875] 
[   14.356982] This frame has 4 objects:
[   14.357243]  [48, 49) '__assertion'
[   14.357265]  [64, 72) 'array'
[   14.357445]  [96, 112) '__assertion'
[   14.357598]  [128, 138) 'stack_array'
[   14.357779] 
[   14.358034] The buggy address belongs to the physical page:
[   14.358256] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039f7
[   14.358616] flags: 0x200000000000000(node=0|zone=2)
[   14.358850] raw: 0200000000000000 ffffea00040e7dc8 ffffea00040e7dc8 0000000000000000
[   14.359124] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.359383] page dumped because: kasan: bad access detected
[   14.359639] 
[   14.359738] Memory state around the buggy address:
[   14.359959]  ffff8881039f7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.360217]  ffff8881039f7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.360548] >ffff8881039f7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.360868]                    ^
[   14.361034]  ffff8881039f7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.361315]  ffff8881039f7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.361599] ==================================================================