From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:47492 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbbGDDEs (ORCPT ); Fri, 3 Jul 2015 23:04:48 -0400 Subject: Patch "sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in" has been added to the 3.14-stable tree To: sowmini.varadhan@oracle.com, gregkh@linuxfoundation.org Cc: , From: Date: Fri, 03 Jul 2015 20:04:48 -0700 In-Reply-To: <1429626641-199974-1-git-send-email-sowmini.varadhan@oracle.com> Message-ID: <143597908763228@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in to the 3.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: sparc-Use-GFP_ATOMIC-in-ldc_alloc_exp_dring-as-it-can-be-called-in-softirq-context.patch and it can be found in the queue-3.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From patchwork Tue Apr 21 14:30:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context From: Sowmini Varadhan X-Patchwork-Id: 463148 Message-Id: <1429626641-199974-1-git-send-email-sowmini.varadhan@oracle.com> To: sowmini.varadhan@oracle.com, sparclinux@vger.kernel.org Cc: david.stevens@oracle.com, davem@davemloft.net Date: Tue, 21 Apr 2015 10:30:41 -0400 From: Sowmini Varadhan Upstream commit 671d773297969bebb1732e1cdc1ec03aa53c6be2 Since it is possible for vnet_event_napi to end up doing vnet_control_pkt_engine -> ... -> vnet_send_attr -> vnet_port_alloc_tx_ring -> ldc_alloc_exp_dring -> kzalloc() (i.e., in softirq context), kzalloc() should be called with GFP_ATOMIC from ldc_alloc_exp_dring. Signed-off-by: Sowmini Varadhan Signed-off-by: Greg Kroah-Hartman --- arch/sparc/kernel/ldc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/sparc/kernel/ldc.c +++ b/arch/sparc/kernel/ldc.c @@ -2307,7 +2307,7 @@ void *ldc_alloc_exp_dring(struct ldc_cha if (len & (8UL - 1)) return ERR_PTR(-EINVAL); - buf = kzalloc(len, GFP_KERNEL); + buf = kzalloc(len, GFP_ATOMIC); if (!buf) return ERR_PTR(-ENOMEM); Patches currently in stable-queue which might be from sowmini.varadhan@oracle.com are queue-3.14/sparc-Use-GFP_ATOMIC-in-ldc_alloc_exp_dring-as-it-can-be-called-in-softirq-context.patch