Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2762823imm; Sun, 29 Jul 2018 02:49:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOw/DvKWJBCLQjtJADbbh9AlQhjR5r2H0Qqbp6teBjharjScRwF/6ZB6rWXteknp3ZHOYP X-Received: by 2002:a17:902:1101:: with SMTP id d1-v6mr3017819pla.131.1532857760117; Sun, 29 Jul 2018 02:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532857760; cv=none; d=google.com; s=arc-20160816; b=UHp7bpy0MNYUqP0lPKzOgdI86zZ2xoGCaeAjpenSky9bmdNvmAeBIIH7bhp9cccIt/ FfnJ5Bk1pV3zhwfoI91gJaMEwmBhrWkW8pUUMaVa+OQe/nTnmkHsusqAzoSq0Tsf/CEQ K+g/gKTzxGj3KJ9Cljou1ItlrTW5k96vRhLtrQ+a7yy/sL3AhU7DK3rakO9SuqKsrLqo l36G0427UPjDgkAzdOIkAvZ62X9sq2bJtD2wZ09I5UTJArir2wafVIy1+wEBRpWXy1zg 9dIdPGcvT5OIlfyCuRxyThflYARq7gQ5angfQD7RabaadbulUUoJ8ZWHCd5sSMba8TXE uAKw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=DOVffaql1Bf9WVeYCZcihrH6akkd/i5OvHYFwm6CSx4=; b=NYkzf3DPBnw1blTdHqSbLMy8lxZDuDA7mLpxJZZ06FxuZfR3h1yjbmpa5IS351OhLe xDlpvPmc/SyrY9g1gTNzbucxfMH2tAsXdAGbD3+BNWubBp+ug3UCs2RFSg6kjgKY5ZXm CaldTVfwzzxFTS2YWDOEFOJUY5Hf1p5Z0if0pPZ/D7W/EpS5VVV7+93Q6UVOIrNCaUW6 EB3oOKFU69tqKWD1zbq6Pr+rTEJHZhXUg564Na3aJUJR3nR7zYis9SIRkBduE0u71yRu 5mQPktLetV9ml0Abh/RqDoL1mqqXlCkPPLnwVNH5b8Qn//ZqDzM+9KgBSGuO9mQT5Fxv gMBw== 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 w188-v6si8619974pfw.307.2018.07.29.02.49.06; Sun, 29 Jul 2018 02:49:20 -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 S1726368AbeG2LRV (ORCPT + 99 others); Sun, 29 Jul 2018 07:17:21 -0400 Received: from ackle.nomi.cz ([81.31.33.35]:42890 "EHLO ackle.nomi.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbeG2LRV (ORCPT ); Sun, 29 Jul 2018 07:17:21 -0400 X-Greylist: delayed 357 seconds by postgrey-1.27 at vger.kernel.org; Sun, 29 Jul 2018 07:17:20 EDT Received: from localhost (notes.lisk.in [IPv6:2a01:430:1::115:4]) by ackle.nomi.cz (Postfix) with ESMTPSA id 9A9289F58E; Sun, 29 Jul 2018 11:41:31 +0200 (CEST) Date: Sun, 29 Jul 2018 11:41:31 +0200 From: Tomas Janousek To: Ming Lei Cc: Patrick Steinhardt , Jens Axboe , linux-block , Linux Kernel Mailing List Subject: Re: [PATCH] block: fix NPE when resuming SCSI devices using blk-mq Message-ID: <20180729094131.4kwuukzgfgtisgya@notes.lisk.in> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jul 13, 2018 at 09:41:41PM +0800, Ming Lei wrote: > Now runtime PM is disabled for blk-mq/scsi_mq, not sure how this issue is > triggered on your machine. While Patrick did miss the following patch: * 765e40b675a9 ("block: disable runtime-pm for blk-mq"; July 2017). there is at least one other way to trigger it -- enable laptop-mode-tools or tlp which enable runtime-pm for all devices. The "disable runtime-pm for blk-mq" only disables it _by_default_, but doesn't prevent it from being enabled again from user-space, which it is unless one manually blacklists sd devices from runtime-pm enablement. It's bitten a few people already: https://github.com/rickysarraf/laptop-mode-tools/issues/123 (I found this thread because I'm also getting the NULL pointer dereference at 00000000000001a8 on resume from suspend.) -- Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, http://work.lisk.in/