Hay
Date
May 15, 2025, 10:38 a.m.

Environment
e850-96

[   28.314757] ==================================================================
[   28.324389] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   28.331678] Write of size 16 at addr ffff000801ede869 by task kunit_try_catch/223
[   28.339141] 
[   28.340628] CPU: 6 UID: 0 PID: 223 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   28.340688] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.340705] Hardware name: WinLink E850-96 board (DT)
[   28.340725] Call trace:
[   28.340738]  show_stack+0x20/0x38 (C)
[   28.340776]  dump_stack_lvl+0x8c/0xd0
[   28.340807]  print_report+0x118/0x608
[   28.340842]  kasan_report+0xdc/0x128
[   28.340872]  kasan_check_range+0x100/0x1a8
[   28.340905]  __asan_memset+0x34/0x78
[   28.340937]  kmalloc_oob_memset_16+0x150/0x2f8
[   28.340966]  kunit_try_run_case+0x170/0x3f0
[   28.340998]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.341037]  kthread+0x328/0x630
[   28.341071]  ret_from_fork+0x10/0x20
[   28.341104] 
[   28.407804] Allocated by task 223:
[   28.411192]  kasan_save_stack+0x3c/0x68
[   28.415008]  kasan_save_track+0x20/0x40
[   28.418827]  kasan_save_alloc_info+0x40/0x58
[   28.423081]  __kasan_kmalloc+0xd4/0xd8
[   28.426813]  __kmalloc_cache_noprof+0x15c/0x3c0
[   28.431327]  kmalloc_oob_memset_16+0xb0/0x2f8
[   28.435669]  kunit_try_run_case+0x170/0x3f0
[   28.439834]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.445302]  kthread+0x328/0x630
[   28.448514]  ret_from_fork+0x10/0x20
[   28.452073] 
[   28.453551] The buggy address belongs to the object at ffff000801ede800
[   28.453551]  which belongs to the cache kmalloc-128 of size 128
[   28.466052] The buggy address is located 105 bytes inside of
[   28.466052]  allocated 120-byte region [ffff000801ede800, ffff000801ede878)
[   28.478636] 
[   28.480115] The buggy address belongs to the physical page:
[   28.485670] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881ede
[   28.493655] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   28.501293] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   28.508237] page_type: f5(slab)
[   28.511375] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   28.519093] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   28.526819] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   28.534630] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   28.542444] head: 0bfffe0000000001 fffffdffe007b781 00000000ffffffff 00000000ffffffff
[   28.550255] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   28.558061] page dumped because: kasan: bad access detected
[   28.563617] 
[   28.565092] Memory state around the buggy address:
[   28.569876]  ffff000801ede700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   28.577075]  ffff000801ede780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.584282] >ffff000801ede800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   28.591481]                                                                 ^
[   28.598603]  ffff000801ede880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.605807]  ffff000801ede900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.613010] ==================================================================