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

Environment
e850-96

[   28.887789] ==================================================================
[   28.898165] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   28.906062] Read of size 64 at addr ffff000804b57304 by task kunit_try_catch/227
[   28.913438] 
[   28.914926] CPU: 6 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   28.914987] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.915003] Hardware name: WinLink E850-96 board (DT)
[   28.915023] Call trace:
[   28.915035]  show_stack+0x20/0x38 (C)
[   28.915073]  dump_stack_lvl+0x8c/0xd0
[   28.915107]  print_report+0x118/0x608
[   28.915142]  kasan_report+0xdc/0x128
[   28.915174]  kasan_check_range+0x100/0x1a8
[   28.915208]  __asan_memmove+0x3c/0x98
[   28.915242]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   28.915275]  kunit_try_run_case+0x170/0x3f0
[   28.915309]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.915344]  kthread+0x328/0x630
[   28.915379]  ret_from_fork+0x10/0x20
[   28.915413] 
[   28.982796] Allocated by task 227:
[   28.986183]  kasan_save_stack+0x3c/0x68
[   28.990000]  kasan_save_track+0x20/0x40
[   28.993819]  kasan_save_alloc_info+0x40/0x58
[   28.998072]  __kasan_kmalloc+0xd4/0xd8
[   29.001804]  __kmalloc_cache_noprof+0x15c/0x3c0
[   29.006319]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   29.011268]  kunit_try_run_case+0x170/0x3f0
[   29.015433]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.020901]  kthread+0x328/0x630
[   29.024113]  ret_from_fork+0x10/0x20
[   29.027672] 
[   29.029150] The buggy address belongs to the object at ffff000804b57300
[   29.029150]  which belongs to the cache kmalloc-64 of size 64
[   29.041478] The buggy address is located 4 bytes inside of
[   29.041478]  allocated 64-byte region [ffff000804b57300, ffff000804b57340)
[   29.053800] 
[   29.055280] The buggy address belongs to the physical page:
[   29.060835] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x884b57
[   29.068821] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.075330] page_type: f5(slab)
[   29.078465] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000
[   29.086185] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   29.093904] page dumped because: kasan: bad access detected
[   29.099459] 
[   29.100935] Memory state around the buggy address:
[   29.105718]  ffff000804b57200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   29.112917]  ffff000804b57280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   29.120123] >ffff000804b57300: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   29.127323]                                            ^
[   29.132622]  ffff000804b57380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.139829]  ffff000804b57400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.147030] ==================================================================