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

Environment
e850-96

[   20.131718] ==================================================================
[   20.140921] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   20.148295] Read of size 1 at addr ffff000805615000 by task kunit_try_catch/185
[   20.155585] 
[   20.157069] CPU: 6 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   20.157126] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.157143] Hardware name: WinLink E850-96 board (DT)
[   20.157165] Call trace:
[   20.157180]  show_stack+0x20/0x38 (C)
[   20.157217]  dump_stack_lvl+0x8c/0xd0
[   20.157248]  print_report+0x118/0x608
[   20.157281]  kasan_report+0xdc/0x128
[   20.157314]  __asan_report_load1_noabort+0x20/0x30
[   20.157349]  kmalloc_node_oob_right+0x2f4/0x330
[   20.157379]  kunit_try_run_case+0x170/0x3f0
[   20.157410]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.157444]  kthread+0x328/0x630
[   20.157479]  ret_from_fork+0x10/0x20
[   20.157512] 
[   20.221469] Allocated by task 185:
[   20.224855]  kasan_save_stack+0x3c/0x68
[   20.228673]  kasan_save_track+0x20/0x40
[   20.232492]  kasan_save_alloc_info+0x40/0x58
[   20.236745]  __kasan_kmalloc+0xd4/0xd8
[   20.240478]  __kmalloc_cache_node_noprof+0x168/0x3d0
[   20.245426]  kmalloc_node_oob_right+0xbc/0x330
[   20.249854]  kunit_try_run_case+0x170/0x3f0
[   20.254019]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.259487]  kthread+0x328/0x630
[   20.262701]  ret_from_fork+0x10/0x20
[   20.266259] 
[   20.267736] The buggy address belongs to the object at ffff000805614000
[   20.267736]  which belongs to the cache kmalloc-4k of size 4096
[   20.280237] The buggy address is located 0 bytes to the right of
[   20.280237]  allocated 4096-byte region [ffff000805614000, ffff000805615000)
[   20.293255] 
[   20.294735] The buggy address belongs to the physical page:
[   20.300290] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x885610
[   20.308273] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   20.315913] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   20.322857] page_type: f5(slab)
[   20.325994] raw: 0bfffe0000000040 ffff000800003040 dead000000000122 0000000000000000
[   20.333712] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   20.341441] head: 0bfffe0000000040 ffff000800003040 dead000000000122 0000000000000000
[   20.349250] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   20.357063] head: 0bfffe0000000003 fffffdffe0158401 00000000ffffffff 00000000ffffffff
[   20.364875] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   20.372680] page dumped because: kasan: bad access detected
[   20.378236] 
[   20.379711] Memory state around the buggy address:
[   20.384494]  ffff000805614f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.391696]  ffff000805614f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.398901] >ffff000805615000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.406100]                    ^
[   20.409315]  ffff000805615080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.416521]  ffff000805615100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.423723] ==================================================================