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

Environment
e850-96

[   20.903028] ==================================================================
[   20.913484] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   20.920767] Write of size 1 at addr ffff000806189f00 by task kunit_try_catch/189
[   20.928141] 
[   20.929629] CPU: 7 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   20.929687] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.929702] Hardware name: WinLink E850-96 board (DT)
[   20.929723] Call trace:
[   20.929735]  show_stack+0x20/0x38 (C)
[   20.929772]  dump_stack_lvl+0x8c/0xd0
[   20.929806]  print_report+0x118/0x608
[   20.929842]  kasan_report+0xdc/0x128
[   20.929872]  __asan_report_store1_noabort+0x20/0x30
[   20.929911]  kmalloc_big_oob_right+0x2a4/0x2f0
[   20.929939]  kunit_try_run_case+0x170/0x3f0
[   20.929972]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.930007]  kthread+0x328/0x630
[   20.930042]  ret_from_fork+0x10/0x20
[   20.930078] 
[   20.994026] Allocated by task 189:
[   20.997415]  kasan_save_stack+0x3c/0x68
[   21.001230]  kasan_save_track+0x20/0x40
[   21.005049]  kasan_save_alloc_info+0x40/0x58
[   21.009303]  __kasan_kmalloc+0xd4/0xd8
[   21.013036]  __kmalloc_cache_noprof+0x15c/0x3c0
[   21.017549]  kmalloc_big_oob_right+0xb8/0x2f0
[   21.021891]  kunit_try_run_case+0x170/0x3f0
[   21.026056]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.031525]  kthread+0x328/0x630
[   21.034737]  ret_from_fork+0x10/0x20
[   21.038295] 
[   21.039774] The buggy address belongs to the object at ffff000806188000
[   21.039774]  which belongs to the cache kmalloc-8k of size 8192
[   21.052274] The buggy address is located 0 bytes to the right of
[   21.052274]  allocated 7936-byte region [ffff000806188000, ffff000806189f00)
[   21.065292] 
[   21.066771] The buggy address belongs to the physical page:
[   21.072326] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x886188
[   21.080310] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.087949] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   21.094894] page_type: f5(slab)
[   21.098031] raw: 0bfffe0000000040 ffff000800003180 dead000000000122 0000000000000000
[   21.105749] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   21.113475] head: 0bfffe0000000040 ffff000800003180 dead000000000122 0000000000000000
[   21.121287] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   21.129100] head: 0bfffe0000000003 fffffdffe0186201 00000000ffffffff 00000000ffffffff
[   21.136912] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   21.144719] page dumped because: kasan: bad access detected
[   21.150273] 
[   21.151749] Memory state around the buggy address:
[   21.156531]  ffff000806189e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.163731]  ffff000806189e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.170936] >ffff000806189f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.178137]                    ^
[   21.181353]  ffff000806189f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.188559]  ffff00080618a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.195760] ==================================================================