Received: by 10.192.165.156 with SMTP id m28csp61250imm; Tue, 10 Apr 2018 16:24:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+kBcAyRrKOWusMCk0vqFMJLFncuruVBMekroLIWJFpX4u8mPWqBVfIoYAiqvBI2BPTXqVF X-Received: by 10.99.178.88 with SMTP id t24mr1721115pgo.212.1523402685646; Tue, 10 Apr 2018 16:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523402685; cv=none; d=google.com; s=arc-20160816; b=XUoGki4HLHphTIMJxXdwahiIqjePauzXpypW6pKcen2j3s77DqJSdFX8UBga/xFGPp bLOPR+WU2nCzenYlcbKe5ICY9x9+BzOFnzXo+PBCoFHICUZxnXfHbIJpPKK8uJZpa6M+ oQP+6j4KVVIBZTQY24k9oOnDoFJsCYDJpiZwlmo7ZstwWiTyHFgYlTCjvdOVjMJrqRfL mhjz2Xhq1Gpisrzw3CYJPW5IcYhSFFDFQqk8eGACkxnZcffb28xR08H6LLBQasbccL17 EpAUv9e8IAzEDP4m6Ve556JNBAEfaIUe2PFfaej0SzDDJQlzM+7jyH8YNrhYBdx7eO4N dXkg== 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=PpHtFS2Sx9JusOxSs1/jpWlDF5JxKJ0gh2sxr4EKUT4=; b=VGFLot4aKNFBvUlYEOg06xXdp8pMQSXgzb6ncNu+sEIBfJu0uIrRy5r5Qt/i6EMS03 /b+eVkmGfGUzqcmexwiIdc3Bvn0Jn309Pa/WhQdOP43NNCQUHK1NlUIp7peidI0sxXVd aTWK+1YKe8pJ2OhjzPfA/Cp3jVJJmqDCKXeTjWa6RdkCSAv+3ze0RL2CdGJBbTjHT+p+ wxuJff8F16aCl1wIV6qLQPlR3fO7Y3bcEIg5MeFfqgjue2cALqZkGb8JtZ7bk84xtyyt rMSmOXgIlTNmVUPEANVZ6vkJH4ChiP3bRhwEn/LxikvVmAft0UFzyseTm8GeoRNStpG6 EVwg== 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 e34-v6si3524134plb.281.2018.04.10.16.24.09; Tue, 10 Apr 2018 16:24:45 -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 S1754751AbeDJWbK (ORCPT + 99 others); Tue, 10 Apr 2018 18:31:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40268 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752785AbeDJWbH (ORCPT ); Tue, 10 Apr 2018 18:31:07 -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 82D00DE0; Tue, 10 Apr 2018 22:31:06 +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.15 100/168] ibmvnic: Dont handle RX interrupts when not up. Date: Wed, 11 Apr 2018 00:24:02 +0200 Message-Id: <20180410212804.512329940@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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.15-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 @@ -2484,6 +2484,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])) {