Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp793000pxj; Fri, 7 May 2021 22:09:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweSdPl5pNnRH7u65kWQqnVeyIvZoYjfPruw8o9tHPA1FuwAncJ55ytHuOWC7V0ZU4P9UGA X-Received: by 2002:a05:6a00:c3:b029:28e:d284:c39f with SMTP id e3-20020a056a0000c3b029028ed284c39fmr14119360pfj.4.1620450564662; Fri, 07 May 2021 22:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620450564; cv=none; d=google.com; s=arc-20160816; b=EOnMdqzOEz6LzMOyCk3lUpB3kNOAupADKBrgMBowe/FHKOIM+a4LuvLGSjLIOkiMYz Do9Y3LI/fiG6yoU0d0hXr7QFanh0G/DsGgs8wjPjm0GwEdQzRk2JzlqubFM58gQ9co/M zS+N5UIz+mEhiatURQTwbT1cEHpy+7UbSSMnrCulymv2R40y95ennqrXG4Di8t32ev4g BpsACQLQ46YSn6cdrbcH0uNq/HDbc9H1LmZJcv4JlOJrK4VHEzEQ0wxoCmI4j/LV1xRb 4Z5v4KTjzulQDrZTRS9fPwf8ILXAtu1+wtrDWtMprDEbpyXa9NzL8GFn04izZLldkwda YHeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VHh2q5Yc7r97Dve/989pMjYD555DIbDBE4cHG2Nq7Ng=; b=Kpp3DvLgEeFtETk7QEyK3Y6K0LyoirNeXr6AtEYodsWVil5WSkCxgurzQf8YFWRAJw c85Jcm9HsMpAKlv8Yqk4qfHK+IX7T+W1TBFpsM64kPDi5OzP4O6NO1nn8lbItMdxvk5e jKPsIheroYRnrHHARctaeTwH4oyQv/g8yTlQvfY15G/IvSWwqt8b6QGarTarYi4RiSLB CBl8ZkBLQZsbgH2qkn9FkJ99MHjbFpCBwMx9YecDMAk15+AyCPQPxTNWYFZQMww+2Xsl USwDSQV2UvE6OqZ6XrEpEc3Ae+Bak2EXEDmaV28Scmu0SWwPxG3oC1VXs8kNjZrNMNJO uDJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rTdQt/dB"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si2518166pfu.114.2021.05.07.22.09.12; Fri, 07 May 2021 22:09:24 -0700 (PDT) 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=@google.com header.s=20161025 header.b="rTdQt/dB"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbhEHFJF (ORCPT + 99 others); Sat, 8 May 2021 01:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbhEHFJE (ORCPT ); Sat, 8 May 2021 01:09:04 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC31AC061763 for ; Fri, 7 May 2021 22:08:03 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id k127so10718271qkc.6 for ; Fri, 07 May 2021 22:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VHh2q5Yc7r97Dve/989pMjYD555DIbDBE4cHG2Nq7Ng=; b=rTdQt/dBeGJdBPfLO/MR46HoLGWLg/E3TmK3wkCdShrYkYueCsJM7KtucpgoI/DqNG 3r5Xl4IahPmxY3p9NB/rng730oADT40EEH2uOTihWhR+zJybOm8OZ+ZNI6r9Ia+I3HWV UqNAotyHwY7YnrmRvv+N+LFkZqGZiEN2pt6JxwtQ9/MDDAZ6C5Fc9MVL5+tLoljdD0FO l3bYMv6Fcl21VqPzCELPpVECCadD075eGYEI2iAembic2JM0ze6lEhuqGa+Ifrkp+7bb Jgs2U2hcACAQ2SCTkpMnE4FGsuovnnxnUFRyNEVrDYDN+SQLDJRPf48CJ0tJNaclu14Q 4mVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VHh2q5Yc7r97Dve/989pMjYD555DIbDBE4cHG2Nq7Ng=; b=dlAZ++rqAgN3tLku0d+xpFNGyjEhxpAKCWm+lyC5BNs0HXfwP0JRqnFMBeOBVQt2Wz W32/HgaivsrM3W8cCCWha44/ETr3huYicY65h6EdRwewbaCYBCkPJuQ5BITyhrZ1L0qR 8pts46yASC1ny7ZVL8pCAcDDr4U+Hmsv/mCEObdgW4Lflno2GJPRqNfKohr09zlRP52b 2WEDYW8gGxAJlSkW4JIwqZhBQ1aGIQyvMmya+Z7bhXgyw+wycslJAxeXRzN0+CPtJzPf 2tCivrB34x75qjTMevOoADJxUiH88lp6Kk/d+zft31k2LippNY85JX/Rrln1FpTb1YBR avhA== X-Gm-Message-State: AOAM530Ac+QXsyHEEkfMb5j9QWDeCWwvmzBJzR7gjEv9uRFerx0FKA49 rqR4n8kl0nc+wQRfms9iB0icIIe91LEu3s0AXNOq5FbWXKjNlA== X-Received: by 2002:a37:c20a:: with SMTP id i10mr13437654qkm.350.1620450482649; Fri, 07 May 2021 22:08:02 -0700 (PDT) MIME-Version: 1.0 References: <0000000000008ce91e05bf9f62bc@google.com> In-Reply-To: <0000000000008ce91e05bf9f62bc@google.com> From: Dmitry Vyukov Date: Sat, 8 May 2021 07:07:51 +0200 Message-ID: Subject: Re: [syzbot] WARNING in __nf_unregister_net_hook (4) To: syzbot Cc: coreteam@netfilter.org, David Miller , Florian Westphal , Jozsef Kadlecsik , Jakub Kicinski , LKML , netdev , NetFilter , Pablo Neira Ayuso , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 10, 2021 at 4:49 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: cc0626c2 net: smsc911x: skip acpi_device_id table when !CO.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=110a3096d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=7eff0f22b8563a5f > dashboard link: https://syzkaller.appspot.com/bug?extid=154bd5be532a63aa778b > > 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+154bd5be532a63aa778b@syzkaller.appspotmail.com Is this also fixed by "netfilter: arptables: use pernet ops struct during unregister"? The warning is the same, but the stack is different... > hook not found, pf 2 num 0 > WARNING: CPU: 1 PID: 8144 at net/netfilter/core.c:480 __nf_unregister_net_hook+0x1eb/0x610 net/netfilter/core.c:480 > Modules linked in: > CPU: 1 PID: 8144 Comm: syz-executor.0 Not tainted 5.12.0-rc4-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > RIP: 0010:__nf_unregister_net_hook+0x1eb/0x610 net/netfilter/core.c:480 > Code: 0f b6 14 02 48 89 c8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 11 04 00 00 8b 53 1c 89 ee 48 c7 c7 e0 26 6c 8a e8 72 df 87 01 <0f> 0b e9 e5 00 00 00 e8 09 1d 37 fa 44 8b 3c 24 4c 89 f8 48 c1 e0 > RSP: 0018:ffffc9001534f418 EFLAGS: 00010282 > RAX: 0000000000000000 RBX: ffff88802f867a00 RCX: 0000000000000000 > RDX: 0000000000040000 RSI: ffffffff815c5205 RDI: fffff52002a69e75 > RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 > R10: ffffffff815bdf9e R11: 0000000000000000 R12: ffff8880272c8f20 > R13: 0000000000000000 R14: ffff88802fa34c00 R15: 0000000000000006 > FS: 00007feaf7d10700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007fb651f70ca0 CR3: 0000000069f31000 CR4: 00000000001506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > nf_unregister_net_hook+0xd5/0x110 net/netfilter/core.c:502 > nf_tables_unregister_hook.part.0+0x131/0x200 net/netfilter/nf_tables_api.c:234 > nf_tables_unregister_hook net/netfilter/nf_tables_api.c:8122 [inline] > nf_tables_commit+0x1d9b/0x4710 net/netfilter/nf_tables_api.c:8122 > nfnetlink_rcv_batch+0x975/0x21b0 net/netfilter/nfnetlink.c:508 > nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:580 [inline] > nfnetlink_rcv+0x3af/0x420 net/netfilter/nfnetlink.c:598 > netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] > netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338 > netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927 > sock_sendmsg_nosec net/socket.c:654 [inline] > sock_sendmsg+0xcf/0x120 net/socket.c:674 > ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350 > ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 > __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433 > do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 > entry_SYSCALL_64_after_hwframe+0x44/0xae > RIP: 0033:0x466459 > Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007feaf7d10188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e > RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 > RDX: 0000000000000000 RSI: 000000002000c2c0 RDI: 0000000000000003 > RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 > R13: 00007ffe0fcaf04f R14: 00007feaf7d10300 R15: 0000000000022000 > > > --- > 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/0000000000008ce91e05bf9f62bc%40google.com.