Hay
Date
June 2, 2025, 2:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.006441] ==================================================================
[   18.007469] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   18.007964] Write of size 1 at addr fff00000c606a00a by task kunit_try_catch/136
[   18.008522] 
[   18.008797] CPU: 0 UID: 0 PID: 136 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   18.008979] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.009037] Hardware name: linux,dummy-virt (DT)
[   18.009105] Call trace:
[   18.009168]  show_stack+0x20/0x38 (C)
[   18.009290]  dump_stack_lvl+0x8c/0xd0
[   18.009403]  print_report+0x118/0x608
[   18.009485]  kasan_report+0xdc/0x128
[   18.009546]  __asan_report_store1_noabort+0x20/0x30
[   18.009600]  kmalloc_large_oob_right+0x278/0x2b8
[   18.009650]  kunit_try_run_case+0x170/0x3f0
[   18.009700]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.009752]  kthread+0x318/0x620
[   18.009797]  ret_from_fork+0x10/0x20
[   18.009848] 
[   18.014301] The buggy address belongs to the physical page:
[   18.014950] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106068
[   18.015616] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   18.016296] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   18.016894] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   18.017441] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.018008] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   18.018950] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.019518] head: 0bfffe0000000002 ffffc1ffc3181a01 ffffffffffffffff 0000000000000000
[   18.020108] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   18.020708] page dumped because: kasan: bad access detected
[   18.021079] 
[   18.021336] Memory state around the buggy address:
[   18.021762]  fff00000c6069f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.022459]  fff00000c6069f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.022782] >fff00000c606a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   18.023075]                       ^
[   18.023276]  fff00000c606a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   18.023564]  fff00000c606a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   18.023845] ==================================================================

[   12.226882] ==================================================================
[   12.227365] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340
[   12.227754] Write of size 1 at addr ffff88810288200a by task kunit_try_catch/154
[   12.228385] 
[   12.228524] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   12.228563] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.228586] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.228605] Call Trace:
[   12.228616]  <TASK>
[   12.228630]  dump_stack_lvl+0x73/0xb0
[   12.228710]  print_report+0xd1/0x650
[   12.228751]  ? __virt_addr_valid+0x1db/0x2d0
[   12.228774]  ? kmalloc_large_oob_right+0x2eb/0x340
[   12.228794]  ? kasan_addr_to_slab+0x11/0xa0
[   12.228825]  ? kmalloc_large_oob_right+0x2eb/0x340
[   12.228846]  kasan_report+0x140/0x180
[   12.228867]  ? kmalloc_large_oob_right+0x2eb/0x340
[   12.228903]  __asan_report_store1_noabort+0x1b/0x30
[   12.228926]  kmalloc_large_oob_right+0x2eb/0x340
[   12.228947]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.228969]  ? __schedule+0xce8/0x2840
[   12.228991]  ? __pfx_read_tsc+0x10/0x10
[   12.229011]  ? ktime_get_ts64+0x86/0x230
[   12.229046]  kunit_try_run_case+0x1a6/0x480
[   12.229069]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.229089]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   12.229111]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.229134]  ? __kthread_parkme+0x82/0x160
[   12.229155]  ? preempt_count_sub+0x50/0x80
[   12.229179]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.229201]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.229226]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.229251]  kthread+0x324/0x6e0
[   12.229271]  ? trace_preempt_on+0x20/0xc0
[   12.229293]  ? __pfx_kthread+0x10/0x10
[   12.229314]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.229335]  ? calculate_sigpending+0x7b/0xa0
[   12.229355]  ? __pfx_kthread+0x10/0x10
[   12.229377]  ret_from_fork+0x41/0x80
[   12.229395]  ? __pfx_kthread+0x10/0x10
[   12.229416]  ret_from_fork_asm+0x1a/0x30
[   12.229446]  </TASK>
[   12.229456] 
[   12.237366] The buggy address belongs to the physical page:
[   12.237614] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102880
[   12.238047] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.238370] flags: 0x200000000000040(head|node=0|zone=2)
[   12.238696] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.239063] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.239394] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.239775] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.240131] head: 0200000000000002 ffffea00040a2001 ffffffffffffffff 0000000000000000
[   12.240503] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   12.240747] page dumped because: kasan: bad access detected
[   12.241202] 
[   12.241301] Memory state around the buggy address:
[   12.241553]  ffff888102881f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.242036]  ffff888102881f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.242446] >ffff888102882000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.242772]                       ^
[   12.242897]  ffff888102882080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.243128]  ffff888102882100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.243442] ==================================================================