Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp849403imm; Thu, 5 Jul 2018 09:57:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMfMjJafyxT0mJFUg45I1GmFoiqjixqGOLDe5yNQIhehEyWxya76ePr4cf4umnbomnXSJD X-Received: by 2002:a17:902:b18c:: with SMTP id s12-v6mr6954951plr.187.1530809865647; Thu, 05 Jul 2018 09:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530809865; cv=none; d=google.com; s=arc-20160816; b=1GMTJ/sHTV+9ipm8b16lt8pallMS9Z3t0mVrv1EDdN8tb88sVfQ8NE8pLstSqvVYW2 rGU8vYzth+bNPHeyUhIMRQ4zPwrFmGcffGPm7wP3RFHFvaCU5XFYFV0P+z6ZP6t1aTBr U7Lo3lm5U6q2mVBQVvye4sGs+WUafBKW2DWhZg05xvPz0KUSJhbiiegkKnje2IIMTK1x LKos0AeFZ0jk1yzxBxMQa9OUWT8l3fbUO+kz+LyAzMEfp5q1fD7Mn/JtbSJvYW8hsV+Z wC6HmGHK+P/yBYljuhfsnVn7x1JmqfxC5zMEs3OjEIIy97YNzKW4PBFMLuNge3LNYdW/ 4fNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=k3UkxOXeUedNdwKTTanjw2z4/LrRXUs0gQVwQu/U9yI=; b=M25s+lrtW4cFoX/G+J3iJA8OXKGvZXAOopJ89iAayFTR7nUbxTdPjD+JjBbgnMZgcb 0ini6nLPGKMK0WOzSuXsNQfVfQ7yg5On1jQ/zu5AbYLGZn4eR90k/HH1sKaK/iHvhC9h 9g36IAoURDoxeC9QXJtq4r3aQ7kXzUCcBffb8lWmUbxv+YQ94k3wufeAS/K32PUo+fVq TLo0R5alBpKr1pn3YRHAbE4edp7X7fguo8qwyhf/f58SLV0h6yQ1JT46m+slmpKI9rgW DT5OXnu3IIoT5EXY+taWzk9TLaesJ0Zci/rWqn8jQaatyiBmcBu7iPP8eeeTDbAX+dma tSRw== 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 p10-v6si1781336pgm.265.2018.07.05.09.57.31; Thu, 05 Jul 2018 09:57: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 S1754254AbeGEQzd (ORCPT + 99 others); Thu, 5 Jul 2018 12:55:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56362 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753827AbeGEQz3 (ORCPT ); Thu, 5 Jul 2018 12:55:29 -0400 Received: from localhost (D57D388D.static.ziggozakelijk.nl [213.125.56.141]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BB772CB7; Thu, 5 Jul 2018 16:55:28 +0000 (UTC) Date: Thu, 5 Jul 2018 18:55:26 +0200 From: Greg Kroah-Hartman To: Ben Hutchings Cc: Keith Busch , Jianchao Wang , stable@vger.kernel.org, Sasha Levin , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4.4] nvme-pci: initialize queue memory before interrupts Message-ID: <20180705165526.GA4349@kroah.com> References: <20180613171320.GB28828@kroah.com> <20180619172306.atcqdzb2tdk3ivvt@xylophone.i.decadent.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619172306.atcqdzb2tdk3ivvt@xylophone.i.decadent.org.uk> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 06:23:06PM +0100, Ben Hutchings wrote: > From: Keith Busch > > commit 161b8be2bd6abad250d4b3f674bdd5480f15beeb upstream. > > A spurious interrupt before the nvme driver has initialized the completion > queue may inadvertently cause the driver to believe it has a completion > to process. This may result in a NULL dereference since the nvmeq's tags > are not set at this point. > > The patch initializes the host's CQ memory so that a spurious interrupt > isn't mistaken for a real completion. > > Signed-off-by: Keith Busch > Reviewed-by: Johannes Thumshirn > Signed-off-by: Christoph Hellwig > [bwh: Backported to 4.4: adjust context] > Signed-off-by: Jens Axboe > --- > drivers/nvme/host/pci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Now applied, thanks. greg k-h