================================================================== BUG: KASAN: vmalloc-out-of-bounds in memcmp+0x16f/0x1c0 lib/string.c:770 Read of size 8 at addr ffffffffa0006100 by task syz-executor.4/31671 CPU: 1 PID: 31671 Comm: syz-executor.4 Not tainted 5.17.0-rc6-next-20220303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 memcmp+0x16f/0x1c0 lib/string.c:770 memcmp include/linux/fortify-string.h:404 [inline] __text_poke+0x5a2/0x8c0 arch/x86/kernel/alternative.c:1056 text_poke_copy+0x66/0xa0 arch/x86/kernel/alternative.c:1132 bpf_arch_text_copy+0x21/0x40 arch/x86/net/bpf_jit_comp.c:2429 bpf_jit_binary_pack_finalize+0x43/0x170 kernel/bpf/core.c:1099 bpf_int_jit_compile+0x9ea/0x1300 arch/x86/net/bpf_jit_comp.c:2386 bpf_prog_select_runtime+0x4d4/0x8a0 kernel/bpf/core.c:2167 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1294 bpf_prepare_filter net/core/filter.c:1342 [inline] __get_filter+0x357/0x4e0 net/core/filter.c:1511 sk_attach_filter+0x1c/0x170 net/core/filter.c:1526 sock_setsockopt+0x2104/0x2d70 net/core/sock.c:1227 __sys_setsockopt+0x55e/0x6a0 net/socket.c:2176 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f485e089049 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f485f291168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f485e19bf60 RCX: 00007f485e089049 RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00007f485e0e308d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000480 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd5437cdff R14: 00007f485f291300 R15: 0000000000022000 Memory state around the buggy address: ffffffffa0006000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffffffa0006080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffffffa0006100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffffffa0006180: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffffffa0006200: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================