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

Environment
e850-96

[   28.008063] ==================================================================
[   28.017624] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8
[   28.024825] Write of size 8 at addr ffff000801f1c371 by task kunit_try_catch/221
[   28.032201] 
[   28.033688] CPU: 7 UID: 0 PID: 221 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   28.033743] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.033758] Hardware name: WinLink E850-96 board (DT)
[   28.033779] Call trace:
[   28.033794]  show_stack+0x20/0x38 (C)
[   28.033831]  dump_stack_lvl+0x8c/0xd0
[   28.033866]  print_report+0x118/0x608
[   28.033899]  kasan_report+0xdc/0x128
[   28.033929]  kasan_check_range+0x100/0x1a8
[   28.033964]  __asan_memset+0x34/0x78
[   28.033998]  kmalloc_oob_memset_8+0x150/0x2f8
[   28.034026]  kunit_try_run_case+0x170/0x3f0
[   28.034056]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.034091]  kthread+0x328/0x630
[   28.034126]  ret_from_fork+0x10/0x20
[   28.034158] 
[   28.100777] Allocated by task 221:
[   28.104165]  kasan_save_stack+0x3c/0x68
[   28.107981]  kasan_save_track+0x20/0x40
[   28.111801]  kasan_save_alloc_info+0x40/0x58
[   28.116054]  __kasan_kmalloc+0xd4/0xd8
[   28.119786]  __kmalloc_cache_noprof+0x15c/0x3c0
[   28.124300]  kmalloc_oob_memset_8+0xb0/0x2f8
[   28.128554]  kunit_try_run_case+0x170/0x3f0
[   28.132720]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.138189]  kthread+0x328/0x630
[   28.141401]  ret_from_fork+0x10/0x20
[   28.144960] 
[   28.146436] The buggy address belongs to the object at ffff000801f1c300
[   28.146436]  which belongs to the cache kmalloc-128 of size 128
[   28.158938] The buggy address is located 113 bytes inside of
[   28.158938]  allocated 120-byte region [ffff000801f1c300, ffff000801f1c378)
[   28.171522] 
[   28.173001] The buggy address belongs to the physical page:
[   28.178557] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881f1c
[   28.186541] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   28.194179] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   28.201123] page_type: f5(slab)
[   28.204261] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   28.211979] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   28.219706] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   28.227517] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   28.235330] head: 0bfffe0000000001 fffffdffe007c701 00000000ffffffff 00000000ffffffff
[   28.243142] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   28.250949] page dumped because: kasan: bad access detected
[   28.256503] 
[   28.257979] Memory state around the buggy address:
[   28.262758]  ffff000801f1c200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   28.269962]  ffff000801f1c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.277166] >ffff000801f1c300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   28.284367]                                                                 ^
[   28.291489]  ffff000801f1c380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.298695]  ffff000801f1c400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.305896] ==================================================================