Hay
Date
July 14, 2025, 10:38 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   38.251501] ==================================================================
[   38.261316] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   38.268777] Write of size 1 at addr ffff000804a7a00a by task kunit_try_catch/230
[   38.276155] 
[   38.277641] CPU: 3 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   38.277694] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.277710] Hardware name: WinLink E850-96 board (DT)
[   38.277731] Call trace:
[   38.277743]  show_stack+0x20/0x38 (C)
[   38.277781]  dump_stack_lvl+0x8c/0xd0
[   38.277813]  print_report+0x118/0x5d0
[   38.277840]  kasan_report+0xdc/0x128
[   38.277868]  __asan_report_store1_noabort+0x20/0x30
[   38.277900]  kmalloc_large_oob_right+0x278/0x2b8
[   38.277932]  kunit_try_run_case+0x170/0x3f0
[   38.277968]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.278002]  kthread+0x328/0x630
[   38.278034]  ret_from_fork+0x10/0x20
[   38.278068] 
[   38.342216] The buggy address belongs to the physical page:
[   38.347773] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x884a78
[   38.355755] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   38.363396] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   38.370339] page_type: f8(unknown)
[   38.373734] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   38.381455] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   38.389181] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   38.396993] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   38.404806] head: 0bfffe0000000002 fffffdffe0129e01 00000000ffffffff 00000000ffffffff
[   38.412618] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   38.420423] page dumped because: kasan: bad access detected
[   38.425979] 
[   38.427456] Memory state around the buggy address:
[   38.432235]  ffff000804a79f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   38.439438]  ffff000804a79f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   38.446644] >ffff000804a7a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   38.453844]                       ^
[   38.457319]  ffff000804a7a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   38.464524]  ffff000804a7a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   38.471726] ==================================================================

[   29.350099] ==================================================================
[   29.350209] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   29.350261] Write of size 1 at addr fff00000c9a1a00a by task kunit_try_catch/177
[   29.350317] 
[   29.350352] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   29.350588] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.350618] Hardware name: linux,dummy-virt (DT)
[   29.350649] Call trace:
[   29.350844]  show_stack+0x20/0x38 (C)
[   29.350945]  dump_stack_lvl+0x8c/0xd0
[   29.351014]  print_report+0x118/0x5d0
[   29.351070]  kasan_report+0xdc/0x128
[   29.351128]  __asan_report_store1_noabort+0x20/0x30
[   29.351180]  kmalloc_large_oob_right+0x278/0x2b8
[   29.351226]  kunit_try_run_case+0x170/0x3f0
[   29.351282]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.351357]  kthread+0x328/0x630
[   29.351400]  ret_from_fork+0x10/0x20
[   29.351447] 
[   29.351514] The buggy address belongs to the physical page:
[   29.351583] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a18
[   29.351681] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   29.351747] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   29.351806] page_type: f8(unknown)
[   29.352039] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   29.352112] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   29.352526] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   29.352579] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   29.352811] head: 0bfffe0000000002 ffffc1ffc3268601 00000000ffffffff 00000000ffffffff
[   29.353184] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   29.353247] page dumped because: kasan: bad access detected
[   29.353335] 
[   29.353415] Memory state around the buggy address:
[   29.353527]  fff00000c9a19f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.353926]  fff00000c9a19f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.353981] >fff00000c9a1a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.354018]                       ^
[   29.354059]  fff00000c9a1a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.354110]  fff00000c9a1a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   29.354148] ==================================================================

[   23.723734] ==================================================================
[   23.724280] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   23.725171] Write of size 1 at addr ffff88810597a00a by task kunit_try_catch/195
[   23.725411] 
[   23.725502] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) 
[   23.725555] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   23.725933] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.725975] Call Trace:
[   23.725989]  <TASK>
[   23.726009]  dump_stack_lvl+0x73/0xb0
[   23.726053]  print_report+0xd1/0x610
[   23.726077]  ? __virt_addr_valid+0x1db/0x2d0
[   23.726103]  ? kmalloc_large_oob_right+0x2e9/0x330
[   23.726125]  ? kasan_addr_to_slab+0x11/0xa0
[   23.726146]  ? kmalloc_large_oob_right+0x2e9/0x330
[   23.726168]  kasan_report+0x141/0x180
[   23.726189]  ? kmalloc_large_oob_right+0x2e9/0x330
[   23.726238]  __asan_report_store1_noabort+0x1b/0x30
[   23.726261]  kmalloc_large_oob_right+0x2e9/0x330
[   23.726282]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   23.726304]  ? __schedule+0x10cc/0x2b60
[   23.726327]  ? __pfx_read_tsc+0x10/0x10
[   23.726349]  ? ktime_get_ts64+0x86/0x230
[   23.726373]  kunit_try_run_case+0x1a5/0x480
[   23.726396]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.726416]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.726438]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.726461]  ? __kthread_parkme+0x82/0x180
[   23.726482]  ? preempt_count_sub+0x50/0x80
[   23.726506]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.726527]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.726551]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.726575]  kthread+0x337/0x6f0
[   23.726594]  ? trace_preempt_on+0x20/0xc0
[   23.726618]  ? __pfx_kthread+0x10/0x10
[   23.726638]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.726671]  ? calculate_sigpending+0x7b/0xa0
[   23.726695]  ? __pfx_kthread+0x10/0x10
[   23.726716]  ret_from_fork+0x116/0x1d0
[   23.726735]  ? __pfx_kthread+0x10/0x10
[   23.726891]  ret_from_fork_asm+0x1a/0x30
[   23.726950]  </TASK>
[   23.726962] 
[   23.736725] The buggy address belongs to the physical page:
[   23.737354] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105978
[   23.738386] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   23.738942] flags: 0x200000000000040(head|node=0|zone=2)
[   23.739382] page_type: f8(unknown)
[   23.739812] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   23.740500] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   23.740753] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   23.740979] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   23.741204] head: 0200000000000002 ffffea0004165e01 00000000ffffffff 00000000ffffffff
[   23.741427] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   23.741650] page dumped because: kasan: bad access detected
[   23.741831] 
[   23.741895] Memory state around the buggy address:
[   23.742301]  ffff888105979f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.742939]  ffff888105979f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.743725] >ffff88810597a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.744604]                       ^
[   23.745004]  ffff88810597a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.745715]  ffff88810597a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   23.746344] ==================================================================