Hay
Date
June 2, 2025, 2:11 p.m.

Environment
e850-96
qemu-x86_64

[   37.069001] ==================================================================
[   37.083341] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   37.090198] Read of size 1 at addr ffff800088a57c2a by task kunit_try_catch/296
[   37.097487] 
[   37.098974] CPU: 6 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   37.099030] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.099048] Hardware name: WinLink E850-96 board (DT)
[   37.099071] Call trace:
[   37.099086]  show_stack+0x20/0x38 (C)
[   37.099123]  dump_stack_lvl+0x8c/0xd0
[   37.099162]  print_report+0x310/0x608
[   37.099195]  kasan_report+0xdc/0x128
[   37.099225]  __asan_report_load1_noabort+0x20/0x30
[   37.099260]  kasan_stack_oob+0x238/0x270
[   37.099293]  kunit_try_run_case+0x170/0x3f0
[   37.099330]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.099373]  kthread+0x328/0x630
[   37.099407]  ret_from_fork+0x10/0x20
[   37.099442] 
[   37.161553] The buggy address belongs to stack of task kunit_try_catch/296
[   37.168407]  and is located at offset 138 in frame:
[   37.173266]  kasan_stack_oob+0x0/0x270
[   37.177006] 
[   37.178475] This frame has 4 objects:
[   37.182125]  [48, 49) '__assertion'
[   37.182151]  [64, 72) 'array'
[   37.185594]  [96, 112) '__assertion'
[   37.188548]  [128, 138) 'stack_array'
[   37.192104] 
[   37.197229] The buggy address belongs to the virtual mapping at
[   37.197229]  [ffff800088a50000, ffff800088a59000) created by:
[   37.197229]  kernel_clone+0x150/0x7a8
[   37.212503] 
[   37.213983] The buggy address belongs to the physical page:
[   37.219539] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8862e7
[   37.227523] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   37.234043] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   37.241762] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   37.249481] page dumped because: kasan: bad access detected
[   37.255036] 
[   37.256512] Memory state around the buggy address:
[   37.261293]  ffff800088a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   37.268495]  ffff800088a57b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   37.275701] >ffff800088a57c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   37.282900]                                   ^
[   37.287418]  ffff800088a57c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   37.294623]  ffff800088a57d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   37.301824] ==================================================================

[   18.797047] ==================================================================
[   18.797620] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   18.797845] Read of size 1 at addr ffff888103a9fd02 by task kunit_try_catch/270
[   18.798004] 
[   18.798092] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   18.798167] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.798182] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.798209] Call Trace:
[   18.798226]  <TASK>
[   18.798252]  dump_stack_lvl+0x73/0xb0
[   18.798284]  print_report+0xd1/0x650
[   18.798311]  ? __virt_addr_valid+0x1db/0x2d0
[   18.798337]  ? kasan_stack_oob+0x2b5/0x300
[   18.798359]  ? kasan_addr_to_slab+0x11/0xa0
[   18.798383]  ? kasan_stack_oob+0x2b5/0x300
[   18.798405]  kasan_report+0x141/0x180
[   18.798430]  ? kasan_stack_oob+0x2b5/0x300
[   18.798458]  __asan_report_load1_noabort+0x18/0x20
[   18.798481]  kasan_stack_oob+0x2b5/0x300
[   18.798504]  ? __pfx_kasan_stack_oob+0x10/0x10
[   18.798526]  ? finish_task_switch.isra.0+0x153/0x700
[   18.798552]  ? __switch_to+0x5d9/0xf60
[   18.798577]  ? dequeue_task_fair+0x156/0x4e0
[   18.798604]  ? __schedule+0x10cc/0x2b30
[   18.798629]  ? __pfx_read_tsc+0x10/0x10
[   18.798650]  ? ktime_get_ts64+0x86/0x230
[   18.798679]  kunit_try_run_case+0x1a5/0x480
[   18.798707]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.798730]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.798831]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.798878]  ? __kthread_parkme+0x82/0x180
[   18.798915]  ? preempt_count_sub+0x50/0x80
[   18.798954]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.798992]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.799038]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.799077]  kthread+0x337/0x6f0
[   18.799142]  ? trace_preempt_on+0x20/0xc0
[   18.799187]  ? __pfx_kthread+0x10/0x10
[   18.799224]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.799268]  ? calculate_sigpending+0x7b/0xa0
[   18.799317]  ? __pfx_kthread+0x10/0x10
[   18.799360]  ret_from_fork+0x41/0x80
[   18.799408]  ? __pfx_kthread+0x10/0x10
[   18.799451]  ret_from_fork_asm+0x1a/0x30
[   18.799523]  </TASK>
[   18.799548] 
[   18.809982] The buggy address belongs to stack of task kunit_try_catch/270
[   18.810778]  and is located at offset 138 in frame:
[   18.811219]  kasan_stack_oob+0x0/0x300
[   18.811858] 
[   18.812144] This frame has 4 objects:
[   18.812626]  [48, 49) '__assertion'
[   18.812687]  [64, 72) 'array'
[   18.813014]  [96, 112) '__assertion'
[   18.813357]  [128, 138) 'stack_array'
[   18.813696] 
[   18.814227] The buggy address belongs to the physical page:
[   18.814671] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a9f
[   18.815251] flags: 0x200000000000000(node=0|zone=2)
[   18.815536] raw: 0200000000000000 ffffea00040ea7c8 ffffea00040ea7c8 0000000000000000
[   18.815932] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   18.816549] page dumped because: kasan: bad access detected
[   18.816971] 
[   18.817182] Memory state around the buggy address:
[   18.817551]  ffff888103a9fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   18.817986]  ffff888103a9fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   18.818387] >ffff888103a9fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   18.818761]                    ^
[   18.818951]  ffff888103a9fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   18.819265]  ffff888103a9fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.819546] ==================================================================