Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3988202pxp; Tue, 15 Mar 2022 10:05:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5+DF5CH7nAluEbkeZYbkrdPYyeN9ntzjq1J+ueSDi6omIlFdtAObMpblC+x5bCCk8ijh+ X-Received: by 2002:a17:902:ce81:b0:151:a817:c077 with SMTP id f1-20020a170902ce8100b00151a817c077mr28843166plg.138.1647363952347; Tue, 15 Mar 2022 10:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647363952; cv=none; d=google.com; s=arc-20160816; b=jtQJm+mlJ1lZ8crNRrGQ70D6XbEi0pZW//iYldCyU6uLaPlshmsthN24PKbgMvJ96+ KWveqpDaJ0quOr1cjf0d0fGLItn/8H+n+HICYUYX9fz4XNg7PtNq4tZEQxOJO0ftcXyQ TkCqrCsu04lsNM1NjMsqy4sH22h7n2UgbfmXE2pDJOHaTPCqXH5mzIskEmeZUadJeBCW 1XZEsgAvGlokAPnqQyJ6qpAdYdYqIQzX56eKvUgUPLhOqNyQZpRlbqWz3j8STxaM0ROs iKEV6U2+vPGvghNq3MO3JDhZhR/ETpOKRtwHU9ChJzMerEjoQ/RyUS5uHLWezdvQ/2J/ WowA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gRcPVbQfTsq2kqzwwv/Teh2nVwt9PZicYqqBH80BgHs=; b=TqTvQ6g/vbGbGcm7ZKckCj+SjchDlMLeMv4+X0IxS5atN4L/0DfM7IuMVSMaH7WkRQ go6IrJ7xRE0YtUc+lv+xKpCQGoSQjjTRtIbo1BtYocAwOctQU0RSkaUO98ioZTa7sl2+ loN7XQrgC92CJeCeAl1SA8MGBYAmlfmqRcqxq5EZLVIjEWLJsKXNNNXO+NN+WUoo+khc iVcui90LC017ST/1M0xtSXodLNOFv9f0UJV8jX3LNP0wDZ9spyHkcRBDeXoBxpS0lsXA Bt3TnBNpUENtCsQchiGVUsVdP3SFUL5aMhlbAJVh3EhhsuBWGk/iJ4mmDRacYBsb3pRJ W1AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rZeTCE0c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj7-20020a056a02018700b00378bbeba906si17939210pgb.191.2022.03.15.10.05.37; Tue, 15 Mar 2022 10:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rZeTCE0c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234150AbiCNMZa (ORCPT + 99 others); Mon, 14 Mar 2022 08:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242229AbiCNMSw (ORCPT ); Mon, 14 Mar 2022 08:18:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3210A4738C; Mon, 14 Mar 2022 05:13:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4DD20B80DEB; Mon, 14 Mar 2022 12:13:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96BB5C340E9; Mon, 14 Mar 2022 12:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647260029; bh=0k+i8MwccnYAWINa3YTG6YsiQlyihAfbkrLxt8cV72Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rZeTCE0c2NzW4CD/sG4bBVkkspXhWMVis6P6gcjmcW80DNeAyoDl18qf2A/Dp8hwp ApT2MLkjjh2G0+h/hs3jm5zumhxJI6vB5JfG7tekuqazkHWn5ATeLtpxxtyjPhVwcR fNXWQZ86N/7NG8BLuZjD5r4guh7Di2lk38MFv+cY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Leszek Kaliszczuk , Tony Nguyen , Sasha Levin Subject: [PATCH 5.16 037/121] ice: Dont use GFP_KERNEL in atomic context Date: Mon, 14 Mar 2022 12:53:40 +0100 Message-Id: <20220314112745.165027147@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112744.120491875@linuxfoundation.org> References: <20220314112744.120491875@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 3d97f1afd8d831e0c0dc1157418f94b8faa97b54 ] ice_misc_intr() is an irq handler. It should not sleep. Use GFP_ATOMIC instead of GFP_KERNEL when allocating some memory. Fixes: 348048e724a0 ("ice: Implement iidc operations") Signed-off-by: Christophe JAILLET Tested-by: Leszek Kaliszczuk Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index fc04b4cf4ae0..676e837d48cf 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -3016,7 +3016,7 @@ static irqreturn_t ice_misc_intr(int __always_unused irq, void *data) struct iidc_event *event; ena_mask &= ~ICE_AUX_CRIT_ERR; - event = kzalloc(sizeof(*event), GFP_KERNEL); + event = kzalloc(sizeof(*event), GFP_ATOMIC); if (event) { set_bit(IIDC_EVENT_CRIT_ERR, event->type); /* report the entire OICR value to AUX driver */ -- 2.34.1