Content-Type: multipart/mixed; boundary="===============4544834983637320062==" MIME-Version: 1.0 From: Christoph Paasch To: mptcp at lists.01.org Subject: [MPTCP] [syzkaller] WARNING in ex_handler_uaccess Date: Fri, 24 Jan 2020 10:05:45 -0800 Message-ID: <20200124180545.GJ60524@MacBook-Pro-64.local> X-Status: X-Keywords: X-UID: 3502 --===============4544834983637320062== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Another one, also related to IP socket-options. Not sure if it's the same as the other one. C-Repro: // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] =3D { 0xffffffffffffffff }; int main(void) { syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); intptr_t res =3D 0; res =3D syscall(__NR_socket, 2ul, 1ul, 0x106ul); if (res !=3D -1) r[0] =3D res; syscall(__NR_getsockopt, r[0], 0ul, 0x11ul, 0ul, 0x9999999999999999ul); return 0; } =3D=3D=3D=3D=3D=3D ------------[ cut here ]------------ General protection fault in user access. Non-canonical address? WARNING: CPU: 1 PID: 5352 at arch/x86/mm/extable.c:77 ex_handler_uaccess+0x= ba/0xe0 arch/x86/mm/extable.c:77 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 5352 Comm: syz-executor.6 Not tainted 5.5.0-rc6 #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga= 5cab58e9a3f-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 panic+0x2aa/0x6f7 kernel/panic.c:221 __warn.cold+0x2f/0x3a kernel/panic.c:582 report_bug+0x28b/0x2f0 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:174 [inline] fixup_bug arch/x86/kernel/traps.c:169 [inline] do_error_trap+0x12b/0x1e0 arch/x86/kernel/traps.c:267 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:ex_handler_uaccess+0xba/0xe0 arch/x86/mm/extable.c:77 Code: 1d 4d b7 f8 03 31 ff 89 de e8 12 22 2e 00 84 db 75 80 e8 d9 20 2e 00 = 48 c7 c7 a0 a6 04 84 c6 05 2d b7 f8 03 01 e8 4e 78 03 00 <0f> 0b e9 61 ff f= f ff 48 89 df e8 e7 f6 61 00 eb 87 e8 70 f7 61 00 RSP: 0018:ffff888110d37850 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000000017ae RSI: ffffffff81290f0d RDI: ffffed10221a6efc RBP: ffff888110d378d8 R08: ffff8881168a17c0 R09: fffffbfff0c270ad R10: fffffbfff0c270ac R11: ffffffff86138567 R12: ffffffff848730cc R13: 000000000000000d R14: 0000000000000000 R15: 0000000000000000 fixup_exception+0x9d/0xcd arch/x86/mm/extable.c:178 do_general_protection+0xa2/0x300 arch/x86/kernel/traps.c:543 general_protection+0x2d/0x40 arch/x86/entry/entry_64.S:1202 RIP: 0010:__get_user_4+0x21/0x30 arch/x86/lib/getuser.S:78 Code: 50 ff 31 c0 0f 1f 00 c3 90 48 83 c0 03 72 5d 65 48 8b 14 25 00 0f 02 = 00 48 3b 82 10 13 00 00 73 4b 48 19 d2 48 21 d0 0f 1f 00 <8b> 50 fd 31 c0 0= f 1f 00 c3 66 0f 1f 44 00 00 48 83 c0 07 72 2d 65 RSP: 0018:ffff888110d37980 EFLAGS: 00010286 RAX: 999999999999999c RBX: 00000000ffffff49 RCX: ffffc90002e91000 RDX: ffffffffffffffff RSI: ffffffff831df23d RDI: 0000000000000007 RBP: ffff888112710b80 R08: ffff8881168a17c0 R09: 0000000000000000 R10: ffffed1022d142f8 R11: ffff8881168a17c7 R12: 0000000000000011 R13: 0000000000000011 R14: 1ffff110221a6f35 R15: 0000000020000240 do_ip_getsockopt+0x1f6/0x1860 net/ipv4/ip_sockglue.c:1323 ip_getsockopt+0x87/0x1c0 net/ipv4/ip_sockglue.c:1561 tcp_getsockopt net/ipv4/tcp.c:3691 [inline] tcp_getsockopt+0x8c/0xd0 net/ipv4/tcp.c:3685 kernel_getsockopt+0x121/0x1f0 net/socket.c:3736 mptcp_getsockopt+0x69/0x90 net/mptcp/protocol.c:830 __sys_getsockopt+0x13a/0x220 net/socket.c:2175 __do_sys_getsockopt net/socket.c:2190 [inline] __se_sys_getsockopt net/socket.c:2187 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2187 do_syscall_64+0xbd/0x5b0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f6c40ace469 Code: 00 f3 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 f= f 73 01 c3 48 8b 0d ff 49 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007f6c411bedd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 000000000066bf00 RCX: 00007f6c40ace469 RDX: 0000000000000011 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00000000ffffffff R08: 9999999999999999 R09: 0000000000000000 R10: 0000000020000240 R11: 0000000000000246 R12: 000000000000016b R13: 0000000000435308 R14: 00007f6c411bf5c0 R15: 0000000000000003 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 1 seconds.. --===============4544834983637320062==--