Received: by 10.223.185.116 with SMTP id b49csp7209575wrg; Thu, 1 Mar 2018 01:31:37 -0800 (PST) X-Google-Smtp-Source: AG47ELsPIIHWOMDQ1Isvl9awdgxzg1KREncbIeX3+d7AIcwY1SL/yPQvNqg6JdvlBCyia/kxaRDQ X-Received: by 2002:a17:902:7612:: with SMTP id k18-v6mr1308290pll.397.1519896697101; Thu, 01 Mar 2018 01:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519896697; cv=none; d=google.com; s=arc-20160816; b=Re2OCzZJpKI/ax7xNN6bQeafK0SibY0zuujaS6lyach8qE+yoW0866bWaSPoeTapV0 JroPjDUSVJGojbpD3dD9e5Bg9+xmwVRKAVHKy2tiM5ayN3c6EZcDFQ17pygzX1nNTvKT lCVoYLBRkffp32S91ZycMbxuxH2oPhH24ct6wnzNze8JcEtaumDXweVXNK9ybDjwlEi6 YymTSfz46f6OlcbWGuTTUnVaDb8BOf8uHfDivrjGr9HwKF7cVQEBW4SxkoZRB7HSKKNr RWDznB7EnX7z/r3mEyxOg2AueMIN19zMY9gjw4PCY63TWk5ue5q+V33KkwKZLx4ay//6 1nyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=KEdzCNVJWFBgbh9k7x8J40XXRqUr5h86qTt+TBaXPxw=; b=Foq3KCsGATGd2Qw9nIuYEaGMOXVahk/dWmo1vGjUhz1nDc398iBsio4LXiXx2QSJQd 91O2lAfJRwCeafPRqQ4PNDvrPhX/10iU+1oWF3xwGd8K1EnNwNBWhnn/IdwBoos6OUDn 1doLx21M8BkYYcZnUDZQje8/ZF1Vr8jhU5wVIDKTaJuZ4ZlMu5tNZBNY6zIklf8j+e68 H1YivX4ZKG3kWCLJQbEwkSAJZF4VhuMDLS4uuXekcVIr0GM3LizHeRq4rk/RYUNvwxi3 vAxiMfyC1Uz440Xy0u5XZFPrWce6LyTTJDbnEuvbLqTwLNP/uCrodHU3ZmIjOjdkc3EZ od9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si2804296plt.123.2018.03.01.01.31.22; Thu, 01 Mar 2018 01:31:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966906AbeCAJan (ORCPT + 99 others); Thu, 1 Mar 2018 04:30:43 -0500 Received: from s3.sipsolutions.net ([144.76.63.242]:53282 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966650AbeCAJal (ORCPT ); Thu, 1 Mar 2018 04:30:41 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1erKXv-0006p9-Mt; Thu, 01 Mar 2018 10:30:39 +0100 Message-ID: <1519896638.2292.7.camel@sipsolutions.net> Subject: Re: KASAN: use-after-free Read in mac80211_hwsim_del_radio From: Johannes Berg To: syzbot , kvalo@codeaurora.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, Benjamin Beichler Date: Thu, 01 Mar 2018 10:30:38 +0100 In-Reply-To: <001a113ecf342db684056655e097@google.com> (sfid-20180301_094507_144777_9C69AA6F) References: <001a113ecf342db684056655e097@google.com> (sfid-20180301_094507_144777_9C69AA6F) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > syzbot hit the following crash on upstream commit > f3afe530d644488a074291da04a69a296ab63046 (Tue Feb 27 22:02:39 2018 +0000) > Merge branch 'fixes-v4.16-rc4' of > git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security > > So far this crash happened 4 times on upstream. > Unfortunately, I don't have any reproducer for this crash yet. > Raw console output is attached. That's ... a pretty complex scenario. Looks like we have a race between destroying a network namespace, which moves everything back into the init_ns and may have to rename objects asynchronously (cleanup_net), with destroying the radio in hwsim that's also asynchronous (destroy_radio). Benjamin, would you be able to take a look at this? I'm preparing for a trip and will leave Saturday for a week so I don't think I'll be able to really dig into this before mid-March. johannes