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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   44.997342] ==================================================================
[   45.006897] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   45.014099] Write of size 8 at addr ffff000801889f71 by task kunit_try_catch/257
[   45.021474] 
[   45.022961] CPU: 2 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   45.023016] Tainted: [B]=BAD_PAGE, [N]=TEST
[   45.023032] Hardware name: WinLink E850-96 board (DT)
[   45.023054] Call trace:
[   45.023068]  show_stack+0x20/0x38 (C)
[   45.023101]  dump_stack_lvl+0x8c/0xd0
[   45.023135]  print_report+0x118/0x5d0
[   45.023164]  kasan_report+0xdc/0x128
[   45.023189]  kasan_check_range+0x100/0x1a8
[   45.023222]  __asan_memset+0x34/0x78
[   45.023250]  kmalloc_oob_memset_8+0x150/0x2f8
[   45.023280]  kunit_try_run_case+0x170/0x3f0
[   45.023311]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.023343]  kthread+0x328/0x630
[   45.023371]  ret_from_fork+0x10/0x20
[   45.023405] 
[   45.090052] Allocated by task 257:
[   45.093438]  kasan_save_stack+0x3c/0x68
[   45.097254]  kasan_save_track+0x20/0x40
[   45.101075]  kasan_save_alloc_info+0x40/0x58
[   45.105327]  __kasan_kmalloc+0xd4/0xd8
[   45.109059]  __kmalloc_cache_noprof+0x16c/0x3c0
[   45.113573]  kmalloc_oob_memset_8+0xb0/0x2f8
[   45.117827]  kunit_try_run_case+0x170/0x3f0
[   45.121993]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.127462]  kthread+0x328/0x630
[   45.130674]  ret_from_fork+0x10/0x20
[   45.134233] 
[   45.135710] The buggy address belongs to the object at ffff000801889f00
[   45.135710]  which belongs to the cache kmalloc-128 of size 128
[   45.148211] The buggy address is located 113 bytes inside of
[   45.148211]  allocated 120-byte region [ffff000801889f00, ffff000801889f78)
[   45.160795] 
[   45.162273] The buggy address belongs to the physical page:
[   45.167832] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881888
[   45.175814] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   45.183454] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   45.190397] page_type: f5(slab)
[   45.193534] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   45.201252] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   45.208980] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   45.216790] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   45.224603] head: 0bfffe0000000001 fffffdffe0062201 00000000ffffffff 00000000ffffffff
[   45.232415] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   45.240222] page dumped because: kasan: bad access detected
[   45.245776] 
[   45.247252] Memory state around the buggy address:
[   45.252035]  ffff000801889e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   45.259235]  ffff000801889e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   45.266439] >ffff000801889f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   45.273640]                                                                 ^
[   45.280762]  ffff000801889f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   45.287968]  ffff00080188a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   45.295168] ==================================================================

[   30.635559] ==================================================================
[   30.635613] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   30.635663] Write of size 8 at addr fff00000c64f4a71 by task kunit_try_catch/208
[   30.635710] 
[   30.635741] CPU: 0 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   30.635822] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.635847] Hardware name: linux,dummy-virt (DT)
[   30.635876] Call trace:
[   30.635897]  show_stack+0x20/0x38 (C)
[   30.635943]  dump_stack_lvl+0x8c/0xd0
[   30.635989]  print_report+0x118/0x5d0
[   30.636032]  kasan_report+0xdc/0x128
[   30.636073]  kasan_check_range+0x100/0x1a8
[   30.636117]  __asan_memset+0x34/0x78
[   30.636160]  kmalloc_oob_memset_8+0x150/0x2f8
[   30.636207]  kunit_try_run_case+0x170/0x3f0
[   30.636252]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.636301]  kthread+0x328/0x630
[   30.636342]  ret_from_fork+0x10/0x20
[   30.636389] 
[   30.636406] Allocated by task 208:
[   30.636432]  kasan_save_stack+0x3c/0x68
[   30.636523]  kasan_save_track+0x20/0x40
[   30.636561]  kasan_save_alloc_info+0x40/0x58
[   30.636742]  __kasan_kmalloc+0xd4/0xd8
[   30.636893]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.637032]  kmalloc_oob_memset_8+0xb0/0x2f8
[   30.637161]  kunit_try_run_case+0x170/0x3f0
[   30.637261]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.637332]  kthread+0x328/0x630
[   30.637487]  ret_from_fork+0x10/0x20
[   30.637560] 
[   30.637580] The buggy address belongs to the object at fff00000c64f4a00
[   30.637580]  which belongs to the cache kmalloc-128 of size 128
[   30.637658] The buggy address is located 113 bytes inside of
[   30.637658]  allocated 120-byte region [fff00000c64f4a00, fff00000c64f4a78)
[   30.637718] 
[   30.637903] The buggy address belongs to the physical page:
[   30.637935] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064f4
[   30.637986] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.638033] page_type: f5(slab)
[   30.638140] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.638243] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.638318] page dumped because: kasan: bad access detected
[   30.638396] 
[   30.638520] Memory state around the buggy address:
[   30.638608]  fff00000c64f4900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.638740]  fff00000c64f4980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.638787] >fff00000c64f4a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.638907]                                                                 ^
[   30.639016]  fff00000c64f4a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.639097]  fff00000c64f4b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.639138] ==================================================================

