Hay
Date
July 17, 2025, 10:12 a.m.

Environment
qemu-arm64
qemu-x86_64

[   31.814917] ==================================================================
[   31.814994] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   31.815091] Read of size 1 at addr ffff800080bf7c2a by task kunit_try_catch/280
[   31.815172] 
[   31.815205] CPU: 0 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT 
[   31.815303] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.815360] Hardware name: linux,dummy-virt (DT)
[   31.815394] Call trace:
[   31.815420]  show_stack+0x20/0x38 (C)
[   31.815473]  dump_stack_lvl+0x8c/0xd0
[   31.815615]  print_report+0x310/0x5d0
[   31.815666]  kasan_report+0xdc/0x128
[   31.815712]  __asan_report_load1_noabort+0x20/0x30
[   31.815790]  kasan_stack_oob+0x238/0x270
[   31.815865]  kunit_try_run_case+0x170/0x3f0
[   31.815930]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.816002]  kthread+0x328/0x630
[   31.816045]  ret_from_fork+0x10/0x20
[   31.816153] 
[   31.816244] The buggy address belongs to stack of task kunit_try_catch/280
[   31.816401]  and is located at offset 138 in frame:
[   31.816450]  kasan_stack_oob+0x0/0x270
[   31.816733] 
[   31.816766] This frame has 4 objects:
[   31.816853]  [48, 49) '__assertion'
[   31.817181]  [64, 72) 'array'
[   31.817223]  [96, 112) '__assertion'
[   31.817375]  [128, 138) 'stack_array'
[   31.817527] 
[   31.817579] The buggy address ffff800080bf7c2a belongs to a vmalloc virtual mapping
[   31.817627] The buggy address belongs to the physical page:
[   31.817684] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b35
[   31.817856] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.817920] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   31.818038] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   31.818189] page dumped because: kasan: bad access detected
[   31.818671]                                   ^
[   31.823526] 
[   31.823701] Call trace:
[   31.825223] The buggy address belongs to the physical page:
[   31.826131]                                                     ^
[   31.832461] Read of size 1 at addr ffff800080c17b4a by task kunit_try_catch/284
[   31.833812]  kthread+0x328/0x630
[   31.835301] 
[   31.835559]                                               ^
[   31.851660] ==================================================================

[   27.445413] ==================================================================
[   27.446009] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   27.446257] Read of size 1 at addr ffff8881061e7d02 by task kunit_try_catch/298
[   27.447518] 
[   27.447929] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) 
[   27.447990] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.448138] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.448165] Call Trace:
[   27.448178]  <TASK>
[   27.448195]  dump_stack_lvl+0x73/0xb0
[   27.448228]  print_report+0xd1/0x610
[   27.448402]  ? __virt_addr_valid+0x1db/0x2d0
[   27.448427]  ? kasan_stack_oob+0x2b5/0x300
[   27.448448]  ? kasan_addr_to_slab+0x11/0xa0
[   27.448467]  ? kasan_stack_oob+0x2b5/0x300
[   27.448487]  kasan_report+0x141/0x180
[   27.448509]  ? kasan_stack_oob+0x2b5/0x300
[   27.448534]  __asan_report_load1_noabort+0x18/0x20
[   27.448557]  kasan_stack_oob+0x2b5/0x300
[   27.448577]  ? __pfx_kasan_stack_oob+0x10/0x10
[   27.448595]  ? finish_task_switch.isra.0+0x153/0x700
[   27.448616]  ? __switch_to+0x47/0xf80
[   27.448643]  ? __schedule+0x10c6/0x2b60
[   27.448666]  ? __pfx_read_tsc+0x10/0x10
[   27.448686]  ? ktime_get_ts64+0x86/0x230
[   27.448710]  kunit_try_run_case+0x1a5/0x480
[   27.448732]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.448754]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.448775]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.448798]  ? __kthread_parkme+0x82/0x180
[   27.448822]  ? preempt_count_sub+0x50/0x80
[   27.448844]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.448867]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.448889]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.448912]  kthread+0x337/0x6f0
[   27.448931]  ? trace_preempt_on+0x20/0xc0
[   27.448953]  ? __pfx_kthread+0x10/0x10
[   27.448973]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.448994]  ? calculate_sigpending+0x7b/0xa0
[   27.449016]  ? __pfx_kthread+0x10/0x10
[   27.449037]  ret_from_fork+0x116/0x1d0
[   27.449055]  ? __pfx_kthread+0x10/0x10
[   27.449091]  ret_from_fork_asm+0x1a/0x30
[   27.449123]  </TASK>
[   27.449133] 
[   27.461636] The buggy address belongs to stack of task kunit_try_catch/298
[   27.462016]  and is located at offset 138 in frame:
[   27.462500]  kasan_stack_oob+0x0/0x300
[   27.463028] 
[   27.463314] This frame has 4 objects:
[   27.463891]  [48, 49) '__assertion'
[   27.463924]  [64, 72) 'array'
[   27.464111]  [96, 112) '__assertion'
[   27.464395]  [128, 138) 'stack_array'
[   27.464754] 
[   27.465178] The buggy address belongs to the physical page:
[   27.465563] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061e7
[   27.465864] flags: 0x200000000000000(node=0|zone=2)
[   27.466255] raw: 0200000000000000 ffffea00041879c8 ffffea00041879c8 0000000000000000
[   27.466752] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   27.467145] page dumped because: kasan: bad access detected
[   27.467513] 
[   27.467600] Memory state around the buggy address:
[   27.467776]  ffff8881061e7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.468092]  ffff8881061e7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   27.468813] >ffff8881061e7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.469194]                    ^
[   27.469318]  ffff8881061e7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   27.469918]  ffff8881061e7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.470515] ==================================================================