Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8207908ybn; Tue, 1 Oct 2019 05:01:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNkE20kLT5L8WLYYmSPYDuVJ/EDWGzJnsxhS2iwHAiNgfxB2QFcIY1155jPb/yr/EYE+BS X-Received: by 2002:a17:907:20a2:: with SMTP id pw2mr23155375ejb.163.1569931265074; Tue, 01 Oct 2019 05:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569931265; cv=none; d=google.com; s=arc-20160816; b=YnDWVRu/nERIHtQ7XNtShkGD8h1t7KsYXpE3MwZ9vBMzlASdcrSxoW/9sVHw2BzvvY 0Fyt0L43OdvDiIzm0PkxHzFIJrmJB9RCBYr591xwVnEhcZyCEWegUWde2EoP2Lo4UzVC H+wCnB3VoN71a4weTcLtJu9TVAt+FQtYMAQdNI4VpgDpGxodwhmFX/bELrmnyVpjDzxj kAOc0bFZ7KYZwGOS7pWNoAnfea5E/XWlGNRtpqjK5Tuk47mmro952CnS6VkOP/gPjgpU 1391spowEm0sq7ELUdwBaGFdqR0X045s/gbOd8gngh/d9Shyy8F+kD+/GgNDdsuwAOEc Oprw== 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 :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=djRAC1jjNuvZ5HcEUbXz8LqbN7uahdd7gFSrD/Ow6BY=; b=WFTLbj3A0n/iR+QKDW2NKS1NWBqMtqokfmu/0V+kS2PybWEkJ1vIgSMORk1wjmD+o4 JUqKHfuakk/kUuTLm9r/VLOHYh9Ir7QarV5YZDljWmTbws/cafMiTZVsuO9TCVlvs5M+ Y4VLlpHZ0GRqn0BU/S0riqNZxl6X6Lhheq8Vb05hkf/ri+8zEH96AUwrwpFRtEMZm5Bj 3bpMfuyO8HsOx+aCNii+b8/2gb/0gPdf14JDhJdAd8X3kf+Dl3ERYSfJWYR7SI3yE3if evYo61UnQVEeDQvro8mN8aVROC1a8XRH/l4bpWsBY9PfwVOda8aYwSXEQMF+NGffuSGx C1Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=egy2YD35; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si10150820eda.111.2019.10.01.05.00.38; Tue, 01 Oct 2019 05:01:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=egy2YD35; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725947AbfJAL62 (ORCPT + 99 others); Tue, 1 Oct 2019 07:58:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:54054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfJAL61 (ORCPT ); Tue, 1 Oct 2019 07:58:27 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DB1EF20640; Tue, 1 Oct 2019 11:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569931107; bh=OgiOZU38SqL+RT076Kc7vgcWrZhVApcF4i/OOXDXLLs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=egy2YD35xaXZYM//mgnYkOr1VGNb87DOmezbNO64raOOdHz0bxO4Jb/gFBquCLPiV HABRDpoQ/n7RTyVQZ8uOGmDL8f/KNeqB8/PJdlJXsJ5PveHIMV4sdEpMSEm5sMfJfy Eq++tKhDTYQTA5yHjLpFffem6fDCXmO60Y9Td3iE= Date: Tue, 1 Oct 2019 13:58:00 +0200 (CEST) From: Jiri Kosina To: =?ISO-8859-15?Q?Toke_H=F8iland-J=F8rgensen?= cc: Johannes Berg , linux-wireless@vger.kernel.org, Johannes Berg , Aaron Hill , Lukas Redlinger , Oleksii Shevchuk Subject: Re: [PATCH v2] mac80211: keep BHs disabled while calling drv_tx_wake_queue() In-Reply-To: <87tv8su1up.fsf@toke.dk> Message-ID: References: <1569928763-I3e8838c5ecad878e59d4a94eb069a90f6641461a@changeid> <87tv8su1up.fsf@toke.dk> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 1 Oct 2019, Toke Høiland-Jørgensen wrote: > Johannes Berg writes: > > > From: Johannes Berg > > > > Drivers typically expect this, as it's the case for almost all cases > > where this is called (i.e. from the TX path). Also, the code in mac80211 > > itself (if the driver calls ieee80211_tx_dequeue()) expects this as it > > uses this_cpu_ptr() without additional protection. > > > > This should fix various reports of the problem: > > https://bugzilla.kernel.org/show_bug.cgi?id=204127 > > https://lore.kernel.org/linux-wireless/CAN5HydrWb3o_FE6A1XDnP1E+xS66d5kiEuhHfiGKkLNQokx13Q@mail.gmail.com/ > > https://lore.kernel.org/lkml/nycvar.YFH.7.76.1909111238470.473@cbobk.fhfr.pm/ > > > > Reported-by: Jiri Kosina Reported-and-tested-by: Jiri Kosina > > Reported-by: Aaron Hill > > Reported-by: Lukas Redlinger > > Reported-by: Oleksii Shevchuk > > Signed-off-by: Johannes Berg > > Reviewed-by: Toke Høiland-Jørgensen Thanks, -- Jiri Kosina SUSE Labs