Hay
Date
June 24, 2025, 11:37 a.m.

Environment
dragonboard-845c
qemu-x86_64

[   49.597726] ==================================================================
[   49.612970] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   49.619945] Read of size 1 at addr ffff800084287c2a by task kunit_try_catch/347
[   49.627361] 
[   49.628896] CPU: 3 UID: 0 PID: 347 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   49.628928] Tainted: [B]=BAD_PAGE, [N]=TEST
[   49.628938] Hardware name: Thundercomm Dragonboard 845c (DT)
[   49.628950] Call trace:
[   49.628959]  show_stack+0x20/0x38 (C)
[   49.628980]  dump_stack_lvl+0x8c/0xd0
[   49.629002]  print_report+0x310/0x608
[   49.629022]  kasan_report+0xdc/0x128
[   49.629042]  __asan_report_load1_noabort+0x20/0x30
[   49.629062]  kasan_stack_oob+0x238/0x270
[   49.629081]  kunit_try_run_case+0x170/0x3f0
[   49.629101]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   49.629126]  kthread+0x328/0x630
[   49.629142]  ret_from_fork+0x10/0x20
[   49.629160] 
[   49.694597] The buggy address belongs to stack of task kunit_try_catch/347
[   49.701566]  and is located at offset 138 in frame:
[   49.706510]  kasan_stack_oob+0x0/0x270
[   49.710332] 
[   49.711862] This frame has 4 objects:
[   49.715592]  [48, 49) '__assertion'
[   49.715607]  [64, 72) 'array'
[   49.719160]  [96, 112) '__assertion'
[   49.722188]  [128, 138) 'stack_array'
[   49.725827] 
[   49.731070] The buggy address belongs to the virtual mapping at
[   49.731070]  [ffff800084280000, ffff800084289000) created by:
[   49.731070]  kernel_clone+0x150/0x7a8
[   49.746553] 
[   49.748087] The buggy address belongs to the physical page:
[   49.753733] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116835
[   49.761841] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   49.768472] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   49.776321] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   49.784165] page dumped because: kasan: bad access detected
[   49.789811] 
[   49.791341] Memory state around the buggy address:
[   49.796201]  ffff800084287b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   49.803516]  ffff800084287b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   49.810832] >ffff800084287c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   49.818145]                                   ^
[   49.822746]  ffff800084287c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   49.830063]  ffff800084287d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   49.837377] ==================================================================

[   31.451901] ==================================================================
[   31.452920] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   31.454295] Read of size 1 at addr ffff888102a37d02 by task kunit_try_catch/279
[   31.454909] 
[   31.455111] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   31.455229] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.455262] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.455464] Call Trace:
[   31.455513]  <TASK>
[   31.455570]  dump_stack_lvl+0x73/0xb0
[   31.455690]  print_report+0xd1/0x650
[   31.455753]  ? __virt_addr_valid+0x1db/0x2d0
[   31.455858]  ? kasan_stack_oob+0x2b5/0x300
[   31.455918]  ? kasan_addr_to_slab+0x11/0xa0
[   31.455978]  ? kasan_stack_oob+0x2b5/0x300
[   31.456040]  kasan_report+0x141/0x180
[   31.456335]  ? kasan_stack_oob+0x2b5/0x300
[   31.456408]  __asan_report_load1_noabort+0x18/0x20
[   31.456473]  kasan_stack_oob+0x2b5/0x300
[   31.456522]  ? __pfx_kasan_stack_oob+0x10/0x10
[   31.456582]  ? finish_task_switch.isra.0+0x153/0x700
[   31.456801]  ? __switch_to+0x47/0xf50
[   31.456857]  ? __schedule+0x10cc/0x2b60
[   31.456895]  ? __pfx_read_tsc+0x10/0x10
[   31.456926]  ? ktime_get_ts64+0x86/0x230
[   31.456959]  kunit_try_run_case+0x1a5/0x480
[   31.456994]  ? __pfx_kunit_try_run_case+0x10/0x10
[   31.457025]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   31.457063]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   31.457142]  ? __kthread_parkme+0x82/0x180
[   31.457184]  ? preempt_count_sub+0x50/0x80
[   31.457217]  ? __pfx_kunit_try_run_case+0x10/0x10
[   31.457250]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.457284]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   31.457315]  kthread+0x337/0x6f0
[   31.457342]  ? trace_preempt_on+0x20/0xc0
[   31.457374]  ? __pfx_kthread+0x10/0x10
[   31.457401]  ? _raw_spin_unlock_irq+0x47/0x80
[   31.457431]  ? calculate_sigpending+0x7b/0xa0
[   31.457462]  ? __pfx_kthread+0x10/0x10
[   31.457491]  ret_from_fork+0x116/0x1d0
[   31.457516]  ? __pfx_kthread+0x10/0x10
[   31.457566]  ret_from_fork_asm+0x1a/0x30
[   31.457608]  </TASK>
[   31.457622] 
[   31.474564] The buggy address belongs to stack of task kunit_try_catch/279
[   31.475522]  and is located at offset 138 in frame:
[   31.475921]  kasan_stack_oob+0x0/0x300
[   31.477046] 
[   31.477413] This frame has 4 objects:
[   31.477971]  [48, 49) '__assertion'
[   31.478046]  [64, 72) 'array'
[   31.478564]  [96, 112) '__assertion'
[   31.478977]  [128, 138) 'stack_array'
[   31.479529] 
[   31.480137] The buggy address belongs to the physical page:
[   31.480665] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a37
[   31.481748] flags: 0x200000000000000(node=0|zone=2)
[   31.483020] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000
[   31.483619] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   31.484477] page dumped because: kasan: bad access detected
[   31.485009] 
[   31.485277] Memory state around the buggy address:
[   31.485662]  ffff888102a37c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   31.486746]  ffff888102a37c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   31.487488] >ffff888102a37d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   31.488525]                    ^
[   31.489081]  ffff888102a37d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   31.489681]  ffff888102a37e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.490002] ==================================================================