Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1199234ybi; Sat, 27 Jul 2019 04:43:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqykobuUSMZJoiHu7Xf0KBidphsh2SwzIbQPpB57Eo9UBGzpP5GHEWRD+SoW/PLjoRIIIV2X X-Received: by 2002:a17:90a:b883:: with SMTP id o3mr101737685pjr.50.1564227822639; Sat, 27 Jul 2019 04:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564227822; cv=none; d=google.com; s=arc-20160816; b=N/qp5R5SZWrOHEBJp5CI0GXBYUrm4Zh/Wk1jl5thcNnfpM7sExD/eNet4WeUlsYBl4 MbOvFmAsXy7eKEhlJorOvLsYvbDRR8dJGXv1NmFdwl6S3ZJ5SIC02l7rawoDwyWEb10A +F3L8ZiV9Jg3KILi5w8jid7t14YHgCOhrWewtZm5PG+uPW8uUtjUjsdX6DGykiluKt1H DegjTygOp8V6MccAZ0YsBGib5vYpOdb+kqdOaH+bsGE1EMJ/P+259+iQIvrAN0FK7S+i vm//THPaaniyIXdrIOipJgDFURhnsTNE4EfwwP4HBJ8vfBCHI29Q36ToMr+NxZ8PvDFa DnTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version; bh=4hE5MFlcvCrluUJqG4iGcm5nKHlJDnOlC6mpPTKYzN8=; b=ko/ENGVcs3P2FXn3Uuq7SuQ2L3XkV4bGq7DBIe+riP+zX5/0f/fcUNUZ8/WJJI4pmh 6ykhIZTSUcdu1MCMoDrZms3cIV4ZMjeCcxdFskleHX8piMK7tFugsYRR+VuOOGLsUrsZ ofi4o3kM6eDcNy2cHhxthJ00AeMXzpsSK5wfm1lr+lZP8zdGbfAwYkshoMLWJr/zMomI sM9jY0gkjnZ5lN/aOuGN8BklCQpx8KYC0BH5a17L4Y0LLdG5UVGsE1OFW50Aw5Z6zj79 aEGaQvw8EsBfEU7BHDtOptdLeR5hKoh1Z3bbbc9mlLByQ356Srquw2U/snQJwN9u08Kz GWNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si21458303pgo.355.2019.07.27.04.43.16; Sat, 27 Jul 2019 04:43:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728882AbfG0LkH (ORCPT + 99 others); Sat, 27 Jul 2019 07:40:07 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]:51578 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728860AbfG0LkG (ORCPT ); Sat, 27 Jul 2019 07:40:06 -0400 Received: by mail-io1-f71.google.com with SMTP id c5so61362098iom.18 for ; Sat, 27 Jul 2019 04:40:06 -0700 (PDT) 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:in-reply-to:message-id:subject :from:to; bh=4hE5MFlcvCrluUJqG4iGcm5nKHlJDnOlC6mpPTKYzN8=; b=EmEX0LyDRIup6LHdHCWFzcyXKqVkra+mmPDtYvT9TebL0UJTxCdvdtX6rpowF3DsGs bizwjCqbbUv7w9wjdRQwL7HC9hKFcikCH3iWGizfeYRkBVE7gbCEWOiZZ91d/WxHUQ5/ O32GsL0FOSSK6ImI3HA1Mr4C5evrFv+yXzJjuAOHfE3Y/U69OrIaDS+Jnu6brbtofbQp EBE/hrswsGAWqXm0HCQ3eGD9VuNectKiZd87rZH+gkPDvqDadgPj4E4+2AQW3LV0XUK3 5/A9LCOeIslMOLplw3QD5UDs21MRQAZfI8ptTK2aLLCTDEYlPIG87QgfI1/FDsNavTS7 uEIw== X-Gm-Message-State: APjAAAVU6AOWpYNo1hULe6FK5SWDpOE80P7gDy+r8LRxXhZE+Mcqj0ug 5qasKTjFCmL9aj3sf6iBa7sb6RNytjvJjTejER4XgpGRllfz MIME-Version: 1.0 X-Received: by 2002:a05:6638:691:: with SMTP id i17mr102984038jab.70.1564227605925; Sat, 27 Jul 2019 04:40:05 -0700 (PDT) Date: Sat, 27 Jul 2019 04:40:05 -0700 In-Reply-To: <0000000000002b4896058e7abf78@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000cc977f058ea81e82@google.com> Subject: Re: general protection fault in tls_trim_both_msgs From: syzbot To: ast@kernel.org, aviadye@mellanox.com, borisp@mellanox.com, bpf@vger.kernel.org, daniel@iogearbox.net, davejwatson@fb.com, davem@davemloft.net, jakub.kicinski@netronome.com, john.fastabend@gmail.com, kafai@fb.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following crash on: HEAD commit: fde50b96 Add linux-next specific files for 20190726 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=142826cc600000 kernel config: https://syzkaller.appspot.com/x/.config?x=4b58274564b354c1 dashboard link: https://syzkaller.appspot.com/bug?extid=0e0fedcad708d12d3032 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14779d64600000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1587c842600000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+0e0fedcad708d12d3032@syzkaller.appspotmail.com kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 10205 Comm: syz-executor265 Not tainted 5.3.0-rc1-next-20190726 #53 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tls_trim_both_msgs+0x54/0x130 net/tls/tls_sw.c:268 Code: 48 c1 ea 03 80 3c 02 00 0f 85 e3 00 00 00 4d 8b b5 b0 06 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7e 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b RSP: 0018:ffff88809037fac0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8880a8c0eec0 RCX: ffffffff862f4eef RDX: 0000000000000005 RSI: ffffffff862e9016 RDI: 0000000000000028 RBP: ffff88809037fae0 R08: ffff8880944a8040 R09: ffffed10125e7d51 R10: ffffed10125e7d50 R11: ffff888092f3ea83 R12: 0000000000000000 R13: ffff8880a9560c80 R14: 0000000000000000 R15: 00000000ffffffe0 FS: 000055555717a880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5f44109c0 CR3: 000000008b1cc000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tls_sw_sendmsg+0xe38/0x17b0 net/tls/tls_sw.c:1057 inet6_sendmsg+0x9e/0xe0 net/ipv6/af_inet6.c:576 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 __sys_sendto+0x262/0x380 net/socket.c:1952 __do_sys_sendto net/socket.c:1964 [inline] __se_sys_sendto net/socket.c:1960 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1960 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x441339 Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 9b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffef90e4908 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 RDX: ffffffffffffffc1 RSI: 00000000200005c0 RDI: 0000000000000003 RBP: 00000000006cb018 R08: 0000000000000000 R09: 1201000000003618 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402160 R13: 00000000004021f0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 94e33101f438b014 ]--- RIP: 0010:tls_trim_both_msgs+0x54/0x130 net/tls/tls_sw.c:268 Code: 48 c1 ea 03 80 3c 02 00 0f 85 e3 00 00 00 4d 8b b5 b0 06 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7e 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b RSP: 0018:ffff88809037fac0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8880a8c0eec0 RCX: ffffffff862f4eef RDX: 0000000000000005 RSI: ffffffff862e9016 RDI: 0000000000000028 RBP: ffff88809037fae0 R08: ffff8880944a8040 R09: ffffed10125e7d51 R10: ffffed10125e7d50 R11: ffff888092f3ea83 R12: 0000000000000000 R13: ffff8880a9560c80 R14: 0000000000000000 R15: 00000000ffffffe0 FS: 000055555717a880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5f44109c0 CR3: 000000008b1cc000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400