Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp349700pxu; Wed, 25 Nov 2020 23:32:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1IiCSkBHOF8QPPeLrSCq1rIDhN7fJtVQwfuZQPE1HbJYLBrMRZrMKMUBArAS4yffRr4Db X-Received: by 2002:a05:6402:176e:: with SMTP id da14mr1281033edb.245.1606375923475; Wed, 25 Nov 2020 23:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606375923; cv=none; d=google.com; s=arc-20160816; b=niXoVytcarinOqk+QRSazB2fOCh6HZyA87hlUIkJcIq4/gdtq8eJafl3s5elXJcXwS qK1wNBQfSuAX+U27qgN8y+dRLBHes6hQSJkzcmhVE+FN93IVaLn8bWVtA20t4CzyyKic uzM0rmkd7hFDlujWAAFXaW3l1FEWkDXmg0HaHmpQD4/90KLI3X2+Mh0JfL3UafRa0kc7 v75y4GRO6YcQIuaowbB3wTZwZo1osxGRNJssh3DA/TXmZlD7+jSvQFT9UQfjo73xsr4j g5NTIWJegyTeTbaDZxkceD9AVpDk/9KysiMeLQvWNMHJ5m1J0Bf9ADHP+pyJdqeiJpMf OYrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ZdMw2N7bIn+sWgwKCW7dNdvwpqJ3CkbRwBrllFj08Bw=; b=lMK7sDP2fPXKu/JP5MJQ5AOv/3MN3eD0JwsEkdMg3B0S0LbxHK4otDpH/31shlhR0V vzY/B6r3Y5mpwPEuR7uyQsb8ag81M2nYl56bqOH8oH34xjgTp3bkokH+Ojdne1kVNond rMRyhndNxiSqRxhF73rHOXulFfYRIP0N2k2eIUD5hz7k8y3UQTw65TOBRRG0S2C0LwQT FYuEdj0UjEcNisJliQGug9zpCE9Rgeaun3arT4Dke8dnQbF6W8ljY3x6B0rh7wGLvawB t2tUgeUbT+xIoEPZ5h70BvS4F4T9Ng2VQ+CovTsPKeELlaTH4FnLfTKOZ9MWqfLU6dcn rvxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=sEkJmNsU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj16si2528117ejb.652.2020.11.25.23.31.40; Wed, 25 Nov 2020 23:32:03 -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; dkim=pass header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=sEkJmNsU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731259AbgKYUyt (ORCPT + 99 others); Wed, 25 Nov 2020 15:54:49 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]:11554 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730178AbgKYUyt (ORCPT ); Wed, 25 Nov 2020 15:54:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1606337685; s=strato-dkim-0002; d=hartkopp.net; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=ZdMw2N7bIn+sWgwKCW7dNdvwpqJ3CkbRwBrllFj08Bw=; b=sEkJmNsU7OHeliA3KDKsmR8eujKL57S5zHkP8NTorojkVVUHDyYvnIv8PxyOqd1Hzk NgzLi8lRT5v7zs7ydwFUjhThPXkXDAk6cj6nveLxzWbKRIeOFTuAUOcaD4z49/YReQ5S NibIxX+6mLGVQYP+huI9OpWQZ5xkluRQ5q2M0e0Z6t31QSvpfhMSIA/V3j2b/RejsIRp hVU7btdSfOBdTx8tAgtqhyzFKVshhZql8MtRLd/ShhF7J4FJMQkJFZWjRjAi4XCNEAiH tZesw62oxEylfRcd53lxtkU7NBhP3LREKJnMbujXlu/qRB77syuyi6OTMAdXRwstvjuI NojA== X-RZG-AUTH: ":P2MHfkW8eP4Mre39l357AZT/I7AY/7nT2yrDxb8mjG14FZxedJy6qgO1o3HMbEWKOdeTT9I=" X-RZG-CLASS-ID: mo00 Received: from [192.168.50.177] by smtp.strato.de (RZmta 47.3.4 DYNA|AUTH) with ESMTPSA id n07f3bwAPKsZqb5 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 25 Nov 2020 21:54:35 +0100 (CET) Subject: Re: BUG: receive list entry not found for dev vxcan1, id 002, mask C00007FF To: Dmitry Vyukov Cc: syzbot , David Miller , Jakub Kicinski , linux-can@vger.kernel.org, LKML , Marc Kleine-Budde , netdev , syzkaller-bugs References: <00000000000041019205b4c4e9ad@google.com> From: Oliver Hartkopp Message-ID: Date: Wed, 25 Nov 2020 21:54:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On 25.11.20 19:48, Dmitry Vyukov wrote: > On Wed, Nov 25, 2020 at 5:04 PM Oliver Hartkopp wrote: >> This seems to be very seldom but it does not break anything. >> >> Would removing the WARN(1) or replacing it with pr_warn() be ok to close >> this issue? > > Yes, this is the intended way to deal with this: > https://elixir.bootlin.com/linux/v5.10-rc5/source/include/asm-generic/bug.h#L75 > > Maybe a good opportunity to add some explanatory comment as well > regarding how it should not happen but can. I already prepared a patch for it which has indeed 90% explanatory comment ;-) Will send out a patch tomorrow after collecting all the three/four? syskaller bug IDs that popped up with this issue :-D Many thanks! Oliver > > > > >> On 23.11.20 12:58, syzbot wrote: >>> Hello, >>> >>> syzbot found the following issue on: >>> >>> HEAD commit: c2e7554e Merge tag 'gfs2-v5.10-rc4-fixes' of git://git.ker.. >>> git tree: upstream >>> console output: https://syzkaller.appspot.com/x/log.txt?x=117f03ba500000 >>> kernel config: https://syzkaller.appspot.com/x/.config?x=75292221eb79ace2 >>> dashboard link: https://syzkaller.appspot.com/bug?extid=381d06e0c8eaacb8706f >>> compiler: gcc (GCC) 10.1.0-syz 20200507 >>> >>> Unfortunately, I don't have any reproducer for this issue yet. >>> >>> IMPORTANT: if you fix the issue, please add the following tag to the commit: >>> Reported-by: syzbot+381d06e0c8eaacb8706f@syzkaller.appspotmail.com >>> >>> ------------[ cut here ]------------ >>> BUG: receive list entry not found for dev vxcan1, id 002, mask C00007FF >>> WARNING: CPU: 1 PID: 12946 at net/can/af_can.c:546 can_rx_unregister+0x5a4/0x700 net/can/af_can.c:546 >>> Modules linked in: >>> CPU: 1 PID: 12946 Comm: syz-executor.1 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 20 ac 56 8a e8 01 6c 97 f9 44 89 f9 44 89 e2 4c 89 ee 48 c7 c7 60 ac 56 8a e8 66 af d3 00 <0f> 0b 48 8b 7c 24 28 e8 b0 25 0f 01 e9 54 fb ff ff e8 26 e0 d8 f9 >>> RSP: 0018:ffffc90017e2fb38 EFLAGS: 00010286 >>> RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 >>> RDX: ffff8880147a8000 RSI: ffffffff8158f3c5 RDI: fffff52002fc5f59 >>> RBP: 0000000000000118 R08: 0000000000000001 R09: ffff8880b9f2011b >>> R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 >>> R13: ffff8880254c0000 R14: 1ffff92002fc5f6e R15: 00000000c00007ff >>> FS: 0000000001ddc940(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 >>> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >>> CR2: 0000001b2f121000 CR3: 00000000152c0000 CR4: 00000000001506e0 >>> 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:1277 >>> __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:0x417811 >>> Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 a4 1a 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 >>> RSP: 002b:000000000169fbf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 >>> RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000417811 >>> RDX: 0000000000000000 RSI: 00000000000013b7 RDI: 0000000000000003 >>> RBP: 0000000000000001 R08: 00000000acabb3b7 R09: 00000000acabb3bb >>> R10: 000000000169fcd0 R11: 0000000000000293 R12: 000000000118c9a0 >>> R13: 000000000118c9a0 R14: 00000000000003e8 R15: 000000000118bf2c >>> >>> >>> --- >>> 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. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/b134c098-2f34-15ee-cfec-2103a12da326%40hartkopp.net.