Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2208586ybl; Sat, 14 Dec 2019 08:02:02 -0800 (PST) X-Google-Smtp-Source: APXvYqxSi9AD/9BwMm4K6QwQlviTGCgHF5ef4qqvqrroac6ENaGUfxmv/zRmGIrqPXKCHsdCtHR6 X-Received: by 2002:a05:6830:22ee:: with SMTP id t14mr20586450otc.236.1576339322755; Sat, 14 Dec 2019 08:02:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576339322; cv=none; d=google.com; s=arc-20160816; b=fRHVdwbT5cWb01+roW1aPulIZi0XlSJk92cUP8PXYclMft/6dbG2Is9WTq3MV+N8C+ 7koJFW3O3AmlZzDRfuA7WuFaI1206FUQFaXbxRo2DFyzRrVemaq0gieWPKsuvBX7qVaz HO/WdIATTG4pgNNMsxz6KWtmfb7xq1LxsLT+7QYFVY01uBBhX/M6eE6tNp6WP46ZxWed FxqdLRs1JmHO124gyG/kVKVEyA2Hk0fgJmdPFsCYqZSr7pw8+RbOJGcgDo+NcTTmZt8q F/ICWNv8pmEvPfeWt9eirIYENFq4wrmJWrL5XM4KMbNW4YEay7CR3L6C2ARNPdklmkJv 1jVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=k5n26h5aUGynjAqQqkXs+oOQEbeY7Busq7aVKwZv934=; b=qxXcfMH1zLZT27+a173wH7NpTBt+Wt+3mmr02N6AgoHZVMYXSW/V9vFPSlkkwpxqDz LcIphfeUbYHit1xHN8pVcYjzLZJYQq4Oj+DC8aqqXkY7FCb/ycRTmCGtrYWDMSxHaXAl +Ln1YenHZxO7gBuCKS2rRnps9d4KJuFVSE8FwQ4Se/Y3rGNiRk5y47LhYq2BWPBN5/16 A9XPhcYDNKkc2NucWGN67VAUVCnw2vzkX2KVgsdy+CiB4X6jCywF3L/NXGJV5YQ8JYWJ iCEWpt8GEklZ9Kpv4BfMr3kMdUlAGcNNBvkw8eUPSzRiMOEwojg8iGF6L+VBRmOclEKg H8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ODeXure6; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si6862277oid.254.2019.12.14.08.01.50; Sat, 14 Dec 2019 08:02:02 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=ODeXure6; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbfLNQBt (ORCPT + 99 others); Sat, 14 Dec 2019 11:01:49 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45194 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbfLNQBt (ORCPT ); Sat, 14 Dec 2019 11:01:49 -0500 Received: by mail-ot1-f68.google.com with SMTP id 59so3055608otp.12 for ; Sat, 14 Dec 2019 08:01:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k5n26h5aUGynjAqQqkXs+oOQEbeY7Busq7aVKwZv934=; b=ODeXure6jQF/dq3PW1o9+jB3aEO0KJwMWTteksoKCh0yRp8GbygEpVabOYcB+IUfhG 14lox5LNc8rvyY+84+Ca/HuKoMmghzfqai+GI5ouKEp5dWTKeLSW5EctgTdiGss1JBNh Ak7CaWvDcuoNrVcMIt1XT1wvrhVguQUSErevTkoWudsxSC/m5kTHa3P3hLDfAImr/9Yk D8V18JwqAxXFCm3qr4eLwiSaFhbJL7hy5oYhtbOT4TnkAehE5TqP8iJKJWQYet4U7g4K U9417WAZstehJf5N7r6TUzb5xZDUn0HpfHHbXPxxvQWTCTsvbPZcufkSEkzARLP+YkEY Iy3w== 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=k5n26h5aUGynjAqQqkXs+oOQEbeY7Busq7aVKwZv934=; b=ejyyVBE71JQ20PnkGASHZz5dbrpLF4p6Q1c556Sls+pR/2dsSuuzwal6E7j91nj9h7 fCv+WGxi4sXtQSjhEsjKmq6QdgPAug4SX56c+LWBnVYrIKLg8ryzNWo2t6uVsJ/Ao7tq nMu5OUx6/7Ajca+rzRkhEos3FuVEFFevBG6lOyB7MflLUno3p+Ncp3sXKW/cr1APHM3S RFhHnjP3UUUAKnynfnHVYEqne5B/ITQT7cHz07v2nMl2t7YjFvyRbeLkXejHPEvIhDWL OPpKG+HX2xyp7XPR14AzGBh6Q1yVco/aoSJtBTTwOXUpNuHaII8L+LybU8sq60An0I+6 35jA== X-Gm-Message-State: APjAAAW4mEp91oqlkqyUfDVsTTpuZKBUHtTvfGO8rbmPZUQ3IARGEz5Z qIL7fkEPKrLecmqL8K86WihBEvXvubNlKPZPf0A= X-Received: by 2002:a9d:6b03:: with SMTP id g3mr1132014otp.200.1576339308565; Sat, 14 Dec 2019 08:01:48 -0800 (PST) MIME-Version: 1.0 References: <0101016eaadee57a-54500c6d-4751-423f-8bab-5acd8fad2175-000000@us-west-2.amazonses.com> <0101016eb61d9520-b0306a23-c9b9-4b57-b708-9f80ac47eef1-000000@us-west-2.amazonses.com> In-Reply-To: From: Justin Capella Date: Sat, 14 Dec 2019 08:01:33 -0800 Message-ID: Subject: Re: [PATCH] ath10k: set WMI_PEER_AUTHORIZE after a firmware crash To: Ben Greear , Wen Gong Cc: ath10k , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org If you have time to spare I'd be interested in hearing a little more about your stances on this... I'm trying to learn more about this stuff and not at all qualified to say one way or the other if it is a good idea, but my intuition is this is going to lead to inconsistent state/behaviors. I have been wondering if maybe this change may be related to some of the fw crash reports coming in--- perhaps marking the station as authorized before the fw is fully started and/or the device is present On Mon, Dec 2, 2019 at 10:17 AM Ben Greear wrote: > > On 12/1/19 8:45 PM, Justin Capella wrote: > > Are there security concerns here? Was the peer known to be authorized > > beforehand? Would it be better to just trash the peer in the event of > > a fw crash? > > I think you should completely re-associate the peer(s) when firmware > crashes. The driver does not cache all possible changes, so it cannot > exactly rebuild the config to the previous state. > > Thanks, > Ben > > > > > On Thu, Nov 28, 2019 at 11:46 PM Kalle Valo wrote: > >> > >> Wen Gong wrote: > >> > >>> After the firmware crashes ath10k recovers via ieee80211_reconfig(), > >>> which eventually leads to firmware configuration and including the > >>> encryption keys. However, because there is no new auth/assoc and > >>> 4-way-handshake, and firmware set the authorize flag after > >>> 4-way-handshake, so the authorize flag in firmware is not set in > >>> firmware without 4-way-handshake. This will lead to a failure of data > >>> transmission after recovery done when using encrypted connections like > >>> WPA-PSK. Set authorize flag after installing keys to firmware will fix > >>> the issue. > >>> > >>> This was noticed by testing firmware crashing using simulate_fw_crash > >>> debugfs file. > >>> > >>> Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00007-QCARMSWP-1. > >>> > >>> Signed-off-by: Wen Gong > >>> Signed-off-by: Kalle Valo > >> > >> Patch applied to ath-next branch of ath.git, thanks. > >> > >> 382e51c139ef ath10k: set WMI_PEER_AUTHORIZE after a firmware crash > >> > >> -- > >> https://patchwork.kernel.org/patch/11263357/ > >> > >> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches > >> > > > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com >