Hay
Date
May 13, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.342434] ==================================================================
[   21.343564] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   21.343810] Read of size 1 at addr ffff8000809d7c2a by task kunit_try_catch/249
[   21.343880] 
[   21.346494] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT 
[   21.346614] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.346677] Hardware name: linux,dummy-virt (DT)
[   21.346721] Call trace:
[   21.346756]  show_stack+0x20/0x38 (C)
[   21.346907]  dump_stack_lvl+0x8c/0xd0
[   21.347013]  print_report+0x310/0x608
[   21.347138]  kasan_report+0xdc/0x128
[   21.347201]  __asan_report_load1_noabort+0x20/0x30
[   21.347264]  kasan_stack_oob+0x238/0x270
[   21.347338]  kunit_try_run_case+0x170/0x3f0
[   21.347396]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.347458]  kthread+0x328/0x630
[   21.347514]  ret_from_fork+0x10/0x20
[   21.347575] 
[   21.347647] The buggy address belongs to stack of task kunit_try_catch/249
[   21.347780]  and is located at offset 138 in frame:
[   21.347851]  kasan_stack_oob+0x0/0x270
[   21.348150] 
[   21.348218] This frame has 4 objects:
[   21.348427]  [48, 49) '__assertion'
[   21.348482]  [64, 72) 'array'
[   21.348522]  [96, 112) '__assertion'
[   21.348574]  [128, 138) 'stack_array'
[   21.348627] 
[   21.348673] The buggy address belongs to the virtual mapping at
[   21.348673]  [ffff8000809d0000, ffff8000809d9000) created by:
[   21.348673]  kernel_clone+0x150/0x7a8
[   21.348765] 
[   21.348802] The buggy address belongs to the physical page:
[   21.348892] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107791
[   21.348961] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.349055] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   21.349116] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.349183] page dumped because: kasan: bad access detected
[   21.349273] 
[   21.349302] Memory state around the buggy address:
[   21.349343]  ffff8000809d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.349397]  ffff8000809d7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   21.349449] >ffff8000809d7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   21.349519]                                   ^
[   21.349575]  ffff8000809d7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   21.349647]  ffff8000809d7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   21.349701] ==================================================================

[   12.925831] ==================================================================
[   12.926502] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   12.926877] Read of size 1 at addr ffff888102b7fd02 by task kunit_try_catch/266
[   12.927177] 
[   12.927311] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   12.927358] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.927371] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.927391] Call Trace:
[   12.927405]  <TASK>
[   12.927420]  dump_stack_lvl+0x73/0xb0
[   12.927450]  print_report+0xd1/0x650
[   12.927473]  ? __virt_addr_valid+0x1db/0x2d0
[   12.927499]  ? kasan_stack_oob+0x2b5/0x300
[   12.927520]  ? kasan_addr_to_slab+0x11/0xa0
[   12.927593]  ? kasan_stack_oob+0x2b5/0x300
[   12.927626]  kasan_report+0x141/0x180
[   12.927650]  ? kasan_stack_oob+0x2b5/0x300
[   12.927676]  __asan_report_load1_noabort+0x18/0x20
[   12.927697]  kasan_stack_oob+0x2b5/0x300
[   12.927719]  ? __pfx_kasan_stack_oob+0x10/0x10
[   12.927739]  ? finish_task_switch.isra.0+0x153/0x700
[   12.927763]  ? __switch_to+0x47/0xf50
[   12.927791]  ? __schedule+0x10cc/0x2b60
[   12.927815]  ? __pfx_read_tsc+0x10/0x10
[   12.927837]  ? ktime_get_ts64+0x86/0x230
[   12.927863]  kunit_try_run_case+0x1a5/0x480
[   12.927889]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.927911]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.927935]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.927958]  ? __kthread_parkme+0x82/0x180
[   12.927980]  ? preempt_count_sub+0x50/0x80
[   12.928004]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.928029]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.928053]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.928076]  kthread+0x337/0x6f0
[   12.928097]  ? trace_preempt_on+0x20/0xc0
[   12.928122]  ? __pfx_kthread+0x10/0x10
[   12.928144]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.928165]  ? calculate_sigpending+0x7b/0xa0
[   12.928200]  ? __pfx_kthread+0x10/0x10
[   12.928224]  ret_from_fork+0x116/0x1d0
[   12.928242]  ? __pfx_kthread+0x10/0x10
[   12.928264]  ret_from_fork_asm+0x1a/0x30
[   12.928298]  </TASK>
[   12.928309] 
[   12.935823] The buggy address belongs to stack of task kunit_try_catch/266
[   12.936213]  and is located at offset 138 in frame:
[   12.936455]  kasan_stack_oob+0x0/0x300
[   12.936870] 
[   12.936986] This frame has 4 objects:
[   12.937208]  [48, 49) '__assertion'
[   12.937233]  [64, 72) 'array'
[   12.937417]  [96, 112) '__assertion'
[   12.937691]  [128, 138) 'stack_array'
[   12.937843] 
[   12.938034] The buggy address belongs to the physical page:
[   12.938283] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b7f
[   12.938808] flags: 0x200000000000000(node=0|zone=2)
[   12.939167] raw: 0200000000000000 0000000000000000 ffffea00040adfc8 0000000000000000
[   12.939476] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.939832] page dumped because: kasan: bad access detected
[   12.940025] 
[   12.940122] Memory state around the buggy address:
[   12.940476]  ffff888102b7fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.940702]  ffff888102b7fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   12.941042] >ffff888102b7fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.941633]                    ^
[   12.941806]  ffff888102b7fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   12.942072]  ffff888102b7fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.942509] ==================================================================