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

Environment
qemu-arm64
qemu-x86_64

[   20.711871] ==================================================================
[   20.712553] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   20.712878] Read of size 1 at addr ffff800080b47c2a by task kunit_try_catch/239
[   20.714063] 
[   20.714494] CPU: 1 UID: 0 PID: 239 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   20.714608] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.714640] Hardware name: linux,dummy-virt (DT)
[   20.714774] Call trace:
[   20.714809]  show_stack+0x20/0x38 (C)
[   20.714880]  dump_stack_lvl+0x8c/0xd0
[   20.714937]  print_report+0x310/0x608
[   20.714989]  kasan_report+0xdc/0x128
[   20.715040]  __asan_report_load1_noabort+0x20/0x30
[   20.715091]  kasan_stack_oob+0x238/0x270
[   20.715139]  kunit_try_run_case+0x170/0x3f0
[   20.715218]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.715277]  kthread+0x318/0x620
[   20.715327]  ret_from_fork+0x10/0x20
[   20.715383] 
[   20.719254] The buggy address belongs to stack of task kunit_try_catch/239
[   20.719786]  and is located at offset 138 in frame:
[   20.720127]  kasan_stack_oob+0x0/0x270
[   20.720491] 
[   20.720632] This frame has 4 objects:
[   20.720934]  [48, 49) '__assertion'
[   20.721002]  [64, 72) 'array'
[   20.721689]  [96, 112) '__assertion'
[   20.722049]  [128, 138) 'stack_array'
[   20.722607] 
[   20.723103] The buggy address belongs to the virtual mapping at
[   20.723103]  [ffff800080b40000, ffff800080b49000) created by:
[   20.723103]  kernel_clone+0x150/0x7a8
[   20.724297] 
[   20.724571] The buggy address belongs to the physical page:
[   20.724917] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f44
[   20.725557] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.725815] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.726038] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.726275] page dumped because: kasan: bad access detected
[   20.726449] 
[   20.726678] Memory state around the buggy address:
[   20.726842]  ffff800080b47b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.727082]  ffff800080b47b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   20.728280] >ffff800080b47c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   20.728887]                                   ^
[   20.729542]  ffff800080b47c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   20.730172]  ffff800080b47d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.730769] ==================================================================

[   14.479053] ==================================================================
[   14.480698] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b7/0x300
[   14.480997] Read of size 1 at addr ffff888102cd7d02 by task kunit_try_catch/257
[   14.481225] 
[   14.481308] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   14.481348] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.481360] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.481382] Call Trace:
[   14.481395]  <TASK>
[   14.481411]  dump_stack_lvl+0x73/0xb0
[   14.481442]  print_report+0xd1/0x650
[   14.481466]  ? __virt_addr_valid+0x1db/0x2d0
[   14.481493]  ? kasan_stack_oob+0x2b7/0x300
[   14.481514]  ? kasan_addr_to_slab+0x11/0xa0
[   14.481537]  ? kasan_stack_oob+0x2b7/0x300
[   14.481559]  kasan_report+0x140/0x180
[   14.481596]  ? kasan_stack_oob+0x2b7/0x300
[   14.481624]  __asan_report_load1_noabort+0x18/0x20
[   14.481651]  kasan_stack_oob+0x2b7/0x300
[   14.481673]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.481695]  ? finish_task_switch.isra.0+0x153/0x700
[   14.481722]  ? __switch_to+0x5d9/0xf60
[   14.481756]  ? __schedule+0xce8/0x2840
[   14.481782]  ? __pfx_read_tsc+0x10/0x10
[   14.481806]  ? ktime_get_ts64+0x86/0x230
[   14.481834]  kunit_try_run_case+0x1a6/0x480
[   14.481863]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.481887]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   14.481913]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.481939]  ? __kthread_parkme+0x82/0x160
[   14.481964]  ? preempt_count_sub+0x50/0x80
[   14.481991]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.482027]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.482055]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.482084]  kthread+0x324/0x6e0
[   14.482107]  ? trace_preempt_on+0x20/0xc0
[   14.482136]  ? __pfx_kthread+0x10/0x10
[   14.482161]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.482186]  ? calculate_sigpending+0x7b/0xa0
[   14.482211]  ? __pfx_kthread+0x10/0x10
[   14.482236]  ret_from_fork+0x41/0x80
[   14.482258]  ? __pfx_kthread+0x10/0x10
[   14.482283]  ret_from_fork_asm+0x1a/0x30
[   14.482317]  </TASK>
[   14.482328] 
[   14.495319] The buggy address belongs to stack of task kunit_try_catch/257
[   14.495650]  and is located at offset 138 in frame:
[   14.496103]  kasan_stack_oob+0x0/0x300
[   14.496579] 
[   14.496765] This frame has 4 objects:
[   14.497403]  [48, 49) '__assertion'
[   14.497431]  [64, 72) 'array'
[   14.497844]  [96, 112) '__assertion'
[   14.498169]  [128, 138) 'stack_array'
[   14.498512] 
[   14.499119] The buggy address belongs to the physical page:
[   14.499517] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102cd7
[   14.500117] flags: 0x200000000000000(node=0|zone=2)
[   14.500292] raw: 0200000000000000 ffffea00040b35c8 ffffea00040b35c8 0000000000000000
[   14.500522] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.501206] page dumped because: kasan: bad access detected
[   14.501778] 
[   14.502212] Memory state around the buggy address:
[   14.502717]  ffff888102cd7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.503341]  ffff888102cd7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.503821] >ffff888102cd7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.504317]                    ^
[   14.504437]  ffff888102cd7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.504859]  ffff888102cd7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.505486] ==================================================================