Hay
Date
July 1, 2025, 3:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.119487] ==================================================================
[   19.119586] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   19.120042] Read of size 1 at addr ffff800080907c2a by task kunit_try_catch/250
[   19.120188] 
[   19.120310] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.120641] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.120713] Hardware name: linux,dummy-virt (DT)
[   19.120750] Call trace:
[   19.120808]  show_stack+0x20/0x38 (C)
[   19.120919]  dump_stack_lvl+0x8c/0xd0
[   19.121002]  print_report+0x310/0x608
[   19.121069]  kasan_report+0xdc/0x128
[   19.121114]  __asan_report_load1_noabort+0x20/0x30
[   19.121468]  kasan_stack_oob+0x238/0x270
[   19.121640]  kunit_try_run_case+0x170/0x3f0
[   19.121963]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.122111]  kthread+0x328/0x630
[   19.122206]  ret_from_fork+0x10/0x20
[   19.122315] 
[   19.122793] The buggy address belongs to stack of task kunit_try_catch/250
[   19.123100]  and is located at offset 138 in frame:
[   19.123166]  kasan_stack_oob+0x0/0x270
[   19.123794] 
[   19.124171] This frame has 4 objects:
[   19.124471]  [48, 49) '__assertion'
[   19.124880]  [64, 72) 'array'
[   19.125034]  [96, 112) '__assertion'
[   19.125088]  [128, 138) 'stack_array'
[   19.125159] 
[   19.125203] The buggy address belongs to the virtual mapping at
[   19.125203]  [ffff800080900000, ffff800080909000) created by:
[   19.125203]  kernel_clone+0x150/0x7a8
[   19.125767] 
[   19.125821] The buggy address belongs to the physical page:
[   19.125868] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10572f
[   19.125994] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.126153] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.126238] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.126281] page dumped because: kasan: bad access detected
[   19.126517] 
[   19.126633] Memory state around the buggy address:
[   19.126773]  ffff800080907b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.126919]  ffff800080907b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   19.127013] >ffff800080907c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   19.127190]                                   ^
[   19.127532]  ffff800080907c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   19.127624]  ffff800080907d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.127721] ==================================================================

[   13.443416] ==================================================================
[   13.444350] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.445100] Read of size 1 at addr ffff88810397fd02 by task kunit_try_catch/266
[   13.445424] 
[   13.445572] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   13.445721] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.445738] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.445761] Call Trace:
[   13.445775]  <TASK>
[   13.445804]  dump_stack_lvl+0x73/0xb0
[   13.445834]  print_report+0xd1/0x650
[   13.445858]  ? __virt_addr_valid+0x1db/0x2d0
[   13.445881]  ? kasan_stack_oob+0x2b5/0x300
[   13.445900]  ? kasan_addr_to_slab+0x11/0xa0
[   13.445921]  ? kasan_stack_oob+0x2b5/0x300
[   13.445941]  kasan_report+0x141/0x180
[   13.445962]  ? kasan_stack_oob+0x2b5/0x300
[   13.445986]  __asan_report_load1_noabort+0x18/0x20
[   13.446010]  kasan_stack_oob+0x2b5/0x300
[   13.446038]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.446058]  ? finish_task_switch.isra.0+0x153/0x700
[   13.446080]  ? __switch_to+0x47/0xf50
[   13.446106]  ? __schedule+0x10cc/0x2b60
[   13.446129]  ? __pfx_read_tsc+0x10/0x10
[   13.446149]  ? ktime_get_ts64+0x86/0x230
[   13.446173]  kunit_try_run_case+0x1a5/0x480
[   13.446196]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.446218]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.446241]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.446263]  ? __kthread_parkme+0x82/0x180
[   13.446282]  ? preempt_count_sub+0x50/0x80
[   13.446304]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.446327]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.446349]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.446371]  kthread+0x337/0x6f0
[   13.446390]  ? trace_preempt_on+0x20/0xc0
[   13.446414]  ? __pfx_kthread+0x10/0x10
[   13.446434]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.446456]  ? calculate_sigpending+0x7b/0xa0
[   13.446478]  ? __pfx_kthread+0x10/0x10
[   13.446499]  ret_from_fork+0x116/0x1d0
[   13.446517]  ? __pfx_kthread+0x10/0x10
[   13.446537]  ret_from_fork_asm+0x1a/0x30
[   13.446567]  </TASK>
[   13.446578] 
[   13.455473] The buggy address belongs to stack of task kunit_try_catch/266
[   13.456075]  and is located at offset 138 in frame:
[   13.456361]  kasan_stack_oob+0x0/0x300
[   13.456785] 
[   13.456974] This frame has 4 objects:
[   13.457240]  [48, 49) '__assertion'
[   13.457279]  [64, 72) 'array'
[   13.457507]  [96, 112) '__assertion'
[   13.458048]  [128, 138) 'stack_array'
[   13.458259] 
[   13.458555] The buggy address belongs to the physical page:
[   13.458910] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10397f
[   13.459401] flags: 0x200000000000000(node=0|zone=2)
[   13.459745] raw: 0200000000000000 ffffea00040e5fc8 ffffea00040e5fc8 0000000000000000
[   13.460091] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.460428] page dumped because: kasan: bad access detected
[   13.460802] 
[   13.460877] Memory state around the buggy address:
[   13.461149]  ffff88810397fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.461496]  ffff88810397fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.461908] >ffff88810397fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.462239]                    ^
[   13.462434]  ffff88810397fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.462903]  ffff88810397fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.463221] ==================================================================