Received: by 10.213.65.68 with SMTP id h4csp279081imn; Tue, 13 Mar 2018 04:14:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELu1NRlU/vKF1UxPLeeEyBqR+u+s2nGC/h4wQRrveDXA3xwtdgDhV8zeSIFU7GK6mtWt1OKC X-Received: by 2002:a17:902:8d87:: with SMTP id v7-v6mr224313plo.146.1520939677600; Tue, 13 Mar 2018 04:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520939677; cv=none; d=google.com; s=arc-20160816; b=pvY423dwPe5Vo1rDloP97S9p67bXQRzB/Tql8ysldAzvHF4vo9OI1Z0adJQXJMWhOA H1Onqy/LqAIIusnJOVto6O+DJzHbBKr/1Wuom6g7dp5iG+X9gYwTWqUW+i6b6CyI2xLb dAjUdxJVDwtfEAlLmyv8qHfbhTRWg7t0DbyZ8l3HI0APKUAc061kGbgIwzQ2R/whNupg OgjPFleOhzJinr/tVS11AVZNEfKu/vPhCB2zhzOK612LP004kwNUHKx/LTBlKtMJKyb0 qhxUNFSZIWIo2VWx3eUYmMsIbhTHLboRQaBat4yUXKECB6VnWwXfbGG0kPs3LWvU0ryp DpLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=CK8L6BcxKG7y8pefG14JxDS+plMR8etKfSUru1k7PAg=; b=ASNUoLieaL4T+8E3j+RdOXzoWRfSyx1bg4ZVTf8Ds548UVhTvnhi+u34RvMoWWqpEE yjPSOQ32tLmdcaZn3V5nX/VM7vs0GvSd6vioZYlT457Hi9mT30TwDQfrFqILKjcT+XFD 7c84jwO/EM2ytd/Qfe7cSm3gTNuM+FnCN0w3MRhr71KktM3rkuxj7zAPChnQHhFX5hi/ tS1rhS4evJfO/RcZ9A3/WVtVnaI8hycsNq5vjG+u70W020vf654g7ZoPwDl6RU9tDUWK oN+VarSFAWAqRcC2yGm9oj6LUCkOOo+qVHQ2ZaJKzRBZfky/3/8ppFrC/E60xQP4MX9k jCaA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si69526pgr.367.2018.03.13.04.14.23; Tue, 13 Mar 2018 04:14:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932841AbeCMLN2 (ORCPT + 99 others); Tue, 13 Mar 2018 07:13:28 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:41909 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbeCMLN0 (ORCPT ); Tue, 13 Mar 2018 07:13:26 -0400 Received: from cpe-2606-a000-111b-40b7-640c-26a-4e16-9225.dyn6.twc.com ([2606:a000:111b:40b7:640c:26a:4e16:9225] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1evhrq-0001vW-Rn; Tue, 13 Mar 2018 07:13:21 -0400 Date: Tue, 13 Mar 2018 07:12:45 -0400 From: Neil Horman To: Dmitry Vyukov Cc: Xin Long , syzbot , davem , LKML , linux-sctp@vger.kernel.org, network dev , syzkaller-bugs@googlegroups.com, Vlad Yasevich Subject: Re: BUG: corrupted list in sctp_association_free Message-ID: <20180313111245.GB18164@hmswarspite.think-freely.org> References: <001a113ec036450c260567464832@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-Spam-Score: -2.9 (--) X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 02:09:09PM +0300, Dmitry Vyukov wrote: > On Tue, Mar 13, 2018 at 1:44 PM, Xin Long wrote: > > On Tue, Mar 13, 2018 at 3:34 PM, syzbot > > wrote: > >> Hello, > >> > >> syzbot hit the following crash on net-next commit > >> fd372a7a9e5e9d8011a0222d10edd3523abcd3b1 (Thu Mar 8 19:43:48 2018 +0000) > >> Merge tag 'mlx5-updates-2018-02-28-2' of > >> git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux > >> > >> Unfortunately, I don't have any reproducer for this crash yet. > >> Raw console output is attached. > >> compiler: gcc (GCC) 7.1.1 20170620 > >> .config is attached. > >> > >> IMPORTANT: if you fix the bug, please add the following tag to the commit: > >> Reported-by: syzbot+e56a5d45f832ef33ad2f@syzkaller.appspotmail.com > >> It will help syzbot understand when the bug is fixed. See footer for > >> details. > >> If you forward the report, please keep this part and the footer. > >> > >> selinux_nlmsg_perm: 1 callbacks suppressed > >> SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 > >> sclass=netlink_route_socket pig=12502 comm=syz-executor3 > >> SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 > >> sclass=netlink_route_socket pig=12528 comm=syz-executor3 > >> list_del corruption, 00000000fcc5fb27->next is LIST_POISON1 > >> (00000000cb16e51d) > >> ------------[ cut here ]------------ > >> kernel BUG at lib/list_debug.c:47! > >> invalid opcode: 0000 [#1] SMP KASAN > >> Dumping ftrace buffer: > >> (ftrace buffer empty) > >> Modules linked in: > >> CPU: 0 PID: 12537 Comm: syz-executor2 Not tainted 4.16.0-rc4+ #258 > >> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > >> Google 01/01/2011 > >> RIP: 0010:__list_del_entry_valid+0xd3/0x150 lib/list_debug.c:45 > >> RSP: 0018:ffff8801b6387778 EFLAGS: 00010286 > >> RAX: 000000000000004e RBX: dead000000000200 RCX: 0000000000000000 > >> RDX: 000000000000004e RSI: ffffc90002ed6000 RDI: ffffed0036c70ee3 > >> RBP: ffff8801b6387790 R08: 1ffff10036c70e3b R09: 0000000000000000 > >> R10: 0000000000000000 R11: 0000000000000000 R12: dead000000000100 > >> R13: ffff8801d3164000 R14: ffff8801d8502220 R15: ffff8801b6387c58 > >> FS: 00007ff42042f700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 > >> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > >> CR2: 00007ff42040ddb8 CR3: 00000001bd840003 CR4: 00000000001606f0 > >> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > >> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > >> Call Trace: > >> __list_del_entry include/linux/list.h:117 [inline] > >> list_del include/linux/list.h:125 [inline] > >> sctp_association_free+0x133/0x930 net/sctp/associola.c:341 > >> sctp_sendmsg+0xc67/0x1a80 net/sctp/socket.c:2075 > >> inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:763 > >> sock_sendmsg_nosec net/socket.c:629 [inline] > >> sock_sendmsg+0xca/0x110 net/socket.c:639 > >> SYSC_sendto+0x361/0x5c0 net/socket.c:1748 > >> SyS_sendto+0x40/0x50 net/socket.c:1716 > >> do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 > >> entry_SYSCALL_64_after_hwframe+0x42/0xb7 > >> RIP: 0033:0x453e69 > >> RSP: 002b:00007ff42042ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c > >> RAX: ffffffffffffffda RBX: 00007ff42042f6d4 RCX: 0000000000453e69 > >> RDX: 0000000000000001 RSI: 0000000020000340 RDI: 0000000000000015 > >> RBP: 000000000072c0c8 R08: 00000000204d9000 R09: 000000000000001c > >> R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff > >> R13: 00000000000004cd R14: 00000000006f73d8 R15: 0000000000000003 > >> Code: 8f 00 00 00 49 8b 54 24 08 48 39 f2 75 3b 48 83 c4 08 b8 01 00 00 00 > >> 5b 41 5c 5d c3 4c 89 e2 48 c7 c7 c0 7c 40 86 e8 75 f6 fb fe <0f> 0b 48 c7 c7 > >> 20 7d 40 86 e8 67 f6 fb fe 0f 0b 48 c7 c7 80 7d > >> RIP: __list_del_entry_valid+0xd3/0x150 lib/list_debug.c:45 RSP: > >> ffff8801b6387778 > >> ---[ end trace a6b157f61f9bd43a ]--- > >> Kernel panic - not syncing: Fatal exception > >> Dumping ftrace buffer: > >> (ftrace buffer empty) > >> Kernel Offset: disabled > >> Rebooting in 86400 seconds.. > >> > >> > >> --- > >> This bug is generated by a dumb bot. It may contain errors. > >> See https://goo.gl/tpsmEJ for details. > >> Direct all questions to syzkaller@googlegroups.com. > >> > >> syzbot will keep track of this bug report. > >> If you forgot to add the Reported-by tag, once the fix for this bug is > >> merged > >> into any tree, please reply to this email with: > >> #syz fix: exact-commit-title > >> To mark this as a duplicate of another syzbot report, please reply with: > >> #syz dup: exact-subject-of-another-report > >> If it's a one-off invalid bug report, please reply with: > >> #syz invalid > >> Note: if the crash happens again, it will cause creation of a new bug > >> report. > >> Note: all commands must start from beginning of the line in the email body. > > I'd think the patch Neil just posted would fix it. > > > Hi Xin, > > Could you point me to that commit? We need to tell syzbot about it. > > Thanks Its not been pulled in yet, but this is the email thread: https://marc.info/?l=linux-netdev&m=152093814606747&w=2 I agree this patch should fix the crash syzbot noted Neil >