Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp57391imu; Wed, 2 Jan 2019 14:03:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/X6P3j69AN4aTZl4xjxI4i2tlL2EOPMcLbULDcuRuSjoZD5l/zlRzSD34TQt3SUPJTHOsMV X-Received: by 2002:a62:de06:: with SMTP id h6mr47273837pfg.158.1546466588034; Wed, 02 Jan 2019 14:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546466587; cv=none; d=google.com; s=arc-20160816; b=rbPEE4A7nHp4Tuuy628pI7aeGneCZ2Nqo5Xf5lc0F31bsQ3RIpoZuxG/B2iWouiIUG G1bt5MqAQpNFzVZJcv+0Sqam5VWopJuo+M5sIKfYbzaVjVKK008xgS82zPmIFK+A/9oc bNTvS6fgnAgZYspqfe++6dGhowQhtptJfj+fjfAa9fVWN271gBLIJpeauChqBcPDmZPc U8716fUWaVvlxxpkXyYILUWzpQQQHXgHGxw+z/R7rX2TiZpnLYfZJNWiOdMd8AToopZA 2u6H+tdOW5t6jxoFnFcJ5HmVewsKwNwgkCsgZbyFQVOHz24+QFqHaeheVOcZJY0bhW+s a/ww== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ykhl4yI0C0z1TnNb528y9cWPzujaQQUM96oyXJXeV+I=; b=yTEJ/ADICp5Vm/uc7DM8+go/pFHAQgXt+7Bw5nA6nMtqXG1SolHiaKccdmM827514C zsP/+UFEhV7X5h6BZaWRseK3Pr97kmaVp0kZDMa01/NDFsJ7WMjhgjJKwQmzQIbU6ejq i5nBxv/ACqRNOAv5y3VbflOdpFy81PFRMNbnkOQ584lS1tWqtYXIKBw9hWpoSQohMWP/ /izzeb/H9hEbgEqPCZuxG43+1Y8ONRgH0WqsPb8V9efvoLnqUiUegfXLPYqpEmPnMoe+ 0W/5E9/Yl4mS8QpkQ8W/ZFI78wn2+22Bn243knxLOE3VrJ9J3NgvPW+UYjUQiWBY5V4Z gxNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NQUSybQF; 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; 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 f189si51742008pfg.123.2019.01.02.14.02.52; Wed, 02 Jan 2019 14:03:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NQUSybQF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729520AbfABTdf (ORCPT + 99 others); Wed, 2 Jan 2019 14:33:35 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35926 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbfABTde (ORCPT ); Wed, 2 Jan 2019 14:33:34 -0500 Received: by mail-lf1-f68.google.com with SMTP id a16so21721013lfg.3 for ; Wed, 02 Jan 2019 11:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ykhl4yI0C0z1TnNb528y9cWPzujaQQUM96oyXJXeV+I=; b=NQUSybQFbvNiPdZDlGvyz5Vca07eb28gsDJliGANH801XEHB3Hd6eUlcynEr0AftV2 H8yhbj0rJN2br6ctTreYm/DSP43H8p/OKBTo79+uOAwUUfxUjgNbeFiTsJjzEmBwEnGj WKDz5fDIxD4pp2Z6VlYCqEzY27g6NERj4crWx2QDpNkj8AU56JbeiEe2IPGKlbsOIFiJ 7TvQaeUK2JiO8JmZkE8aYrjcOpoYRKKGhcKFgDrulTUkQZo3T64FiAdwFMoMiE0fIZbP xDVwzA+C3Rp6PGCkkNjYI581r5YbVrKxvHfXhumGX8qpHTS28AM3XEY+xeHvQFU/bPQ9 LBZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ykhl4yI0C0z1TnNb528y9cWPzujaQQUM96oyXJXeV+I=; b=cXrg4G+7TxtyfYX3yDig1eeQr79XXV1AhVf8ImTshqDuVD36xNTnVVTYWYMdQ6qFka 3J8DJ4ffnc5TrqhVSk4uwciYnVG0sdIiEOjxJEswzx/gXWJHjvQIxWMbDkrU9qP4UZnt re5TSsr1B7umCOsNBJIZBCmD37kvoBLYLkfjgKoK2mSVedLYeEPtLRA/SfwZaT4oNI6b qcSJCHKpHO+ho6iraS3JX2FpEcTwwtUJMPoZ481wQDnSPfb2g9Cy6drUNBgBrUD5oyZt POZm8p8wybXXLllkJqIfmOKlP3yo5Q+sOkPR5j/TjsGBBejjMFTpaFfgIICExRn+gRSm pleQ== X-Gm-Message-State: AA+aEWZFLl6mM+CW/BLTAvA6kav3hyaslJR6uXNdHk75FRDUqoZ/FhEz BT52EHywqUXIJkHjR12hd/fNkVZm X-Received: by 2002:a19:ced3:: with SMTP id e202mr21780398lfg.13.1546457612189; Wed, 02 Jan 2019 11:33:32 -0800 (PST) Received: from [192.168.0.160] (ppp89-110-27-163.pppoe.avangarddsl.ru. [89.110.27.163]) by smtp.gmail.com with ESMTPSA id z64sm10045004lff.39.2019.01.02.11.33.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 11:33:31 -0800 (PST) Subject: Re: [PATCH] Revert "staging:r8188eu: use lib80211 CCMP decrypt" To: Larry Finger , Michael Straube , gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20181230183918.3888-1-straube.linux@gmail.com> <59368aca-c3d9-0563-aa83-118842834fb1@gmail.com> <2aab932b-b4ba-2601-06de-ca095a549fb7@lwfinger.net> From: Ivan Safonov Message-ID: <721d7c62-5119-f52a-6d5f-c3138654d0ae@gmail.com> Date: Wed, 2 Jan 2019 22:35:35 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <2aab932b-b4ba-2601-06de-ca095a549fb7@lwfinger.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/2/19 4:06 AM, Larry Finger wrote: > On 1/1/19 1:31 PM, Michael Straube wrote: >> >> I've tested your patch and it solved the issue. No freezes and dmesg >> looks good. >> >> I noticed that try_then_request_module() is also used in >> rtw_wep_encrypt() and >> rtw_wep_decrypt(). I guess that also could cause problems? > > Yes, I believe it would if anyone is still using WEP. My plan is to get > rid of the try_then_request_module() there as well, and for > completeness, I plan to restore usage of the lib80211 routines for TKIP > as well. Patch "load lib80211 crypto ops from interruptible context" ( http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-August/124851.html ) is a preparation to replace crypto_ops = try_then_request_module(lib80211_get_crypto_ops(*), "lib80211_crypt_*"); with (struct crypto_algorithm).ops > > Once I get a chance to test the TKIP and WEP changes, I plan to have a > set of 4 patches to switch the driver to using lib80211 routines for all > decryption/encryption. There are four other patches to use lib80211: use lib80211 CCMP decrypt ( http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-February/116533.html ) Use lib80211 to encrypt (WEP) tx frames ( http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-June/122642.html ) Use lib80211 to encrypt (TKIP) tx frames ( http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-July/123249.html ) Use lib80211 to encrypt (CCMP) tx frames ( http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-July/123250.html ) They all crash when try_then_request_module() called. > > Larry > >