Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   29.063509] ==================================================================
[   29.063576] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   29.063703] Write of size 1 at addr fff00000c9afa00a by task kunit_try_catch/178
[   29.063823] 
[   29.063856] CPU: 0 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   29.064749] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.064785] Hardware name: linux,dummy-virt (DT)
[   29.064869] Call trace:
[   29.064892]  show_stack+0x20/0x38 (C)
[   29.065206]  dump_stack_lvl+0x8c/0xd0
[   29.065306]  print_report+0x118/0x5d0
[   29.065368]  kasan_report+0xdc/0x128
[   29.065558]  __asan_report_store1_noabort+0x20/0x30
[   29.065652]  kmalloc_large_oob_right+0x278/0x2b8
[   29.065805]  kunit_try_run_case+0x170/0x3f0
[   29.065855]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.066091]  kthread+0x328/0x630
[   29.066148]  ret_from_fork+0x10/0x20
[   29.066448] 
[   29.066544] The buggy address belongs to the physical page:
[   29.066577] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109af8
[   29.066627] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   29.066682] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   29.066824] page_type: f8(unknown)
[   29.067116] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   29.067475] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   29.067592] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   29.067700] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   29.067971] head: 0bfffe0000000002 ffffc1ffc326be01 00000000ffffffff 00000000ffffffff
[   29.068215] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   29.068257] page dumped because: kasan: bad access detected
[   29.068340] 
[   29.068413] Memory state around the buggy address:
[   29.068486]  fff00000c9af9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.068527]  fff00000c9af9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.068588] >fff00000c9afa000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.068627]                       ^
[   29.068656]  fff00000c9afa080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.068695]  fff00000c9afa100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.068731] ==================================================================

[   23.641289] ==================================================================
[   23.641774] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   23.642224] Write of size 1 at addr ffff88810616e00a by task kunit_try_catch/196
[   23.642544] 
[   23.642652] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   23.642718] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   23.642732] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.642754] Call Trace:
[   23.642769]  <TASK>
[   23.642808]  dump_stack_lvl+0x73/0xb0
[   23.642843]  print_report+0xd1/0x610
[   23.642866]  ? __virt_addr_valid+0x1db/0x2d0
[   23.642892]  ? kmalloc_large_oob_right+0x2e9/0x330
[   23.642914]  ? kasan_addr_to_slab+0x11/0xa0
[   23.642934]  ? kmalloc_large_oob_right+0x2e9/0x330
[   23.642955]  kasan_report+0x141/0x180
[   23.643030]  ? kmalloc_large_oob_right+0x2e9/0x330
[   23.643060]  __asan_report_store1_noabort+0x1b/0x30
[   23.643084]  kmalloc_large_oob_right+0x2e9/0x330
[   23.643105]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   23.643127]  ? __schedule+0x10cc/0x2b60
[   23.643151]  ? __pfx_read_tsc+0x10/0x10
[   23.643174]  ? ktime_get_ts64+0x86/0x230
[   23.643200]  kunit_try_run_case+0x1a5/0x480
[   23.643223]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.643242]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.643265]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.643289]  ? __kthread_parkme+0x82/0x180
[   23.643310]  ? preempt_count_sub+0x50/0x80
[   23.643334]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.643354]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.643379]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.643403]  kthread+0x337/0x6f0
[   23.643422]  ? trace_preempt_on+0x20/0xc0
[   23.643446]  ? __pfx_kthread+0x10/0x10
[   23.643466]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.643487]  ? calculate_sigpending+0x7b/0xa0
[   23.643511]  ? __pfx_kthread+0x10/0x10
[   23.643532]  ret_from_fork+0x116/0x1d0
[   23.643550]  ? __pfx_kthread+0x10/0x10
[   23.643570]  ret_from_fork_asm+0x1a/0x30
[   23.643601]  </TASK>
[   23.643613] 
[   23.652807] The buggy address belongs to the physical page:
[   23.653408] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10616c
[   23.654092] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   23.654326] flags: 0x200000000000040(head|node=0|zone=2)
[   23.654520] page_type: f8(unknown)
[   23.654648] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   23.654928] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   23.655157] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   23.655379] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   23.656620] head: 0200000000000002 ffffea0004185b01 00000000ffffffff 00000000ffffffff
[   23.657759] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   23.658584] page dumped because: kasan: bad access detected
[   23.658998] 
[   23.659128] Memory state around the buggy address:
[   23.659288]  ffff88810616df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.659497]  ffff88810616df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.659718] >ffff88810616e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.659931]                       ^
[   23.660050]  ffff88810616e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.660257]  ffff88810616e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.660462] ==================================================================