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

Environment
e850-96

[   27.087843] ==================================================================
[   27.096978] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   27.104266] Write of size 128 at addr ffff000801ede600 by task kunit_try_catch/215
[   27.111817] 
[   27.113302] CPU: 6 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   27.113358] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.113375] Hardware name: WinLink E850-96 board (DT)
[   27.113395] Call trace:
[   27.113407]  show_stack+0x20/0x38 (C)
[   27.113443]  dump_stack_lvl+0x8c/0xd0
[   27.113478]  print_report+0x118/0x608
[   27.113512]  kasan_report+0xdc/0x128
[   27.113541]  kasan_check_range+0x100/0x1a8
[   27.113578]  __asan_memset+0x34/0x78
[   27.113611]  kmalloc_oob_in_memset+0x144/0x2d0
[   27.113641]  kunit_try_run_case+0x170/0x3f0
[   27.113674]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.113711]  kthread+0x328/0x630
[   27.113745]  ret_from_fork+0x10/0x20
[   27.113779] 
[   27.180478] Allocated by task 215:
[   27.183866]  kasan_save_stack+0x3c/0x68
[   27.187683]  kasan_save_track+0x20/0x40
[   27.191502]  kasan_save_alloc_info+0x40/0x58
[   27.195755]  __kasan_kmalloc+0xd4/0xd8
[   27.199488]  __kmalloc_cache_noprof+0x15c/0x3c0
[   27.204002]  kmalloc_oob_in_memset+0xb0/0x2d0
[   27.208342]  kunit_try_run_case+0x170/0x3f0
[   27.212508]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.217977]  kthread+0x328/0x630
[   27.221189]  ret_from_fork+0x10/0x20
[   27.224748] 
[   27.226225] The buggy address belongs to the object at ffff000801ede600
[   27.226225]  which belongs to the cache kmalloc-128 of size 128
[   27.238726] The buggy address is located 0 bytes inside of
[   27.238726]  allocated 120-byte region [ffff000801ede600, ffff000801ede678)
[   27.251136] 
[   27.252616] The buggy address belongs to the physical page:
[   27.258171] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881ede
[   27.266155] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   27.273795] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   27.280738] page_type: f5(slab)
[   27.283876] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   27.291594] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   27.299321] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   27.307132] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   27.314945] head: 0bfffe0000000001 fffffdffe007b781 00000000ffffffff 00000000ffffffff
[   27.322757] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   27.330562] page dumped because: kasan: bad access detected
[   27.336118] 
[   27.337593] Memory state around the buggy address:
[   27.342376]  ffff000801ede500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   27.349576]  ffff000801ede580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.356782] >ffff000801ede600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   27.363982]                                                                 ^
[   27.371103]  ffff000801ede680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.378308]  ffff000801ede700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.385511] ==================================================================