Hay
Date
April 20, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   26.230326] ==================================================================
[   26.230631] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   26.230875] Read of size 1 at addr ffff800080a27c2a by task kunit_try_catch/251
[   26.231040] 
[   26.231125] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   26.231461] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.231539] Hardware name: linux,dummy-virt (DT)
[   26.231716] Call trace:
[   26.231831]  show_stack+0x20/0x38 (C)
[   26.231975]  dump_stack_lvl+0x8c/0xd0
[   26.232391]  print_report+0x310/0x608
[   26.232517]  kasan_report+0xdc/0x128
[   26.232626]  __asan_report_load1_noabort+0x20/0x30
[   26.232905]  kasan_stack_oob+0x238/0x270
[   26.233047]  kunit_try_run_case+0x170/0x3f0
[   26.233291]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.233424]  kthread+0x328/0x630
[   26.234251]  ret_from_fork+0x10/0x20
[   26.234739] 
[   26.235188] The buggy address belongs to stack of task kunit_try_catch/251
[   26.235417]  and is located at offset 138 in frame:
[   26.235626]  kasan_stack_oob+0x0/0x270
[   26.236545] 
[   26.236628] This frame has 4 objects:
[   26.237020]  [48, 49) '__assertion'
[   26.237171]  [64, 72) 'array'
[   26.237365]  [96, 112) '__assertion'
[   26.237516]  [128, 138) 'stack_array'
[   26.237677] 
[   26.237800] The buggy address belongs to the virtual mapping at
[   26.237800]  [ffff800080a20000, ffff800080a29000) created by:
[   26.237800]  kernel_clone+0x150/0x7a8
[   26.238169] 
[   26.238227] The buggy address belongs to the physical page:
[   26.238328] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10761b
[   26.238454] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.238664] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   26.238969] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   26.239085] page dumped because: kasan: bad access detected
[   26.239175] 
[   26.239231] Memory state around the buggy address:
[   26.239318]  ffff800080a27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.239426]  ffff800080a27b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   26.239527] >ffff800080a27c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   26.240309]                                   ^
[   26.240400]  ffff800080a27c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   26.240527]  ffff800080a27d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   26.240736] ==================================================================

[   13.293611] ==================================================================
[   13.294301] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.294886] Read of size 1 at addr ffff888103ab7d02 by task kunit_try_catch/269
[   13.295113] 
[   13.295195] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   13.295238] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.295249] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.295269] Call Trace:
[   13.295279]  <TASK>
[   13.295293]  dump_stack_lvl+0x73/0xb0
[   13.295318]  print_report+0xd1/0x650
[   13.295356]  ? __virt_addr_valid+0x1db/0x2d0
[   13.295378]  ? kasan_stack_oob+0x2b5/0x300
[   13.295397]  ? kasan_addr_to_slab+0x11/0xa0
[   13.295418]  ? kasan_stack_oob+0x2b5/0x300
[   13.295439]  kasan_report+0x141/0x180
[   13.295462]  ? kasan_stack_oob+0x2b5/0x300
[   13.295487]  __asan_report_load1_noabort+0x18/0x20
[   13.295508]  kasan_stack_oob+0x2b5/0x300
[   13.295541]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.295560]  ? finish_task_switch.isra.0+0x153/0x700
[   13.295583]  ? __switch_to+0x5d9/0xf60
[   13.295604]  ? dequeue_task_fair+0x166/0x4e0
[   13.295628]  ? __schedule+0x10cc/0x2b30
[   13.295651]  ? __pfx_read_tsc+0x10/0x10
[   13.295670]  ? ktime_get_ts64+0x86/0x230
[   13.295695]  kunit_try_run_case+0x1a5/0x480
[   13.295719]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.295740]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.295763]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.295786]  ? __kthread_parkme+0x82/0x180
[   13.295807]  ? preempt_count_sub+0x50/0x80
[   13.295831]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.295854]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.295877]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.295899]  kthread+0x337/0x6f0
[   13.295919]  ? trace_preempt_on+0x20/0xc0
[   13.295941]  ? __pfx_kthread+0x10/0x10
[   13.295963]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.295985]  ? calculate_sigpending+0x7b/0xa0
[   13.296005]  ? __pfx_kthread+0x10/0x10
[   13.296028]  ret_from_fork+0x41/0x80
[   13.296049]  ? __pfx_kthread+0x10/0x10
[   13.296070]  ret_from_fork_asm+0x1a/0x30
[   13.296101]  </TASK>
[   13.296111] 
[   13.305861] The buggy address belongs to stack of task kunit_try_catch/269
[   13.306254]  and is located at offset 138 in frame:
[   13.306604]  kasan_stack_oob+0x0/0x300
[   13.306926] 
[   13.307033] This frame has 4 objects:
[   13.307307]  [48, 49) '__assertion'
[   13.307340]  [64, 72) 'array'
[   13.307517]  [96, 112) '__assertion'
[   13.307721]  [128, 138) 'stack_array'
[   13.307976] 
[   13.308720] The buggy address belongs to the physical page:
[   13.308907] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ab7
[   13.309353] flags: 0x200000000000000(node=0|zone=2)
[   13.309600] raw: 0200000000000000 ffffea00040eadc8 ffffea00040eadc8 0000000000000000
[   13.310038] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.310377] page dumped because: kasan: bad access detected
[   13.310903] 
[   13.310997] Memory state around the buggy address:
[   13.311201]  ffff888103ab7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.311619]  ffff888103ab7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.312040] >ffff888103ab7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.312401]                    ^
[   13.312676]  ffff888103ab7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.313075]  ffff888103ab7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.313538] ==================================================================

