Hay
Date
July 17, 2025, 10:12 a.m.

Environment
qemu-arm64
qemu-x86_64

[   29.318164] ==================================================================
[   29.318231] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   29.318281] Write of size 1 at addr fff00000c91ba00a by task kunit_try_catch/177
[   29.318328] 
[   29.318355] CPU: 1 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT 
[   29.318436] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.318461] Hardware name: linux,dummy-virt (DT)
[   29.318489] Call trace:
[   29.318511]  show_stack+0x20/0x38 (C)
[   29.318556]  dump_stack_lvl+0x8c/0xd0
[   29.318603]  print_report+0x118/0x5d0
[   29.318645]  kasan_report+0xdc/0x128
[   29.318686]  __asan_report_store1_noabort+0x20/0x30
[   29.318734]  kmalloc_large_oob_right+0x278/0x2b8
[   29.318787]  kunit_try_run_case+0x170/0x3f0
[   29.318832]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.318881]  kthread+0x328/0x630
[   29.318922]  ret_from_fork+0x10/0x20
[   29.318967] 
[   29.318996] The buggy address belongs to the physical page:
[   29.319025] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1091b8
[   29.319177] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   29.319231] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   29.319300] page_type: f8(unknown)
[   29.319342] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   29.319390] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   29.319439] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   29.319486] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   29.319533] head: 0bfffe0000000002 ffffc1ffc3246e01 00000000ffffffff 00000000ffffffff
[   29.319580] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   29.319617] page dumped because: kasan: bad access detected
[   29.319898] 
[   29.319995] Memory state around the buggy address:
[   29.320069]  fff00000c91b9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.320421]  fff00000c91b9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.320498] >fff00000c91ba000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.320566]                       ^
[   29.320692]  fff00000c91ba080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.320733]  fff00000c91ba100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.320786] ==================================================================

[   25.189512] ==================================================================
[   25.190952] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   25.191891] Write of size 1 at addr ffff888105f5600a by task kunit_try_catch/195
[   25.192817] 
[   25.193049] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) 
[   25.193109] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.193121] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.193141] Call Trace:
[   25.193153]  <TASK>
[   25.193168]  dump_stack_lvl+0x73/0xb0
[   25.193199]  print_report+0xd1/0x610
[   25.193221]  ? __virt_addr_valid+0x1db/0x2d0
[   25.193243]  ? kmalloc_large_oob_right+0x2e9/0x330
[   25.193317]  ? kasan_addr_to_slab+0x11/0xa0
[   25.193339]  ? kmalloc_large_oob_right+0x2e9/0x330
[   25.193360]  kasan_report+0x141/0x180
[   25.193392]  ? kmalloc_large_oob_right+0x2e9/0x330
[   25.193419]  __asan_report_store1_noabort+0x1b/0x30
[   25.193442]  kmalloc_large_oob_right+0x2e9/0x330
[   25.193464]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   25.193487]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   25.193528]  kunit_try_run_case+0x1a5/0x480
[   25.193552]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.193593]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.193616]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.193638]  ? __kthread_parkme+0x82/0x180
[   25.193661]  ? preempt_count_sub+0x50/0x80
[   25.193682]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.193705]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.193726]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.193748]  kthread+0x337/0x6f0
[   25.193766]  ? trace_preempt_on+0x20/0xc0
[   25.193789]  ? __pfx_kthread+0x10/0x10
[   25.193808]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.193829]  ? calculate_sigpending+0x7b/0xa0
[   25.193851]  ? __pfx_kthread+0x10/0x10
[   25.193872]  ret_from_fork+0x116/0x1d0
[   25.193892]  ? __pfx_kthread+0x10/0x10
[   25.193911]  ret_from_fork_asm+0x1a/0x30
[   25.193947]  </TASK>
[   25.193958] 
[   25.207758] The buggy address belongs to the physical page:
[   25.208372] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f54
[   25.208973] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   25.209403] flags: 0x200000000000040(head|node=0|zone=2)
[   25.209720] page_type: f8(unknown)
[   25.210032] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   25.210842] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   25.211219] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   25.212151] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   25.212555] head: 0200000000000002 ffffea000417d501 00000000ffffffff 00000000ffffffff
[   25.213256] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   25.213646] page dumped because: kasan: bad access detected
[   25.213807] 
[   25.213867] Memory state around the buggy address:
[   25.214016]  ffff888105f55f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.214648]  ffff888105f55f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.215478] >ffff888105f56000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   25.216781]                       ^
[   25.217163]  ffff888105f56080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   25.217888]  ffff888105f56100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   25.218115] ==================================================================