Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   21.973530] ==================================================================
[   21.973735] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   21.973897] Write of size 1 at addr fff00000c642e00a by task kunit_try_catch/150
[   21.974026] 
[   21.974118] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT 
[   21.974344] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.974427] Hardware name: linux,dummy-virt (DT)
[   21.974498] Call trace:
[   21.974556]  show_stack+0x20/0x38 (C)
[   21.974816]  dump_stack_lvl+0x8c/0xd0
[   21.975239]  print_report+0x118/0x608
[   21.975524]  kasan_report+0xdc/0x128
[   21.975749]  __asan_report_store1_noabort+0x20/0x30
[   21.975853]  kmalloc_large_oob_right+0x278/0x2b8
[   21.975963]  kunit_try_run_case+0x170/0x3f0
[   21.976313]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.976478]  kthread+0x328/0x630
[   21.976594]  ret_from_fork+0x10/0x20
[   21.976716] 
[   21.976809] The buggy address belongs to the physical page:
[   21.976917] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10642c
[   21.977113] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.977242] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   21.977420] page_type: f8(unknown)
[   21.977514] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.977662] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.978213] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.978386] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.978515] head: 0bfffe0000000002 ffffc1ffc3190b01 00000000ffffffff 00000000ffffffff
[   21.978745] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   21.978829] page dumped because: kasan: bad access detected
[   21.979008] 
[   21.979084] Memory state around the buggy address:
[   21.979199]  fff00000c642df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.979323]  fff00000c642df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.979476] >fff00000c642e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.979633]                       ^
[   21.979736]  fff00000c642e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.979867]  fff00000c642e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.980015] ==================================================================

[   12.964055] ==================================================================
[   12.964625] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.965372] Write of size 1 at addr ffff88810227600a by task kunit_try_catch/166
[   12.966172] 
[   12.966313] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT(voluntary) 
[   12.966376] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.966390] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.966413] Call Trace:
[   12.966431]  <TASK>
[   12.966454]  dump_stack_lvl+0x73/0xb0
[   12.966499]  print_report+0xd1/0x650
[   12.966526]  ? __virt_addr_valid+0x1db/0x2d0
[   12.966550]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.966603]  ? kasan_addr_to_slab+0x11/0xa0
[   12.966640]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.966681]  kasan_report+0x141/0x180
[   12.966721]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.966767]  __asan_report_store1_noabort+0x1b/0x30
[   12.966805]  kmalloc_large_oob_right+0x2e9/0x330
[   12.966850]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.966899]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.966952]  kunit_try_run_case+0x1a5/0x480
[   12.967347]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.967375]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.967402]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.967424]  ? __kthread_parkme+0x82/0x180
[   12.967448]  ? preempt_count_sub+0x50/0x80
[   12.967476]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.967501]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.967523]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.967546]  kthread+0x337/0x6f0
[   12.967578]  ? trace_preempt_on+0x20/0xc0
[   12.967610]  ? __pfx_kthread+0x10/0x10
[   12.967640]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.967674]  ? calculate_sigpending+0x7b/0xa0
[   12.967709]  ? __pfx_kthread+0x10/0x10
[   12.967737]  ret_from_fork+0x41/0x80
[   12.967772]  ? __pfx_kthread+0x10/0x10
[   12.967800]  ret_from_fork_asm+0x1a/0x30
[   12.967842]  </TASK>
[   12.967856] 
[   12.985471] The buggy address belongs to the physical page:
[   12.986967] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102274
[   12.987337] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.987922] flags: 0x200000000000040(head|node=0|zone=2)
[   12.988391] page_type: f8(unknown)
[   12.988605] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.989335] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.989857] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.990397] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.991055] head: 0200000000000002 ffffea0004089d01 00000000ffffffff 00000000ffffffff
[   12.991439] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.992457] page dumped because: kasan: bad access detected
[   12.992773] 
[   12.993292] Memory state around the buggy address:
[   12.993523]  ffff888102275f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.994022]  ffff888102275f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.994994] >ffff888102276000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.995514]                       ^
[   12.995756]  ffff888102276080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.996077]  ffff888102276100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.996381] ==================================================================