================================================================== BUG: KASAN: slab-out-of-bounds in instrument_copy_to_user include/linux/instrumented.h:118 [inline] BUG: KASAN: slab-out-of-bounds in _copy_to_user lib/usercopy.c:32 [inline] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0xc7/0x150 lib/usercopy.c:26 Read of size 42 at addr ffff88802eeb4380 by task syz-executor.0/11264 CPU: 0 PID: 11264 Comm: syz-executor.0 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 instrument_copy_to_user include/linux/instrumented.h:118 [inline] _copy_to_user lib/usercopy.c:32 [inline] _copy_to_user+0xc7/0x150 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:200 [inline] __htab_map_lookup_and_delete_batch+0xef4/0x1860 kernel/bpf/hashtab.c:1588 bpf_map_do_batch+0x3d5/0x510 kernel/bpf/syscall.c:3996 __do_sys_bpf+0x1902/0x4f00 kernel/bpf/syscall.c:4448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465f69 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f61bc3b9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465f69 RDX: 0000000000000038 RSI: 0000000020000080 RDI: 0000000000000019 RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffe092032cf R14: 00007f61bc3b9300 R15: 0000000000022000 Allocated by task 11264: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:401 [inline] ____kasan_kmalloc.constprop.0+0x82/0xa0 mm/kasan/common.c:429 kmalloc_node include/linux/slab.h:577 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:587 kvmalloc include/linux/mm.h:781 [inline] __htab_map_lookup_and_delete_batch+0x513/0x1860 kernel/bpf/hashtab.c:1467 bpf_map_do_batch+0x3d5/0x510 kernel/bpf/syscall.c:3996 __do_sys_bpf+0x1902/0x4f00 kernel/bpf/syscall.c:4448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae The buggy address belongs to the object at ffff88802eeb4380 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88802eeb4380, ffff88802eeb43c0) The buggy address belongs to the page: page:00000000b6f4c9e5 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2eeb4 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea0000473c80 0000000900000009 ffff888010c418c0 raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88802eeb4280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802eeb4300: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88802eeb4380: 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802eeb4400: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff88802eeb4480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================