Hay
Date
July 15, 2025, 11:35 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   44.690535] ==================================================================
[   44.700132] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300
[   44.707331] Write of size 4 at addr ffff000801889e75 by task kunit_try_catch/255
[   44.714709] 
[   44.716195] CPU: 2 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   44.716249] Tainted: [B]=BAD_PAGE, [N]=TEST
[   44.716266] Hardware name: WinLink E850-96 board (DT)
[   44.716285] Call trace:
[   44.716298]  show_stack+0x20/0x38 (C)
[   44.716332]  dump_stack_lvl+0x8c/0xd0
[   44.716367]  print_report+0x118/0x5d0
[   44.716396]  kasan_report+0xdc/0x128
[   44.716423]  kasan_check_range+0x100/0x1a8
[   44.716452]  __asan_memset+0x34/0x78
[   44.716484]  kmalloc_oob_memset_4+0x150/0x300
[   44.716514]  kunit_try_run_case+0x170/0x3f0
[   44.716543]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   44.716577]  kthread+0x328/0x630
[   44.716606]  ret_from_fork+0x10/0x20
[   44.716638] 
[   44.783286] Allocated by task 255:
[   44.786673]  kasan_save_stack+0x3c/0x68
[   44.790490]  kasan_save_track+0x20/0x40
[   44.794307]  kasan_save_alloc_info+0x40/0x58
[   44.798561]  __kasan_kmalloc+0xd4/0xd8
[   44.802293]  __kmalloc_cache_noprof+0x16c/0x3c0
[   44.806807]  kmalloc_oob_memset_4+0xb0/0x300
[   44.811062]  kunit_try_run_case+0x170/0x3f0
[   44.815227]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   44.820696]  kthread+0x328/0x630
[   44.823907]  ret_from_fork+0x10/0x20
[   44.827466] 
[   44.828944] The buggy address belongs to the object at ffff000801889e00
[   44.828944]  which belongs to the cache kmalloc-128 of size 128
[   44.841445] The buggy address is located 117 bytes inside of
[   44.841445]  allocated 120-byte region [ffff000801889e00, ffff000801889e78)
[   44.854029] 
[   44.855508] The buggy address belongs to the physical page:
[   44.861067] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881888
[   44.869048] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   44.876686] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   44.883630] page_type: f5(slab)
[   44.886767] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   44.894486] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   44.902214] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   44.910024] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   44.917837] head: 0bfffe0000000001 fffffdffe0062201 00000000ffffffff 00000000ffffffff
[   44.925649] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   44.933454] page dumped because: kasan: bad access detected
[   44.939011] 
[   44.940487] Memory state around the buggy address:
[   44.945267]  ffff000801889d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   44.952468]  ffff000801889d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   44.959675] >ffff000801889e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   44.966874]                                                                 ^
[   44.973996]  ffff000801889e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   44.981201]  ffff000801889f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   44.988404] ==================================================================

[   30.626354] ==================================================================
[   30.626408] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300
[   30.626476] Write of size 4 at addr fff00000c64f4975 by task kunit_try_catch/206
[   30.626523] 
[   30.626553] CPU: 0 UID: 0 PID: 206 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   30.626899] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.626961] Hardware name: linux,dummy-virt (DT)
[   30.627043] Call trace:
[   30.627087]  show_stack+0x20/0x38 (C)
[   30.627143]  dump_stack_lvl+0x8c/0xd0
[   30.627190]  print_report+0x118/0x5d0
[   30.627233]  kasan_report+0xdc/0x128
[   30.627275]  kasan_check_range+0x100/0x1a8
[   30.627329]  __asan_memset+0x34/0x78
[   30.627384]  kmalloc_oob_memset_4+0x150/0x300
[   30.627431]  kunit_try_run_case+0x170/0x3f0
[   30.627489]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.627538]  kthread+0x328/0x630
[   30.627791]  ret_from_fork+0x10/0x20
[   30.627873] 
[   30.627891] Allocated by task 206:
[   30.627919]  kasan_save_stack+0x3c/0x68
[   30.627960]  kasan_save_track+0x20/0x40
[   30.627999]  kasan_save_alloc_info+0x40/0x58
[   30.628232]  __kasan_kmalloc+0xd4/0xd8
[   30.628379]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.628495]  kmalloc_oob_memset_4+0xb0/0x300
[   30.628579]  kunit_try_run_case+0x170/0x3f0
[   30.628667]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.628738]  kthread+0x328/0x630
[   30.628772]  ret_from_fork+0x10/0x20
[   30.628923] 
[   30.628944] The buggy address belongs to the object at fff00000c64f4900
[   30.628944]  which belongs to the cache kmalloc-128 of size 128
[   30.629044] The buggy address is located 117 bytes inside of
[   30.629044]  allocated 120-byte region [fff00000c64f4900, fff00000c64f4978)
[   30.629194] 
[   30.629241] The buggy address belongs to the physical page:
[   30.629298] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064f4
[   30.629398] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.629528] page_type: f5(slab)
[   30.629593] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.629674] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.630039] page dumped because: kasan: bad access detected
[   30.630123] 
[   30.630181] Memory state around the buggy address:
[   30.630213]  fff00000c64f4800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.630254]  fff00000c64f4880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.630293] >fff00000c64f4900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.630478]                                                                 ^
[   30.630643]  fff00000c64f4980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.630769]  fff00000c64f4a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.630881] ==================================================================

