Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5226665rwb; Mon, 21 Nov 2022 19:04:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kGG6z588cIocfd9f/bUXh74QJPNNYMfmHbUpRCmYFXcIhSXTJ9pZJ3Lnce7YGrIeaMMiL X-Received: by 2002:a17:90a:4605:b0:218:7dd7:ad4c with SMTP id w5-20020a17090a460500b002187dd7ad4cmr20751454pjg.224.1669086252020; Mon, 21 Nov 2022 19:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669086252; cv=none; d=google.com; s=arc-20160816; b=cEyjI1qu7QuZ3wx29bnhs6ngoQaNyBNESWvUp/WjMxx0ADL/NJHY/iF1LYl5aRBgOA EFJ87AFOIVlBwLv/SDBvXZQ+kVQ/Z4Zy5WHaQY2pM9oUUZP5bEw4evEpGnPYc4/8ECRH 8hjHD3A7eltnv6jkR016iX/oVcE92Xvt6xb7TZpubwwWbfGkMaDJI3huy09GKTn+H73G 6hb7h5a3Qic04rM5u3uqG1rbBxtNKmgPgmX3m2Z4AJoEBIh+ug3F/dLuEFnxqXuCs55Q N3o/ltVo5fWHfFn0IKqfhC++A8tP3ru/koLVWF1bBELG/idIFSj/BgSpgJEmQ3MG2hRz 36Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dIRhDVWiab3bjDPVgRSMneOqOqqdAB0Fj+0SdzxoeH4=; b=UEOPR1WbCQRF+4qvPAqWNq5cO0y1aD3BYbyRyClee4nGh57ZZ8AH8NFK8A240kfVzB 05Mh8MdGwqymKYGneyC3kOj98pr8wli5DOXBD8YmRgsVRqAnnj46qVLpsgvuVsfbY0Ji jyoXGgHqUpvOV4TcEGnuXj8U8ItO71fykOaypsd8X3UOYWaVfBwNPsyNeMemMcB9eRBY gy8ptmDVJjAO8xYgKes14dhesvkqph8q6Ef+dJFen9120N6AqEWmuf3h9sVp8SKZpjLN Zufq6HHdblMaVORzSczAjX+6Xr5nbB2ZgtCK1OzFl0gx+sXmd9Y0UV3eoxrX0G0xpjco R4uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="K9/WYl+a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a170902b7c500b0018695bddc4bsi11826839plz.470.2022.11.21.19.04.00; Mon, 21 Nov 2022 19:04:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="K9/WYl+a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbiKVCNS (ORCPT + 91 others); Mon, 21 Nov 2022 21:13:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiKVCNQ (ORCPT ); Mon, 21 Nov 2022 21:13:16 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DA2660EA0 for ; Mon, 21 Nov 2022 18:13:15 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id z6so8501015qtv.5 for ; Mon, 21 Nov 2022 18:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dIRhDVWiab3bjDPVgRSMneOqOqqdAB0Fj+0SdzxoeH4=; b=K9/WYl+a/zA/3Bl3JMxOy+5d3Ranm4/09Q5QOUYmPL+W0lXz42G8zpyJNGRzMOzdXS E4WSrSA1DN2dJD0s+V/3FSjJdyPX9trb4FQbWFaSdL5kQiORd2yX+o3UhWfy0/zonEuF QIgy9V6AC47+aRbaCOfW7turbl5LERJRpytgieuUfzmfLUlgA30D8lb/5h6OoezM5MKX tmHHi5lZ/2dlKzpE0feihA0xoQsMsqiQDQLK9TVvcviwdLfJR0dKJdiHWZr95ilpWvEI /N+Q57aJbsJgU2APNZjNBI3/wphN+7jhTHfREzufA6PWz7pbB98tic7AEiqlJgledR22 v8nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dIRhDVWiab3bjDPVgRSMneOqOqqdAB0Fj+0SdzxoeH4=; b=O6GHx7kmKCTaVgoRc//W0Y6HFzpvAXcRg3+BS0/fJualRPLR+/4Gqkiw/FarCkHBCW 68Zs2uqevu449W9+HvTQO+OsBISSVpPBHp/YhRDi9g7RPIacpxBncK//WZclvJbgXuzE Nj0TOucKei46klyHehhgm/MVihcZZQ0rbGxBtNIKbQrkXqoyTmf9K1zadegA6pJz6VtR iEWBO0d2bgxJEqeWjCMPxn/OnHM+4pn3tuPgYAYI6gVpzDQOIJUROm6NJE0GocNr8aEX RrNboPON0S47DHmQI3aZnW6U10yHdb6eylPV0mqhuEJBR/KCuIVk5YgX5bwgPGGOylKd 8VMw== X-Gm-Message-State: ANoB5pmaz7PUSfLcymHv06FlCPC1zCAV3IlU/wxS/iCYPFothvyUxIYR OGBdj2mkEPSQUBFeATSIWs8d+Q== X-Received: by 2002:a05:622a:5c8e:b0:3a5:5c9e:d453 with SMTP id ge14-20020a05622a5c8e00b003a55c9ed453mr20810640qtb.403.1669083194399; Mon, 21 Nov 2022 18:13:14 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-47-55-122-23.dhcp-dynamic.fibreop.ns.bellaliant.net. [47.55.122.23]) by smtp.gmail.com with ESMTPSA id k7-20020ac84787000000b0039cc7ebf46bsm7463590qtq.93.2022.11.21.18.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 18:13:13 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1oxIme-009YhX-R6; Mon, 21 Nov 2022 22:13:12 -0400 Date: Mon, 21 Nov 2022 22:13:12 -0400 From: Jason Gunthorpe To: Dmitry Vyukov Cc: syzbot , Leon Romanovsky , chenzhongjin@huawei.com, RDMA mailing list , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, Zhu Yanjun , Bob Pearson Subject: Re: [syzbot] unregister_netdevice: waiting for DEV to become free (7) Message-ID: References: <00000000000060c7e305edbd296a@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 02:28:53PM +0100, Dmitry Vyukov wrote: > On Fri, 18 Nov 2022 at 12:39, syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 9c8774e629a1 net: eql: Use kzalloc instead of kmalloc/memset > > git tree: net-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=17bf6cc8f00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=9eb259db6b1893cf > > dashboard link: https://syzkaller.appspot.com/bug?extid=5e70d01ee8985ae62a3b > > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1136d592f00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1193ae64f00000 > > > > Bisection is inconclusive: the issue happens on the oldest tested release. > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=167c33a2f00000 > > final oops: https://syzkaller.appspot.com/x/report.txt?x=157c33a2f00000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=117c33a2f00000 > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+5e70d01ee8985ae62a3b@syzkaller.appspotmail.com > > > > iwpm_register_pid: Unable to send a nlmsg (client = 2) > > infiniband syj1: RDMA CMA: cma_listen_on_dev, error -98 > > unregister_netdevice: waiting for vlan0 to become free. Usage count = 2 > > +RDMA maintainers > > There are 4 reproducers and all contain: > > r0 = socket$nl_rdma(0x10, 0x3, 0x14) > sendmsg$RDMA_NLDEV_CMD_NEWLINK(...) > > Also the preceding print looks related (a bug in the error handling > path there?): > > infiniband syj1: RDMA CMA: cma_listen_on_dev, error -98 I'm pretty sure it is an rxe bug ib_device_set_netdev() will hold the netdev until the caller destroys the ib_device rxe calls it during rxe_register_device() because the user asked for a stacked ib_device on top of the netdev Presumably rxe needs to have a notifier to also self destroy the rxe device if the underlying net device is to be destroyed? Can someone from rxe check into this? Jason