Hay
Date
June 24, 2025, 12:47 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.307845] ==================================================================
[   23.307985] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   23.308115] Write of size 1 at addr fff00000c77de00a by task kunit_try_catch/148
[   23.308332] 
[   23.308858] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   23.309060] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.309131] Hardware name: linux,dummy-virt (DT)
[   23.309207] Call trace:
[   23.309264]  show_stack+0x20/0x38 (C)
[   23.309422]  dump_stack_lvl+0x8c/0xd0
[   23.309555]  print_report+0x118/0x608
[   23.309668]  kasan_report+0xdc/0x128
[   23.309765]  __asan_report_store1_noabort+0x20/0x30
[   23.309828]  kmalloc_large_oob_right+0x278/0x2b8
[   23.309888]  kunit_try_run_case+0x170/0x3f0
[   23.309949]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.310014]  kthread+0x328/0x630
[   23.310072]  ret_from_fork+0x10/0x20
[   23.310131] 
[   23.310176] The buggy address belongs to the physical page:
[   23.310217] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077dc
[   23.310281] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   23.310333] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   23.310467] page_type: f8(unknown)
[   23.310675] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   23.311203] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   23.311718] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   23.311844] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   23.311964] head: 0bfffe0000000002 ffffc1ffc31df701 00000000ffffffff 00000000ffffffff
[   23.312088] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   23.312192] page dumped because: kasan: bad access detected
[   23.313061] 
[   23.313112] Memory state around the buggy address:
[   23.313959]  fff00000c77ddf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.314442]  fff00000c77ddf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.314580] >fff00000c77de000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.314687]                       ^
[   23.314766]  fff00000c77de080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.314883]  fff00000c77de100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.315395] ==================================================================

[   11.076186] ==================================================================
[   11.076990] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   11.077739] Write of size 1 at addr ffff88810234200a by task kunit_try_catch/166
[   11.078464] 
[   11.078993] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   11.079088] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.079102] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.079127] Call Trace:
[   11.079147]  <TASK>
[   11.079172]  dump_stack_lvl+0x73/0xb0
[   11.079213]  print_report+0xd1/0x650
[   11.079238]  ? __virt_addr_valid+0x1db/0x2d0
[   11.079260]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.079285]  ? kasan_addr_to_slab+0x11/0xa0
[   11.079327]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.079359]  kasan_report+0x141/0x180
[   11.079391]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.079429]  __asan_report_store1_noabort+0x1b/0x30
[   11.079458]  kmalloc_large_oob_right+0x2e9/0x330
[   11.079488]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   11.079519]  ? __schedule+0x10cc/0x2b60
[   11.079551]  ? __pfx_read_tsc+0x10/0x10
[   11.079579]  ? ktime_get_ts64+0x86/0x230
[   11.079613]  kunit_try_run_case+0x1a5/0x480
[   11.079669]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.079698]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.079732]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.079763]  ? __kthread_parkme+0x82/0x180
[   11.079793]  ? preempt_count_sub+0x50/0x80
[   11.079828]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.079852]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.079874]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.079895]  kthread+0x337/0x6f0
[   11.079911]  ? trace_preempt_on+0x20/0xc0
[   11.079934]  ? __pfx_kthread+0x10/0x10
[   11.079950]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.079970]  ? calculate_sigpending+0x7b/0xa0
[   11.079992]  ? __pfx_kthread+0x10/0x10
[   11.080010]  ret_from_fork+0x41/0x80
[   11.080030]  ? __pfx_kthread+0x10/0x10
[   11.080046]  ret_from_fork_asm+0x1a/0x30
[   11.080077]  </TASK>
[   11.080090] 
[   11.090415] The buggy address belongs to the physical page:
[   11.091698] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102340
[   11.092154] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.093131] flags: 0x200000000000040(head|node=0|zone=2)
[   11.093396] page_type: f8(unknown)
[   11.094102] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.094675] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   11.095444] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.096012] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   11.097076] head: 0200000000000002 ffffea000408d001 00000000ffffffff 00000000ffffffff
[   11.097362] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   11.097857] page dumped because: kasan: bad access detected
[   11.098107] 
[   11.098334] Memory state around the buggy address:
[   11.098708]  ffff888102341f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.099035]  ffff888102341f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.099324] >ffff888102342000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.100275]                       ^
[   11.100577]  ffff888102342080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.101327]  ffff888102342100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.101873] ==================================================================