Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   24.682276] ==================================================================
[   24.682533] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   24.682652] Write of size 1 at addr fff00000c77d200a by task kunit_try_catch/146
[   24.682786] 
[   24.682863] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   24.683065] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.683129] Hardware name: linux,dummy-virt (DT)
[   24.683200] Call trace:
[   24.683249]  show_stack+0x20/0x38 (C)
[   24.683382]  dump_stack_lvl+0x8c/0xd0
[   24.683503]  print_report+0x118/0x608
[   24.683611]  kasan_report+0xdc/0x128
[   24.683717]  __asan_report_store1_noabort+0x20/0x30
[   24.683954]  kmalloc_large_oob_right+0x278/0x2b8
[   24.684379]  kunit_try_run_case+0x170/0x3f0
[   24.684532]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.684852]  kthread+0x328/0x630
[   24.684959]  ret_from_fork+0x10/0x20
[   24.685075] 
[   24.685145] The buggy address belongs to the physical page:
[   24.685265] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d0
[   24.685502] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.685846] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   24.685998] page_type: f8(unknown)
[   24.686105] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.686240] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.686392] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.686577] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.686766] head: 0bfffe0000000002 ffffc1ffc31df401 00000000ffffffff 00000000ffffffff
[   24.686895] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   24.687013] page dumped because: kasan: bad access detected
[   24.687103] 
[   24.687870] Memory state around the buggy address:
[   24.688045]  fff00000c77d1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.688271]  fff00000c77d1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.688393] >fff00000c77d2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   24.688489]                       ^
[   24.688565]  fff00000c77d2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   24.688670]  fff00000c77d2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   24.688776] ==================================================================


[   10.858626] ==================================================================
[   10.859786] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   10.860045] Write of size 1 at addr ffff88810241a00a by task kunit_try_catch/163
[   10.860267] 
[   10.860354] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   10.860397] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.860408] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.860428] Call Trace:
[   10.860439]  <TASK>
[   10.860453]  dump_stack_lvl+0x73/0xb0
[   10.860478]  print_report+0xd1/0x650
[   10.860499]  ? __virt_addr_valid+0x1db/0x2d0
[   10.860521]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.860542]  ? kasan_addr_to_slab+0x11/0xa0
[   10.860562]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.860584]  kasan_report+0x141/0x180
[   10.860606]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.860632]  __asan_report_store1_noabort+0x1b/0x30
[   10.860651]  kmalloc_large_oob_right+0x2e9/0x330
[   10.860673]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   10.860695]  ? __schedule+0x10cc/0x2b60
[   10.860718]  ? __pfx_read_tsc+0x10/0x10
[   10.860738]  ? ktime_get_ts64+0x86/0x230
[   10.860761]  kunit_try_run_case+0x1a5/0x480
[   10.860781]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.860800]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.860824]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.860847]  ? __kthread_parkme+0x82/0x180
[   10.860867]  ? preempt_count_sub+0x50/0x80
[   10.860889]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.860929]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.860953]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.860976]  kthread+0x337/0x6f0
[   10.860995]  ? trace_preempt_on+0x20/0xc0
[   10.861017]  ? __pfx_kthread+0x10/0x10
[   10.861037]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.861062]  ? calculate_sigpending+0x7b/0xa0
[   10.861085]  ? __pfx_kthread+0x10/0x10
[   10.861106]  ret_from_fork+0x116/0x1d0
[   10.861123]  ? __pfx_kthread+0x10/0x10
[   10.861142]  ret_from_fork_asm+0x1a/0x30
[   10.861171]  </TASK>
[   10.861180] 
[   10.877588] The buggy address belongs to the physical page:
[   10.878117] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102418
[   10.879029] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   10.879700] flags: 0x200000000000040(head|node=0|zone=2)
[   10.880555] page_type: f8(unknown)
[   10.880995] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.881433] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.881666] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.881907] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.882139] head: 0200000000000002 ffffea0004090601 00000000ffffffff 00000000ffffffff
[   10.883074] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   10.883405] page dumped because: kasan: bad access detected
[   10.883653] 
[   10.883744] Memory state around the buggy address:
[   10.883969]  ffff888102419f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.884265]  ffff888102419f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.884555] >ffff88810241a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.884824]                       ^
[   10.886318]  ffff88810241a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.886541]  ffff88810241a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.886786] ==================================================================