Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754529AbdIGKr4 (ORCPT ); Thu, 7 Sep 2017 06:47:56 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:36697 "EHLO mail-wr0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753927AbdIGKry (ORCPT ); Thu, 7 Sep 2017 06:47:54 -0400 X-Google-Smtp-Source: ADKCNb7w6FDexikvos8L8jUWSOoMAoQ5DVArMON5L+v+xaDCm6BkQFCfKAk6i1+wVNbJ0h6s9EagHw== Date: Thu, 7 Sep 2017 12:47:49 +0200 From: Seraphime Kirkovski To: Adrian Hunter Cc: Ulf Hansson , Shawn Lin , Pavel Machek , "linux-mmc@vger.kernel.org" , kernel list , Linus Walleij Subject: 4.13 on thinkpad x220: oops when writing to SD card Message-ID: <20170907104749.p2bk6lejj7tvupor@macchiaveli> Reply-To: f36b194b-f74b-20de-3122-0243774b74c2@intel.com References: <20170905194739.GA31241@amd> <8f0f7310-ea4d-a200-75fd-23509947fb38@rock-chips.com> <6689241f-a4d8-7a3e-9f0b-482b034e5710@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 808 Lines: 21 > blk_init_allocated_queue() allocates 1 request for flush and > 4 requests > for a memory pool. The memory pool requests only get used under memory > pressure. That is why the error doesn't come up straight away. This seems correct, I can "trivially" trigger the bug with a while-malloc loop + firefox. > Reported-by: Seraphime Kirkovski > Fixes: 304419d8a7e92 ("mmc: core: Allocate per-request data using the block layer core") > Signed-off-by: Adrian Hunter As I said, this fixes it for me, you can add Tested-By: Seraphime Kirkovski Although I'm not sure this covers the same bug Pavel encountered. My kernel doesn't panic, it makes KASAN scream + #GP eventually followed by a lockup. Anyway, thanks for the fix, Seraphime