[   23.374424] ==================================================================
[   23.375842] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   23.376505] Read of size 1 at addr ffff8000896d7c2a by task kunit_try_catch/303
[   23.377184] 
[   23.377350] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   23.377402] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.377417] Hardware name: Radxa ROCK Pi 4B (DT)
[   23.377435] Call trace:
[   23.377449]  show_stack+0x20/0x38 (C)
[   23.377482]  dump_stack_lvl+0x8c/0xd0
[   23.377514]  print_report+0x310/0x608
[   23.377545]  kasan_report+0xdc/0x128
[   23.377573]  __asan_report_load1_noabort+0x20/0x30
[   23.377608]  kasan_stack_oob+0x238/0x270
[   23.377641]  kunit_try_run_case+0x170/0x3f0
[   23.377678]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.377721]  kthread+0x328/0x630
[   23.377757]  ret_from_fork+0x10/0x20
[   23.377792] 
[   23.383354] The buggy address belongs to stack of task kunit_try_catch/303
[   23.383988]  and is located at offset 138 in frame:
[   23.384442]  kasan_stack_oob+0x0/0x270
[   23.384815] 
[   23.384970] This frame has 4 objects:
[   23.385321]  [48, 49) '__assertion'
[   23.385344]  [64, 72) 'array'
[   23.385679]  [96, 112) '__assertion'
[   23.385971]  [128, 138) 'stack_array'
[   23.386315] 
[   23.386805] The buggy address belongs to the virtual mapping at
[   23.386805]  [ffff8000896d0000, ffff8000896d9000) created by:
[   23.386805]  kernel_clone+0x150/0x7a8
[   23.388198] 
[   23.388355] The buggy address belongs to the physical page:
[   23.388873] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1387
[   23.389600] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff)
[   23.390224] raw: 03fffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   23.390941] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   23.391650] page dumped because: kasan: bad access detected
[   23.392167] 
[   23.392321] Memory state around the buggy address:
[   23.392770]  ffff8000896d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.393438]  ffff8000896d7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   23.394105] >ffff8000896d7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   23.394769]                                   ^
[   23.395196]  ffff8000896d7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   23.395864]  ffff8000896d7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   23.396528] ==================================================================