[   24.151683] ==================================================================
[   24.152238] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330
[   24.152481] Write of size 4 at addr ffff8881041b9875 by task kunit_try_catch/222
[   24.153510] 
[   24.153847] CPU: 0 UID: 0 PID: 222 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   24.153905] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.153919] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.154041] Call Trace:
[   24.154061]  <TASK>
[   24.154080]  dump_stack_lvl+0x73/0xb0
[   24.154120]  print_report+0xd1/0x610
[   24.154148]  ? __virt_addr_valid+0x1db/0x2d0
[   24.154187]  ? kmalloc_oob_memset_4+0x166/0x330
[   24.154214]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.154246]  ? kmalloc_oob_memset_4+0x166/0x330
[   24.154274]  kasan_report+0x141/0x180
[   24.154301]  ? kmalloc_oob_memset_4+0x166/0x330
[   24.154334]  kasan_check_range+0x10c/0x1c0
[   24.154363]  __asan_memset+0x27/0x50
[   24.154391]  kmalloc_oob_memset_4+0x166/0x330
[   24.154419]  ? __pfx_kmalloc_oob_memset_4+0x10/0x10
[   24.154447]  ? __schedule+0x10cc/0x2b60
[   24.154479]  ? __pfx_read_tsc+0x10/0x10
[   24.154505]  ? ktime_get_ts64+0x86/0x230
[   24.154549]  kunit_try_run_case+0x1a5/0x480
[   24.154578]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.154604]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.154631]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.154690]  ? __kthread_parkme+0x82/0x180
[   24.154716]  ? preempt_count_sub+0x50/0x80
[   24.154745]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.154773]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.154804]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.154836]  kthread+0x337/0x6f0
[   24.154860]  ? trace_preempt_on+0x20/0xc0
[   24.154889]  ? __pfx_kthread+0x10/0x10
[   24.154915]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.154944]  ? calculate_sigpending+0x7b/0xa0
[   24.154973]  ? __pfx_kthread+0x10/0x10
[   24.155000]  ret_from_fork+0x116/0x1d0
[   24.155025]  ? __pfx_kthread+0x10/0x10
[   24.155050]  ret_from_fork_asm+0x1a/0x30
[   24.155090]  </TASK>
[   24.155103] 
[   24.168977] Allocated by task 222:
[   24.169294]  kasan_save_stack+0x45/0x70
[   24.169501]  kasan_save_track+0x18/0x40
[   24.169675]  kasan_save_alloc_info+0x3b/0x50
[   24.170148]  __kasan_kmalloc+0xb7/0xc0
[   24.170516]  __kmalloc_cache_noprof+0x189/0x420
[   24.171006]  kmalloc_oob_memset_4+0xac/0x330
[   24.171312]  kunit_try_run_case+0x1a5/0x480
[   24.171461]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.171961]  kthread+0x337/0x6f0
[   24.172294]  ret_from_fork+0x116/0x1d0
[   24.172677]  ret_from_fork_asm+0x1a/0x30
[   24.173119] 
[   24.173293] The buggy address belongs to the object at ffff8881041b9800
[   24.173293]  which belongs to the cache kmalloc-128 of size 128
[   24.173982] The buggy address is located 117 bytes inside of
[   24.173982]  allocated 120-byte region [ffff8881041b9800, ffff8881041b9878)
[   24.174350] 
[   24.174421] The buggy address belongs to the physical page:
[   24.174623] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1041b9
[   24.175027] flags: 0x200000000000000(node=0|zone=2)
[   24.175289] page_type: f5(slab)
[   24.175437] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   24.175677] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   24.176163] page dumped because: kasan: bad access detected
[   24.176402] 
[   24.176469] Memory state around the buggy address:
[   24.176661]  ffff8881041b9700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.177035]  ffff8881041b9780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.177334] >ffff8881041b9800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   24.177631]                                                                 ^
[   24.177986]  ffff8881041b9880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.178301]  ffff8881041b9900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.178599] ==================================================================