Hay
Date
July 25, 2025, 3:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.110106] ==================================================================
[   32.110174] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   32.110228] Write of size 1 at addr fff00000c99a200a by task kunit_try_catch/178
[   32.110276] 
[   32.110308] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   32.110394] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.110423] Hardware name: linux,dummy-virt (DT)
[   32.110452] Call trace:
[   32.110474]  show_stack+0x20/0x38 (C)
[   32.110520]  dump_stack_lvl+0x8c/0xd0
[   32.110864]  print_report+0x118/0x5e8
[   32.111706]  kasan_report+0xdc/0x128
[   32.111803]  __asan_report_store1_noabort+0x20/0x30
[   32.112368]  kmalloc_large_oob_right+0x278/0x2b8
[   32.112456]  kunit_try_run_case+0x170/0x3f0
[   32.112868]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.112974]  kthread+0x328/0x630
[   32.113128]  ret_from_fork+0x10/0x20
[   32.113249] 
[   32.113592] The buggy address belongs to the physical page:
[   32.113882] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099a0
[   32.114056] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   32.114126] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   32.114590] page_type: f8(unknown)
[   32.114688] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   32.114748] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   32.115014] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   32.115191] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   32.115280] head: 0bfffe0000000002 ffffc1ffc3266801 00000000ffffffff 00000000ffffffff
[   32.115328] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   32.115374] page dumped because: kasan: bad access detected
[   32.115404] 
[   32.115580] Memory state around the buggy address:
[   32.115775]  fff00000c99a1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.115964]  fff00000c99a1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.116202] >fff00000c99a2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   32.116624]                       ^
[   32.116721]  fff00000c99a2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   32.116974]  fff00000c99a2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   32.117020] ==================================================================

[   25.182098] ==================================================================
[   25.182732] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   25.183128] Write of size 1 at addr ffff888102b4200a by task kunit_try_catch/195
[   25.183434] 
[   25.183536] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   25.183582] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.183594] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.183614] Call Trace:
[   25.183627]  <TASK>
[   25.183642]  dump_stack_lvl+0x73/0xb0
[   25.183669]  print_report+0xd1/0x640
[   25.183692]  ? __virt_addr_valid+0x1db/0x2d0
[   25.183716]  ? kmalloc_large_oob_right+0x2e9/0x330
[   25.183738]  ? kasan_addr_to_slab+0x11/0xa0
[   25.183759]  ? kmalloc_large_oob_right+0x2e9/0x330
[   25.183782]  kasan_report+0x141/0x180
[   25.183805]  ? kmalloc_large_oob_right+0x2e9/0x330
[   25.183832]  __asan_report_store1_noabort+0x1b/0x30
[   25.183858]  kmalloc_large_oob_right+0x2e9/0x330
[   25.183880]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   25.183905]  ? __schedule+0x10da/0x2b60
[   25.183928]  ? __pfx_read_tsc+0x10/0x10
[   25.183960]  ? ktime_get_ts64+0x86/0x230
[   25.183984]  kunit_try_run_case+0x1a5/0x480
[   25.184009]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.184032]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.184076]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.184104]  ? __kthread_parkme+0x82/0x180
[   25.184126]  ? preempt_count_sub+0x50/0x80
[   25.184150]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.184175]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.184199]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.184223]  kthread+0x337/0x6f0
[   25.184245]  ? trace_preempt_on+0x20/0xc0
[   25.184268]  ? __pfx_kthread+0x10/0x10
[   25.184290]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.184316]  ? calculate_sigpending+0x7b/0xa0
[   25.184340]  ? __pfx_kthread+0x10/0x10
[   25.184362]  ret_from_fork+0x116/0x1d0
[   25.184381]  ? __pfx_kthread+0x10/0x10
[   25.184402]  ret_from_fork_asm+0x1a/0x30
[   25.184435]  </TASK>
[   25.184446] 
[   25.193778] The buggy address belongs to the physical page:
[   25.194458] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b40
[   25.194816] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   25.195392] flags: 0x200000000000040(head|node=0|zone=2)
[   25.195674] page_type: f8(unknown)
[   25.196153] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   25.196505] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   25.196973] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   25.197277] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   25.197546] head: 0200000000000002 ffffea00040ad001 00000000ffffffff 00000000ffffffff
[   25.197995] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   25.198336] page dumped because: kasan: bad access detected
[   25.198557] 
[   25.198645] Memory state around the buggy address:
[   25.198961]  ffff888102b41f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.199283]  ffff888102b41f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.199589] >ffff888102b42000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   25.199877]                       ^
[   25.200216]  ffff888102b42080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   25.200554]  ffff888102b42100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   25.201007] ==================================================================