Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp387481pxu; Wed, 25 Nov 2020 05:53:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwRH3L6GuJHY6t9o7GZ6gzP/wp6p6wmAxhspBlIz78sIsCgMXOupgTW9++HLXaVkXXA0Zu X-Received: by 2002:aa7:c80b:: with SMTP id a11mr1401524edt.111.1606312437817; Wed, 25 Nov 2020 05:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606312437; cv=none; d=google.com; s=arc-20160816; b=nc1NVM0+QFSLmJ1AYB/YCZguaGfDUHwbPTdlsJclCS/fqeuT8Gn7ZqgYQqHqYJjtmP 50cjXIakukRGzChCTSNLJ4HZSGxi7rH0NZ+0cV5RCv5XjxrmEmtWEVgr203C9aT6E7fM M7+gaFpSYCm0WkDK5XIDvvfCjlzI0mXIGXuYTC4g2soyx39leAL2dbB212EXZncjBhuY 0vLoWRRpRc9+OXpIYBPC+RHnFe7WDhBBdRVnVJWDnEtWNMbMl8gSYt1JM3Wbn1EfiPDk nndFSX5cyNbkp8Oigk7/cv4zbNY9wOXtzvBN22mJKo9yunmttBWL6lnmSFF+/xQOd+ye k/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=oz91lyUj1R68WEu1dVaiKojIcWkJEytay+zVxaWFIvc=; b=T4QRIVzdLGCQ/SWnP5ZEYvepSX/G1oBcW24pUzHrkNdimAmbPEH5x9HdFR0XyITWCR aT5eOsMJZbrr0xPcR4IyHkoxiXDiJzRAGVO+t3Wrk226KiLHGFNKCZl2IlZ3ZfpE63ZE SgxV3q+mjqsT2gBKWzd0yTC9fkhkgppQBGf9eF1Rtmk/Xv9UVgir1mvMUi2Z5V7QMTtg Js6vY7NdR46stzYAwg2Ms0uEs96T589KRWNHBqZr4o4P1YXMVyzNA6zaUUHn3in65qe+ 8/M1gzL1pKv/1U+OEoJ0qQ5V03Tkp0vNNyupR69WHsvCKddoiys49xRJORyrnGM5tHNK kuqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u17si1246984edv.131.2020.11.25.05.53.34; Wed, 25 Nov 2020 05:53:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729660AbgKYNvV (ORCPT + 99 others); Wed, 25 Nov 2020 08:51:21 -0500 Received: from mail-il1-f197.google.com ([209.85.166.197]:46571 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729526AbgKYNvU (ORCPT ); Wed, 25 Nov 2020 08:51:20 -0500 Received: by mail-il1-f197.google.com with SMTP id q5so1830995ilc.13 for ; Wed, 25 Nov 2020 05:51:19 -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:in-reply-to:message-id:subject :from:to; bh=oz91lyUj1R68WEu1dVaiKojIcWkJEytay+zVxaWFIvc=; b=awfbeBtfiIUwoO9alPaPd1hfHzOFLo1qLR0+bI4zd+0lT9XAaH5Y4fQzuNWfj/j/Sj RrvguYzjK8ws7l/gH7gbCNGP6E+UA52mfiq2uZThiZkun7xVLmqzypBJzMInzImuJMPD eUMVTOpkoVLDJ35UqHJgARCC0/n9bVNlWt6spG/P5nccjLE7bPtf6Y1GyhNVyGoLhwcp IJnYLxKfVjutwDzgYma9aktya7XMf4KMfbxspaOP8sh6ZqVQmgndXMewgUm4lp9J/rLZ z+CS+LQvLrUItFysSZrw74VP0ePT5mgmXfo+zi5rB/OSvApqNGj0MDDGausuHJ5Mf/Q9 qkJw== X-Gm-Message-State: AOAM5301FFEmRarZFAw0fKajDnJo4K0hBhagXYwg8vvh88BpORiJPEqL WKcNIMx/F3AE7ymmoRXUE0Jr7wVR0/tAfR+ErcvjlWSSHd/g MIME-Version: 1.0 X-Received: by 2002:a05:6638:d4e:: with SMTP id d14mr3446791jak.26.1606312278807; Wed, 25 Nov 2020 05:51:18 -0800 (PST) Date: Wed, 25 Nov 2020 05:51:18 -0800 In-Reply-To: <00000000000041019205b4c4e9ad@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c6d7a205b4eeb89b@google.com> Subject: Re: BUG: receive list entry not found for dev vxcan1, id 002, mask C00007FF From: syzbot To: davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, mkl@pengutronix.de, netdev@vger.kernel.org, socketcan@hartkopp.net, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 470dfd80 lan743x: replace polling loop by wait_event_timeo.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=107c26a5500000 kernel config: https://syzkaller.appspot.com/x/.config?x=df65150a33f23d8c dashboard link: https://syzkaller.appspot.com/bug?extid=381d06e0c8eaacb8706f compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12bcd669500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17ecad3e500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+381d06e0c8eaacb8706f@syzkaller.appspotmail.com RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004442a9 RDX: 0000000000000018 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007ffc870fdef0 R08: 0000000000000001 R09: 0000000001bbbbbb R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc870fdf00 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ------------[ cut here ]------------ BUG: receive list entry not found for dev vxcan1, id 002, mask C00007FF WARNING: CPU: 0 PID: 8713 at net/can/af_can.c:546 can_rx_unregister+0x5a4/0x700 net/can/af_can.c:546 Modules linked in: CPU: 0 PID: 8713 Comm: syz-executor284 Not tainted 5.10.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:can_rx_unregister+0x5a4/0x700 net/can/af_can.c:546 Code: 8b 7c 24 78 44 8b 64 24 68 49 c7 c5 e0 de 56 8a e8 51 d3 95 f9 44 89 f9 44 89 e2 4c 89 ee 48 c7 c7 20 df 56 8a e8 a6 76 d3 00 <0f> 0b 48 8b 7c 24 28 e8 40 e9 0e 01 e9 54 fb ff ff e8 66 db d7 f9 RSP: 0018:ffffc90001b2fb38 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888014db8000 RSI: ffffffff8158f3c5 RDI: fffff52000365f59 RBP: 0000000000000118 R08: 0000000000000001 R09: ffff8880b9e30627 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: ffff8880261f0000 R14: 1ffff92000365f6e R15: 00000000c00007ff FS: 0000000000807880(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004bdfc4 CR3: 0000000014c7c000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: isotp_notifier+0x2a7/0x540 net/can/isotp.c:1303 call_netdevice_notifier net/core/dev.c:1735 [inline] call_netdevice_unregister_notifiers+0x156/0x1c0 net/core/dev.c:1763 call_netdevice_unregister_net_notifiers net/core/dev.c:1791 [inline] unregister_netdevice_notifier+0xcd/0x170 net/core/dev.c:1870 isotp_release+0x136/0x600 net/can/isotp.c:1011 __sock_release+0xcd/0x280 net/socket.c:596 sock_close+0x18/0x20 net/socket.c:1255 __fput+0x285/0x920 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:151 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0x17e/0x1a0 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x38/0x260 kernel/entry/common.c:266 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x403b20 Code: 01 f0 ff ff 0f 83 40 0d 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 6d bc 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0d 00 00 c3 48 83 ec 08 e8 7a 02 00 00 RSP: 002b:00007ffc870fdee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000403b20 RDX: 0000000000000018 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007ffc870fdef0 R08: 0000000000000001 R09: 0000000001bbbbbb R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc870fdf00 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000