[   24.182222] ==================================================================
[   24.182792] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330
[   24.183347] Write of size 8 at addr ffff888105654c71 by task kunit_try_catch/224
[   24.183741] 
[   24.183899] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   24.183996] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.184043] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.184062] Call Trace:
[   24.184074]  <TASK>
[   24.184089]  dump_stack_lvl+0x73/0xb0
[   24.184131]  print_report+0xd1/0x610
[   24.184154]  ? __virt_addr_valid+0x1db/0x2d0
[   24.184176]  ? kmalloc_oob_memset_8+0x166/0x330
[   24.184197]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.184223]  ? kmalloc_oob_memset_8+0x166/0x330
[   24.184244]  kasan_report+0x141/0x180
[   24.184266]  ? kmalloc_oob_memset_8+0x166/0x330
[   24.184292]  kasan_check_range+0x10c/0x1c0
[   24.184315]  __asan_memset+0x27/0x50
[   24.184338]  kmalloc_oob_memset_8+0x166/0x330
[   24.184360]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   24.184384]  ? __pfx_kmalloc_oob_memset_8+0x10/0x10
[   24.184410]  kunit_try_run_case+0x1a5/0x480
[   24.184432]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.184453]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.184475]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.184497]  ? __kthread_parkme+0x82/0x180
[   24.184516]  ? preempt_count_sub+0x50/0x80
[   24.184551]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.184655]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.184684]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.184712]  kthread+0x337/0x6f0
[   24.184732]  ? trace_preempt_on+0x20/0xc0
[   24.184755]  ? __pfx_kthread+0x10/0x10
[   24.184775]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.184800]  ? calculate_sigpending+0x7b/0xa0
[   24.184823]  ? __pfx_kthread+0x10/0x10
[   24.184845]  ret_from_fork+0x116/0x1d0
[   24.184863]  ? __pfx_kthread+0x10/0x10
[   24.184884]  ret_from_fork_asm+0x1a/0x30
[   24.184915]  </TASK>
[   24.184926] 
[   24.192389] Allocated by task 224:
[   24.192513]  kasan_save_stack+0x45/0x70
[   24.192863]  kasan_save_track+0x18/0x40
[   24.193059]  kasan_save_alloc_info+0x3b/0x50
[   24.193264]  __kasan_kmalloc+0xb7/0xc0
[   24.193433]  __kmalloc_cache_noprof+0x189/0x420
[   24.193668]  kmalloc_oob_memset_8+0xac/0x330
[   24.193929]  kunit_try_run_case+0x1a5/0x480
[   24.194101]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.194274]  kthread+0x337/0x6f0
[   24.194430]  ret_from_fork+0x116/0x1d0
[   24.194684]  ret_from_fork_asm+0x1a/0x30
[   24.195037] 
[   24.195158] The buggy address belongs to the object at ffff888105654c00
[   24.195158]  which belongs to the cache kmalloc-128 of size 128
[   24.195573] The buggy address is located 113 bytes inside of
[   24.195573]  allocated 120-byte region [ffff888105654c00, ffff888105654c78)
[   24.196196] 
[   24.196287] The buggy address belongs to the physical page:
[   24.196505] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105654
[   24.196982] flags: 0x200000000000000(node=0|zone=2)
[   24.197220] page_type: f5(slab)
[   24.197376] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   24.197798] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   24.198023] page dumped because: kasan: bad access detected
[   24.198251] 
[   24.198349] Memory state around the buggy address:
[   24.198578]  ffff888105654b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.198851]  ffff888105654b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.199077] >ffff888105654c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   24.199387]                                                                 ^
[   24.199989]  ffff888105654c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.200284]  ffff888105654d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.200634] ==================================================================