From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2732356864923305751==" MIME-Version: 1.0 From: syzbot To: mptcp at lists.01.org Subject: [MPTCP] general protection fault in mptcp_sendmsg_frag Date: Wed, 17 Feb 2021 09:30:22 -0800 Message-ID: <000000000000e29ec405bb8b9251@google.com> X-Status: X-Keywords: X-UID: 7825 --===============2732356864923305751== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, syzbot found the following issue on: HEAD commit: 773dc50d Merge branch 'Xilinx-axienet-updates' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=3D1744ba4cd00000 kernel config: https://syzkaller.appspot.com/x/.config?x=3Ddbc1ca9e55dc1f9f dashboard link: https://syzkaller.appspot.com/bug?extid=3D409b0354a6ba83a86= aaf syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D16548404d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D150c2914d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+409b0354a6ba83a86aaf(a)syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc000000= 0007: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] CPU: 0 PID: 8763 Comm: syz-executor836 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Goo= gle 01/01/2011 RIP: 0010:mptcp_sendmsg_frag+0xa3f/0x1220 net/mptcp/protocol.c:1330 Code: 80 3c 02 00 0f 85 04 07 00 00 48 8b 04 24 48 8b 98 20 07 00 00 48 b8 = 00 00 00 00 00 fc ff df 48 8d 7b 38 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c= 0 74 08 3c 03 0f 8e d6 04 00 00 48 8d 7d 10 44 8b RSP: 0018:ffffc90001dff7e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000038 RBP: ffff8880120d9e10 R08: 0000000000000001 R09: ffff8880120d9e10 R10: ffffed100241b3c4 R11: 0000000000000000 R12: ffff88801bf51800 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008000 FS: 00007f0f56768700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000084 CR3: 000000001b547000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mptcp_push_pending+0x2cc/0x650 net/mptcp/protocol.c:1477 mptcp_sendmsg+0x1ffb/0x2830 net/mptcp/protocol.c:1692 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 sock_write_iter+0x289/0x3c0 net/socket.c:999 call_write_iter include/linux/fs.h:1901 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x791/0xa30 fs/read_write.c:605 ksys_write+0x1ee/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4492d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 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 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0f56768318 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004cf4c8 RCX: 00000000004492d9 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000004cf4c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004cf4cc R13: 00007fff4b6baf0f R14: 00007f0f56768400 R15: 0000000000022000 Modules linked in: ---[ end trace a30ad1b3e9650ce6 ]--- RIP: 0010:mptcp_sendmsg_frag+0xa3f/0x1220 net/mptcp/protocol.c:1330 Code: 80 3c 02 00 0f 85 04 07 00 00 48 8b 04 24 48 8b 98 20 07 00 00 48 b8 = 00 00 00 00 00 fc ff df 48 8d 7b 38 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c= 0 74 08 3c 03 0f 8e d6 04 00 00 48 8d 7d 10 44 8b RSP: 0018:ffffc90001dff7e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000038 RBP: ffff8880120d9e10 R08: 0000000000000001 R09: ffff8880120d9e10 R10: ffffed100241b3c4 R11: 0000000000000000 R12: ffff88801bf51800 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008000 FS: 00007f0f56768700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f97dbf78000 CR3: 000000001b547000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller(a)googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches --===============2732356864923305751==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88DADC433E6 for ; Wed, 17 Feb 2021 17:31:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B48C64E68 for ; Wed, 17 Feb 2021 17:31:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232607AbhBQRbT (ORCPT ); Wed, 17 Feb 2021 12:31:19 -0500 Received: from mail-io1-f71.google.com ([209.85.166.71]:55517 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231547AbhBQRbD (ORCPT ); Wed, 17 Feb 2021 12:31:03 -0500 Received: by mail-io1-f71.google.com with SMTP id e9so10690767iok.22 for ; Wed, 17 Feb 2021 09:30:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=W7PZMoQ6/2ZuncEHOYXVO/E5fVdcQhSl2dwt9WT7asE=; b=ncw6UFF5PEKDsGn1eEo9gWX12btTJUcoDVG8dD8XwNlGe1BjdApu9kAe/rIgTW3W+p 5/jqt/p74QI9oOlYA8cGvQ5KDu48IvipN6eJ888AVRWE73jVbQ17V8rnusvoHg9rOkLV x4R2+Ur1AdNWJAYhXVURiitlnsMoEQO80AhKu1cWmsr/5yQnlZzFvT1uqit/y+5xL51X zHYxULgR1lo67fo86HN8rj45Z3q3OTYZJpJy747qPXBwHmdyh5Cf7sYx4ASAUUxhE9WO flurwRZVYW/KHEMg6Fk+xvIDtubuvVAi8HIFIrK0prjIDobQCWmvWajRY16dZ4RRpSdC b+sw== X-Gm-Message-State: AOAM530jQfwV2/Keuu0qpTfVJ8yj2hHL59bFCYu+H4A325W/oTceF/Sf L2yeXmN0k/gw2HDg1I91CPIlbpFe1IlfnYWTM1kbEX8+TSYI X-Google-Smtp-Source: ABdhPJynh6K4gj10z49orQ6DtNdBbnCCeOmfa43dNXzkStpp20ndApto9zr330a3hQKBZBOzGQJjkcZqoQt9s9wKIG4xn1BdvUAc MIME-Version: 1.0 X-Received: by 2002:a05:6e02:152c:: with SMTP id i12mr145560ilu.46.1613583022725; Wed, 17 Feb 2021 09:30:22 -0800 (PST) Date: Wed, 17 Feb 2021 09:30:22 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e29ec405bb8b9251@google.com> Subject: general protection fault in mptcp_sendmsg_frag From: syzbot To: davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, mathew.j.martineau@linux.intel.com, matthieu.baerts@tessares.net, mptcp@lists.01.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 773dc50d Merge branch 'Xilinx-axienet-updates' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1744ba4cd00000 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard link: https://syzkaller.appspot.com/bug?extid=409b0354a6ba83a86aaf syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16548404d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=150c2914d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+409b0354a6ba83a86aaf@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] CPU: 0 PID: 8763 Comm: syz-executor836 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:mptcp_sendmsg_frag+0xa3f/0x1220 net/mptcp/protocol.c:1330 Code: 80 3c 02 00 0f 85 04 07 00 00 48 8b 04 24 48 8b 98 20 07 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 38 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e d6 04 00 00 48 8d 7d 10 44 8b RSP: 0018:ffffc90001dff7e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000038 RBP: ffff8880120d9e10 R08: 0000000000000001 R09: ffff8880120d9e10 R10: ffffed100241b3c4 R11: 0000000000000000 R12: ffff88801bf51800 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008000 FS: 00007f0f56768700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000084 CR3: 000000001b547000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mptcp_push_pending+0x2cc/0x650 net/mptcp/protocol.c:1477 mptcp_sendmsg+0x1ffb/0x2830 net/mptcp/protocol.c:1692 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 sock_write_iter+0x289/0x3c0 net/socket.c:999 call_write_iter include/linux/fs.h:1901 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x791/0xa30 fs/read_write.c:605 ksys_write+0x1ee/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4492d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 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:00007f0f56768318 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004cf4c8 RCX: 00000000004492d9 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000004cf4c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004cf4cc R13: 00007fff4b6baf0f R14: 00007f0f56768400 R15: 0000000000022000 Modules linked in: ---[ end trace a30ad1b3e9650ce6 ]--- RIP: 0010:mptcp_sendmsg_frag+0xa3f/0x1220 net/mptcp/protocol.c:1330 Code: 80 3c 02 00 0f 85 04 07 00 00 48 8b 04 24 48 8b 98 20 07 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 38 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e d6 04 00 00 48 8d 7d 10 44 8b RSP: 0018:ffffc90001dff7e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000038 RBP: ffff8880120d9e10 R08: 0000000000000001 R09: ffff8880120d9e10 R10: ffffed100241b3c4 R11: 0000000000000000 R12: ffff88801bf51800 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008000 FS: 00007f0f56768700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f97dbf78000 CR3: 000000001b547000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches