Received: by 10.192.165.156 with SMTP id m28csp39889imm; Tue, 10 Apr 2018 15:58:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48viTKEE0jJz2e5s0RN9rWCLUIFIKSJqy7YNKVwAGRmzLXrxad/820xnxbCxB3JRHsguyoH X-Received: by 10.99.95.78 with SMTP id t75mr1624907pgb.330.1523401099074; Tue, 10 Apr 2018 15:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401099; cv=none; d=google.com; s=arc-20160816; b=b6yZxaSWT36ycDPef0QUDOTkPE6ln5xgmwzYnyiPNM3iBLQc9Z03l+GB/rtJpfnPN2 rkDpA5dgd5xP4Hjo6/r3lPJsQLTBEGHHqBPNEWlhLrsU6ow6WFPMx93mAOtLSXTYw/Qj FT/1VLxuuwYhl0SO6H9ri0lBxgmHlFFcOsVpZ3y/jzkL6qiEpmkixyEX2a4Etg4HsfIN BWcEzTKUg93fbT8CZkSYBdok+EULeLh7C+IWS91iTFiL/75OZFxuhsaV5KbGi+vv6u9N AUE65jGL17OJjlY09zA1mTojQy4VUy9RYTRuquIPmtOhP9Blu8TAOtd0r/CkWebybSfh Svdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=VKj6Q7wIIcsr8L/LAhhsxJo4xhzHK7fQYD1AUPBTeUc=; b=DuSPu42+xO6rQ92QNE3yS7fTzHYJQVaMu7v0BQZzvlC7y2xTWtnTxXP99nhcsRdDkE tIOopHAsOyBXgsCOQsY9lsU/xCqPhN9QSGBbxbrkDl2zff/hnAoOJwzpR19AkQnRw689 fJ1D3tCNnbQsJNNevy+qhmdiLM2ejZ6xYio2urQcMnl7umQ4qkLfP8HzmT49jhL2524E b/xQC4KRp3ecp8k80I0aE5o4udJjXJySXBp9z/Bw3nek+9ZY9bzo3mdkYpLwriGPTl8Q G3PPlrrblDwCrILQcP7mZbziSzta7Rv0O12PJBj8CFT+WIe2jdukzITVRaul2s0JpoeH uxoA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d124si2856973pfc.22.2018.04.10.15.57.42; Tue, 10 Apr 2018 15:58:19 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756097AbeDJWw1 (ORCPT + 99 others); Tue, 10 Apr 2018 18:52:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43920 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755844AbeDJWht (ORCPT ); Tue, 10 Apr 2018 18:37:49 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 06732CC4; Tue, 10 Apr 2018 22:37:48 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 076/138] ibmvnic: Dont handle RX interrupts when not up. Date: Wed, 11 Apr 2018 00:24:26 +0200 Message-Id: <20180410212910.981912187@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Fontenot [ Upstream commit 09fb35ead58cd557aa9b20576d15816bc91a4deb ] Initiating a kdump via the command line can cause a pending interrupt to be handled by the ibmvnic driver when initializing the sub-CRQ irqs during driver initialization. NIP [d000000000ca34f0] ibmvnic_interrupt_rx+0x40/0xd0 [ibmvnic] LR [c000000008132ef0] __handle_irq_event_percpu+0xa0/0x2f0 Call Trace: [c000000047fcfde0] [c000000008132ef0] __handle_irq_event_percpu+0xa0/0x2f0 [c000000047fcfea0] [c00000000813317c] handle_irq_event_percpu+0x3c/0x90 [c000000047fcfee0] [c00000000813323c] handle_irq_event+0x6c/0xd0 [c000000047fcff10] [c0000000081385e0] handle_fasteoi_irq+0xf0/0x250 [c000000047fcff40] [c0000000081320a0] generic_handle_irq+0x50/0x80 [c000000047fcff60] [c000000008014984] __do_irq+0x84/0x1d0 [c000000047fcff90] [c000000008027564] call_do_irq+0x14/0x24 [c00000003c92af00] [c000000008014b70] do_IRQ+0xa0/0x120 [c00000003c92af50] [c000000008002594] hardware_interrupt_common+0x114/0x180 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmvnic.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -2209,6 +2209,12 @@ static irqreturn_t ibmvnic_interrupt_rx( struct ibmvnic_sub_crq_queue *scrq = instance; struct ibmvnic_adapter *adapter = scrq->adapter; + /* When booting a kdump kernel we can hit pending interrupts + * prior to completing driver initialization. + */ + if (unlikely(adapter->state != VNIC_OPEN)) + return IRQ_NONE; + adapter->rx_stats_buffers[scrq->scrq_num].interrupts++; if (napi_schedule_prep(&adapter->napi[scrq->scrq_num])) {