Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3785920pxb; Mon, 1 Feb 2021 04:52:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1RsUJc2VS7g5NKTTLhFiwdL577UAD0hdP3UYh/GJsV0gts2UDMixL3EYz8erIkT48gxVy X-Received: by 2002:a05:6402:124a:: with SMTP id l10mr2390978edw.221.1612183960249; Mon, 01 Feb 2021 04:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612183960; cv=none; d=google.com; s=arc-20160816; b=WPIBIwQZN4rQhI2hyE7D+Rvhg3V4/H3Oq/h686dtSZUpwKBOj68dybes5ozKBvIAwO sL5w4Ei6KYBDVg+r4Y0B5IPsCeOIM6rFXLVD39hWE4pBa7ueIO5hCkovELmmOcQ1I41t euQxA8kXHVB2imglUNU6tDkpNih9kMrcnFQ5y4zbsjUpGyENnB5l49uafGXqsNhO4hWW aUAUlPWwQDnC7bDsy9czH2Was77u7IALE4VpTIgR3LZB+N3C/UAdzNZOHkMpVmScrNpZ XoEr5sY0VR39QppYNxqR+Jn6h6Bu8HLrkgj+/ndiF+7Mos5P3E1+zYMu4wuPLZRQUCVq qlHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=pbG6b/916dtKimYkqm3dO6L5wZ5PK2FyaIEkEP5h858=; b=NZ8g+TsmPXFtS3nv8JhYAu1DzjCROIhgBmgpnBf+mhRlGQmcb3hNeN7xgVJq7cZYkR +oWaoLq/KUIHcLDkCbiFfhypCFWkt6GB5+XvasPvPGO6SoDT1F1deo5GZaYJFy0RYFpl VuZWDkUmhDujzC1HlhboXKzEghjK1CgtbsDe2Q0hZVA0KvmfFdbccEDSxkX4VVWPN9mN j9U0aVJ/1xaG6Y5zgFOdQNZhvheqHD0+nfRp/9lUvEL1+ERdWU1wxoDkl1hZKrSZciaK Xo5LgdCDUzdElxXl18lyJC/ninmBLEQztTzxP6VXpDYuViWbQHKXYDVbdbNHg4RYpVsU sxYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 z23si4714028edm.39.2021.02.01.04.52.12; Mon, 01 Feb 2021 04:52:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbhBAMui (ORCPT + 99 others); Mon, 1 Feb 2021 07:50:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbhBAMuO (ORCPT ); Mon, 1 Feb 2021 07:50:14 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC65C0613D6; Mon, 1 Feb 2021 04:49:33 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1l6Yds-00EQVZ-PU; Mon, 01 Feb 2021 13:49:20 +0100 Message-ID: <0a982b705b37e7bd3f47cd437b37d8f62dce15e4.camel@sipsolutions.net> Subject: Re: possible deadlock in cfg80211_netdev_notifier_call From: Johannes Berg To: Mike Rapoport , syzbot Cc: akpm@linux-foundation.org, davem@davemloft.net, hagen@jauu.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, sfr@canb.auug.org.au, syzkaller-bugs@googlegroups.com Date: Mon, 01 Feb 2021 13:49:18 +0100 In-Reply-To: <20210201123728.GF299309@linux.ibm.com> References: <000000000000c3a1b705ba42d1ca@google.com> <20210201123728.GF299309@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2021-02-01 at 14:37 +0200, Mike Rapoport wrote: > On Mon, Feb 01, 2021 at 01:17:13AM -0800, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: b01f250d Add linux-next specific files for 20210129 > > git tree: linux-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=14daa408d00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=725bc96dc234fda7 > > dashboard link: https://syzkaller.appspot.com/bug?extid=2ae0ca9d7737ad1a62b7 > > compiler: gcc (GCC) 10.1.0-syz 20200507 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1757f2a0d00000 > > > > The issue was bisected to: > > > > commit cc9327f3b085ba5be5639a5ec3ce5b08a0f14a7c > > Author: Mike Rapoport > > Date: Thu Jan 28 07:42:40 2021 +0000 > > > > mm: introduce memfd_secret system call to create "secret" memory areas > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1505d28cd00000 > > final oops: https://syzkaller.appspot.com/x/report.txt?x=1705d28cd00000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=1305d28cd00000 > > Sounds really weird to me. At this point the memfd_secret syscall is not > even wired to arch syscall handlers. I cannot see how it can be a reason of > deadlock in wireless... Yeah, forget about it. Usually this is a consequence of the way syzbot creates tests - it might have created something like if (!create_secret_memfd()) return; try_something_on_wireless() and then of course without your patch it cannot get to the wireless bits. Pretty sure I know what's going on here, I'll take a closer look later. johannes