Hay
Date
July 5, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   21.840638] ==================================================================
[   21.840795] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   21.840905] Read of size 1 at addr ffff800080aa7c2a by task kunit_try_catch/250
[   21.841008] 
[   21.841263] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.841481] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.841545] Hardware name: linux,dummy-virt (DT)
[   21.841611] Call trace:
[   21.841660]  show_stack+0x20/0x38 (C)
[   21.841771]  dump_stack_lvl+0x8c/0xd0
[   21.841959]  print_report+0x310/0x608
[   21.842341]  kasan_report+0xdc/0x128
[   21.842488]  __asan_report_load1_noabort+0x20/0x30
[   21.842595]  kasan_stack_oob+0x238/0x270
[   21.842702]  kunit_try_run_case+0x170/0x3f0
[   21.842802]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.842911]  kthread+0x328/0x630
[   21.843002]  ret_from_fork+0x10/0x20
[   21.843370] 
[   21.843506] The buggy address belongs to stack of task kunit_try_catch/250
[   21.844085]  and is located at offset 138 in frame:
[   21.844208]  kasan_stack_oob+0x0/0x270
[   21.844542] 
[   21.844609] This frame has 4 objects:
[   21.844819]  [48, 49) '__assertion'
[   21.844923]  [64, 72) 'array'
[   21.845028]  [96, 112) '__assertion'
[   21.845169]  [128, 138) 'stack_array'
[   21.845286] 
[   21.845366] The buggy address belongs to the virtual mapping at
[   21.845366]  [ffff800080aa0000, ffff800080aa9000) created by:
[   21.845366]  kernel_clone+0x150/0x7a8
[   21.845538] 
[   21.845585] The buggy address belongs to the physical page:
[   21.845656] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079e0
[   21.845775] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.845957] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.846108] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.846198] page dumped because: kasan: bad access detected
[   21.846276] 
[   21.846386] Memory state around the buggy address:
[   21.846720]  ffff800080aa7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.846815]  ffff800080aa7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   21.846901] >ffff800080aa7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   21.846986]                                   ^
[   21.847050]  ffff800080aa7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   21.847513]  ffff800080aa7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   21.847730] ==================================================================

[   15.639600] ==================================================================
[   15.640901] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   15.641268] Read of size 1 at addr ffff888103a47d02 by task kunit_try_catch/267
[   15.642075] 
[   15.642216] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   15.642408] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.642434] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.642462] Call Trace:
[   15.642481]  <TASK>
[   15.642504]  dump_stack_lvl+0x73/0xb0
[   15.642543]  print_report+0xd1/0x650
[   15.642571]  ? __virt_addr_valid+0x1db/0x2d0
[   15.642598]  ? kasan_stack_oob+0x2b5/0x300
[   15.642622]  ? kasan_addr_to_slab+0x11/0xa0
[   15.642660]  ? kasan_stack_oob+0x2b5/0x300
[   15.642684]  kasan_report+0x141/0x180
[   15.642709]  ? kasan_stack_oob+0x2b5/0x300
[   15.642738]  __asan_report_load1_noabort+0x18/0x20
[   15.642766]  kasan_stack_oob+0x2b5/0x300
[   15.642790]  ? __pfx_kasan_stack_oob+0x10/0x10
[   15.642812]  ? finish_task_switch.isra.0+0x153/0x700
[   15.642839]  ? __switch_to+0x47/0xf50
[   15.642870]  ? __schedule+0x10cc/0x2b60
[   15.642896]  ? __pfx_read_tsc+0x10/0x10
[   15.642921]  ? ktime_get_ts64+0x86/0x230
[   15.642951]  kunit_try_run_case+0x1a5/0x480
[   15.642980]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.643006]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.643034]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.643061]  ? __kthread_parkme+0x82/0x180
[   15.643085]  ? preempt_count_sub+0x50/0x80
[   15.643111]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.643141]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.643168]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.643194]  kthread+0x337/0x6f0
[   15.643218]  ? trace_preempt_on+0x20/0xc0
[   15.643246]  ? __pfx_kthread+0x10/0x10
[   15.643271]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.643294]  ? calculate_sigpending+0x7b/0xa0
[   15.643324]  ? __pfx_kthread+0x10/0x10
[   15.643349]  ret_from_fork+0x116/0x1d0
[   15.643370]  ? __pfx_kthread+0x10/0x10
[   15.643393]  ret_from_fork_asm+0x1a/0x30
[   15.643432]  </TASK>
[   15.643446] 
[   15.657559] The buggy address belongs to stack of task kunit_try_catch/267
[   15.658282]  and is located at offset 138 in frame:
[   15.658604]  kasan_stack_oob+0x0/0x300
[   15.659247] 
[   15.659377] This frame has 4 objects:
[   15.659705]  [48, 49) '__assertion'
[   15.659739]  [64, 72) 'array'
[   15.660013]  [96, 112) '__assertion'
[   15.660293]  [128, 138) 'stack_array'
[   15.660602] 
[   15.661038] The buggy address belongs to the physical page:
[   15.661340] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a47
[   15.661824] flags: 0x200000000000000(node=0|zone=2)
[   15.662236] raw: 0200000000000000 ffffea00040e91c8 ffffea00040e91c8 0000000000000000
[   15.662727] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   15.663089] page dumped because: kasan: bad access detected
[   15.663482] 
[   15.663600] Memory state around the buggy address:
[   15.663954]  ffff888103a47c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.664465]  ffff888103a47c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   15.664879] >ffff888103a47d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.665166]                    ^
[   15.665444]  ffff888103a47d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   15.666008]  ffff888103a47e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.666676] ==================================================================