Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp563505pxk; Thu, 3 Sep 2020 07:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW1Q//y2oMgjI1RXD7PcnqZ8OowtwYewaJHYu5hp2NUO2r16rgzyPu53rjUkWn6Zr9aHH5 X-Received: by 2002:a17:906:3b4b:: with SMTP id h11mr2270088ejf.381.1599142050840; Thu, 03 Sep 2020 07:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599142050; cv=none; d=google.com; s=arc-20160816; b=JaTYKxJPJILbzlKIN1S2Y6m9qgPZ4evpiw2qZe0aAhuQ5Jl3X6GHOaULsyM7kIcs93 hiOeOsbMUUuv8rflsvgp38Bh3awjB9Wuw/SJIowPoNd55pA77wRbkje9f90qW/1KtkRZ dwbIyhxY0xhzmRq/te7r1QmyRntlMmqmQcekUUpr7gHksQ5Cv725Zo+mmF+UGUYLszep sKkfA/HXDVEMCsWX7keybeDn776yHevITszTt15t1Wrhi6hd2lm9dTnkZyDOLqpgZf+e EHX7DiMWJ12b7Z5yc+ojfH4bcQkuhh/yuO9Tf6lvMpKrnjKBZmCXV8UsWIrbAI/AfexA L0/w== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Q7QBEH7DTk24MKzTBBLGkcNkUVk0mecERFsT465z0II=; b=VHg9Kgld1pO4V4sjx2rXZBgSjR4sb6pMkBDDLSqyZZc0vyV52RAAmnp4RfLFnRtb7Z scxGPwNuC2lUcLATQ0xUj4Bs/7sXOhfHdJ9YBdqgs87MplGTMnTX7TNcl+GSHFH4+rvh 6iaKRHV3R8rA/f3Co0EcZiHZftrfy2EV3/rQGUi5JycGyRrBIS9xiZzQv3XMtkWa0Eb+ aTwBWkLgnFJUZrkW07mqNv0MddrSNuRFL8aG9YdCQ6QYBiqTc4ufFWtrCqQRCvypP5v4 RNcU82pratENZsq+lMeKzR2vrWPKdO3Qjch2oCldkXhszwENKRoOdlxtA2qjosf8ak2M uWRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 w20si1842823ejb.217.2020.09.03.07.07.03; Thu, 03 Sep 2020 07:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729029AbgICOFl (ORCPT + 99 others); Thu, 3 Sep 2020 10:05:41 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10808 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728897AbgICMjQ (ORCPT ); Thu, 3 Sep 2020 08:39:16 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 56A098AEC195BED7EB6D; Thu, 3 Sep 2020 20:38:53 +0800 (CST) Received: from [10.57.101.250] (10.57.101.250) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Sep 2020 20:38:45 +0800 Subject: Re: [PATCH] net/mlx5e: kTLS, Fix GFP_KERNEL in spinlock context To: References: <1599133539-175203-1-git-send-email-xuwei5@hisilicon.com> CC: , , , , , , , , , , , , , , Boris Pismenny , "Saeed Mahameed" , Jakub Kicinski , Tariq Toukan , , From: Wei Xu Message-ID: <5F50E3D5.8090302@hisilicon.com> Date: Thu, 3 Sep 2020 20:38:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1599133539-175203-1-git-send-email-xuwei5@hisilicon.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.57.101.250] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, Sorry for the noise and please ignore it! I found a nearly same patch has been sent out 2 days before. Best Regards, Wei On 2020/9/3 19:45, Wei Xu wrote: > Replace GFP_KERNEL with GFP_ATOMIC while resync_post_get_progress_params > is invoked in a spinlock context. > This code was detected with the help of Coccinelle. > > Signed-off-by: Wei Xu > --- > drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c > index acf6d80..1a32435 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c > @@ -247,7 +247,7 @@ resync_post_get_progress_params(struct mlx5e_icosq *sq, > int err; > u16 pi; > > - buf = kzalloc(sizeof(*buf), GFP_KERNEL); > + buf = kzalloc(sizeof(*buf), GFP_ATOMIC); > if (unlikely(!buf)) { > err = -ENOMEM; > goto err_out; >