detected buffer overflow in strlen ------------[ cut here ]------------ NFS: bad mount option value specified: v| kernel BUG at lib/string.c:1051! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: netlink: 5 bytes leftover after parsing attributes in process `syz-executor2'. (ftrace buffer empty) netlink: 5 bytes leftover after parsing attributes in process `syz-executor2'. Modules linked in: CPU: 1 PID: 28630 Comm: syz-executor3 Not tainted 4.14.0-rc2+ #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801bf298580 task.stack: ffff8801c8c68000 RIP: 0010:fortify_panic+0x13/0x20 lib/string.c:1050 RSP: 0018:ffff8801c8c6f9b0 EFLAGS: 00010282 RAX: 0000000000000022 RBX: 1ffff1003918df3a RCX: 0000000000000000 RDX: 0000000000000022 RSI: ffffffff8158b26e RDI: ffffed003918df2a RBP: ffff8801c8c6f9b0 R08: ffff8801c8c6f0a0 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000024 R13: dffffc0000000000 R14: 0000000000001000 R15: ffff8801c8c6faf8 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f77eab40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000dbc21000 CR3: 00000001c3848000 CR4: 00000000001406e0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: strlen include/linux/string.h:265 [inline] strlcpy include/linux/string.h:288 [inline] xt_copy_counters_from_user+0x38d/0x3b0 net/netfilter/x_tables.c:895 do_add_counters+0x96/0x550 net/ipv6/netfilter/ip6_tables.c:1181 compat_do_ip6t_set_ctl+0xc5/0x150 net/ipv6/netfilter/ip6_tables.c:1556 compat_nf_sockopt net/netfilter/nf_sockopt.c:143 [inline] compat_nf_setsockopt+0x88/0x130 net/netfilter/nf_sockopt.c:155 compat_ipv6_setsockopt+0x13a/0x1e0 net/ipv6/ipv6_sockglue.c:954 inet_csk_compat_setsockopt+0x95/0x120 net/ipv4/inet_connection_sock.c:1045 compat_tcp_setsockopt+0x3d/0x70 net/ipv4/tcp.c:2810 compat_sock_common_setsockopt+0xb2/0x140 net/core/sock.c:2971 C_SYSC_setsockopt net/compat.c:403 [inline] compat_SyS_setsockopt+0x17c/0x410 net/compat.c:386 do_syscall_32_irqs_on arch/x86/entry/common.c:329 [inline] do_fast_syscall_32+0x3f2/0xf05 arch/x86/entry/common.c:391 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor2'. RIP: 0023:0xf7feec79 RSP: 002b:00000000f77ea05c EFLAGS: 00000296 ORIG_RAX: 000000000000016e RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 0000000000000029 RDX: 0000000000000041 RSI: 0000000020f85000 RDI: 0000000000001000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Code: 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 89 df e8 e2 8d d1 fc eb de 55 48 89 fe 48 c7 c7 80 0e 4a 85 48 89 e5 e8 d2 84 87 fc <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 41 57 41 56 RIP: fortify_panic+0x13/0x20 lib/string.c:1050 RSP: ffff8801c8c6f9b0 ---[ end trace 44809bf44dbffbae ]--- netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. handle_userfault: 45 callbacks suppressed FAULT_FLAG_ALLOW_RETRY missing 70 CPU: 1 PID: 28631 Comm: syz-executor0 Tainted: G D 4.14.0-rc2+ #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 handle_userfault+0x11ec/0x23a0 fs/userfaultfd.c:427 do_anonymous_page mm/memory.c:3095 [inline] handle_pte_fault mm/memory.c:3908 [inline] __handle_mm_fault+0x2d46/0x39c0 mm/memory.c:4034 handle_mm_fault+0x334/0x8d0 mm/memory.c:4071 __do_page_fault+0x4f6/0xb60 arch/x86/mm/fault.c:1444 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1519 page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1066 RIP: 0023:0x8073f4f RSP: 002b:00000000f77b5bd0 EFLAGS: 00010206 RAX: 00000000f77b5c8c RBX: 0000000000000400 RCX: 0000000000000007 RDX: 00000000f77b6a88 RSI: 0000000020012ff0 RDI: 00000000f77b5c8c RBP: 0000000008128000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FAULT_FLAG_ALLOW_RETRY missing 20 CPU: 0 PID: 28639 Comm: syz-executor0 Tainted: G D 4.14.0-rc2+ #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 handle_userfault+0x11ec/0x23a0 fs/userfaultfd.c:427 do_anonymous_page mm/memory.c:3095 [inline] handle_pte_fault mm/memory.c:3908 [inline] __handle_mm_fault+0x2d46/0x39c0 mm/memory.c:4034 handle_mm_fault+0x334/0x8d0 mm/memory.c:4071 faultin_page mm/gup.c:502 [inline] __get_user_pages+0x50c/0x15f0 mm/gup.c:699 __get_user_pages_locked mm/gup.c:910 [inline] __get_user_pages_unlocked mm/gup.c:984 [inline] get_user_pages_unlocked+0x23d/0x460 mm/gup.c:1009 get_user_pages_fast+0x91/0xd0 mm/gup.c:1752 get_futex_key+0x461/0x1d50 kernel/futex.c:547 futex_requeue+0x38a/0x2370 kernel/futex.c:1884 do_futex+0x7f5/0x20d0 kernel/futex.c:3477 C_SYSC_futex kernel/futex_compat.c:200 [inline] compat_SyS_futex+0x27f/0x380 kernel/futex_compat.c:174 do_syscall_32_irqs_on arch/x86/entry/common.c:329 [inline] do_fast_syscall_32+0x3f2/0xf05 arch/x86/entry/common.c:391 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 RIP: 0023:0xf7fbac79 RSP: 002b:00000000f779505c EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 RAX: ffffffffffffffda RBX: 0000000020013ffc RCX: 0000000000000004 RDX: 0000000000000031 RSI: 0000000020002ff0 RDI: 0000000020000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000