Received: by 10.223.185.116 with SMTP id b49csp7857028wrg; Thu, 1 Mar 2018 12:22:30 -0800 (PST) X-Google-Smtp-Source: AG47ELtOwvG3aq0iMjgI2X4ETtUv/Qp7LfylePW2ZT6QK8CKA89H3I5YLlSePQ8YyM2xfJ31Y0CG X-Received: by 10.99.110.137 with SMTP id j131mr2516575pgc.85.1519935750733; Thu, 01 Mar 2018 12:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519935750; cv=none; d=google.com; s=arc-20160816; b=que1bUkVCVAcLzbT0YJfxHUQEy0J+XdPqo/6bjOVPYbGelBJHsXMPepMpDEOjYZbye HU4glgGFdHsm+V88Kjaytwa24VT1ZSAdMf0yE3GzbFj5LqC7TI9vkn9Lui50FgoF6fEr BfqxfbR9dMGycbXRx3Fd/fZNfos+YjxYlSAQQs74/CptZ6wXY8E+VPiYiuxSUSl5LPS7 CVjNUS5KeBO0BmrqK4lQY2cgkbM6fkXLthhMX3ZmV/09CDFuzp13/msQSIk5dqiCSQ6w 3B20GTp64USH/fOYv/G7azlvqUVl+rdoWzQ+RBbSVtE+wPmfNkecWHhnakmTuUSXqCPv 5Bcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature :arc-authentication-results; bh=RbPPnRXSViEb6EefeEn8UyO/s8+a4ksxaCpVJOUVt8c=; b=UAyrPQo7o/HPW9brw3eUFLGfseJDiTY2xaDMsiYhPynCPTcAIYpOm5AEPWXfwdRzHb i1ymc+hjQuXx3GWRwbOY8qWjNRpN6jNL9jqYN1jInYWF5UQKMyEzrGkjk8D+yyjrD5yO Eao7FMsPutyyb9Bm2jkCxPL+jr14bRi9YCyHQYiXJKSvrnY8YO6KooVP1V2QMfPhGy4x sIzkRYJe6bKZFAihUK3/hWMVKKXgCGYn3cCtF++EeRRYE3bm6mu9AnV9uG7VKy/4wQ2Y CuIEr3WSH5+sEgaRiJZa1SxqqPZcKjs34oFh08ZQ+DTl4EyRKx25506w3bQe5691q8Nx 6bXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=eC9/jFA+; 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 m16si2868906pgn.290.2018.03.01.12.22.16; Thu, 01 Mar 2018 12:22:30 -0800 (PST) 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; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=eC9/jFA+; 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 S1161566AbeCAUU2 (ORCPT + 99 others); Thu, 1 Mar 2018 15:20:28 -0500 Received: from mail-pl0-f41.google.com ([209.85.160.41]:36196 "EHLO mail-pl0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161487AbeCAUUY (ORCPT ); Thu, 1 Mar 2018 15:20:24 -0500 Received: by mail-pl0-f41.google.com with SMTP id 61-v6so4308526plf.3 for ; Thu, 01 Mar 2018 12:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=RbPPnRXSViEb6EefeEn8UyO/s8+a4ksxaCpVJOUVt8c=; b=eC9/jFA+CZ9JIpoBtu7yS7DkWMvb0OF5D5NxbcH/5/3QYm6bHS3f/D0YX2prwG5VcG Vv653g2lNQTWBycYklq16i9UXOtp7KIBFH/tGIZjOkoABvXGs69MykCCCHNI/iqhprbD ddlGKay7eccugdu6vHUOmKgf0VBP6PU7UGGK8oRW7xEa8W0J/OFfZmWH24zIY/+xGwmu 8F1vOr2q4tnV/X7RBr/39Ft6Zv5T/PlMUTbIoKUYIw4TEPzR4Sbok1qGKiX5QYgNPKSg oKbLJtzRkQDN3FPXkdDXwSB4/JeTIz0VVXhoKxuVdp/TuJmINW2O5D8vSeOSL4zH5b+H MrnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=RbPPnRXSViEb6EefeEn8UyO/s8+a4ksxaCpVJOUVt8c=; b=YdOHkz9oIDf8jSdHG8PHdq4x23XO//oCqhgOCpx3E7OIWUZXguRjEQS7zzt9DJrq8C ky6nkm6QVAFWRfDzNXZ92qPEf7owT2qSHY9kgwnh5GHYNvlGbUmzrF3fEkWMxc9tFBU8 j8rSpllLFpomixQx4mX267GgwF/El3kGowrGjUI+ytjyfRxloZDv/vBmYZh3snjRRJF5 YK7BSL7hdtP45RFFq2GAzjA6rfi9Bo/XQ7/vqOSJcZJ2c96UlrkJvejYGDSWBVD078aU rFGYIUWk5pMpDjeCuWwXaJWtpHWd8mApEl5BtfWOCvcOyr5tbSu5lZVt0nxazGbt4Rg6 zZtw== X-Gm-Message-State: APf1xPDAwJPAQJ1V5gDxBkRlqCJ1QT1sHfdqREDD4Usnyvkzq7806uQP U9in5x9hVirYIYz9pUcOqDmJeg== X-Received: by 2002:a17:902:8541:: with SMTP id d1-v6mr2979737plo.54.1519935623289; Thu, 01 Mar 2018 12:20:23 -0800 (PST) Received: from cabot-wlan.adilger.int (S0106a84e3fe4b223.cg.shawcable.net. [70.77.216.213]) by smtp.gmail.com with ESMTPSA id q20sm9435276pgc.84.2018.03.01.12.20.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 12:20:21 -0800 (PST) From: Andreas Dilger Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_83C1D3F3-F6FF-4590-B7E4-E000F852A5BA"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: EXT4 Oops (Re: [PATCH V15 06/22] mmc: block: Add blk-mq support) Date: Thu, 1 Mar 2018 13:20:16 -0700 In-Reply-To: <20180301160418.GA2490@thunk.org> Cc: Adrian Hunter , Dmitry Osipenko , Ulf Hansson , linux-mmc , linux-block , linux-kernel , Bough Chen , Alex Lemberg , Mateusz Nowak , Yuliy Izrailov , Jaehoon Chung , Dong Aisheng , Das Asutosh , Zhangfei Gao , Sahitya Tummala , Harjani Ritesh , Venu Byravarasu , Linus Walleij , Shawn Lin , Bartlomiej Zolnierkiewicz , Christoph Hellwig , Thierry Reding , Krishna Reddy , linux-ext4 To: Theodore Ts'o References: <1511962879-24262-1-git-send-email-adrian.hunter@intel.com> <1511962879-24262-7-git-send-email-adrian.hunter@intel.com> <829308a3-3bf6-c173-65fa-e2a0f45f7f61@intel.com> <68886f99-97f5-897a-f754-6f414741bd5a@gmail.com> <22580b82-0257-b156-9f0c-79afa34067e5@gmail.com> <8876217f-ede6-fc81-2e05-b4fc976b3235@intel.com> <6a1267b0-6242-fc9f-60ed-02bf34677b62@intel.com> <20180301160418.GA2490@thunk.org> X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Apple-Mail=_83C1D3F3-F6FF-4590-B7E4-E000F852A5BA Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Mar 1, 2018, at 9:04 AM, Theodore Ts'o wrote: > This doesn't seem to make sense; the PC is where we are currently > executing, and LR is the "Link Register" where the flow of control > will be returning after the current function returns, right? Well, > dx_probe should *not* be returning to __wait_on_bit(). So this just > seems.... weird. > > Ignoring the LR register, this stack trace looks sane... I can't see > which pointer could be NULL and getting dereferenced, though. How > easily can you reproduce the problem? Can you either (a) translate > the PC into a line number, or better yet, if you can reproduce, add a > series of BUG_ON's so we can see what's going on? > > + BUG_ON(frame); I think you mean: BUG_ON(frame == NULL); or BUG_ON(!frame); > memset(frame_in, 0, EXT4_HTREE_LEVEL * sizeof(frame_in[0])); > frame->bh = ext4_read_dirblock(dir, 0, INDEX); > if (IS_ERR(frame->bh)) > return (struct dx_frame *) frame->bh; > > + BUG_ON(frame->bh); > + BUG_ON(frame->bh->b_data); Same here. BUG_ON(frame->bh == NULL); BUG_ON(frame->bh->b_data == NULL); This is why I don't like implicit "is NULL" or "is non-zero" usage. Lustre used to require "== NULL" or "!= NULL" to avoid bugs like this, but had to abandon that because of upstream code style. > root = (struct dx_root *) frame->bh->b_data; > if (root->info.hash_version != DX_HASH_TEA && > root->info.hash_version != DX_HASH_HALF_MD4 && > root->info.hash_version != DX_HASH_LEGACY) { > > These are "could never" happen scenarios from looking at the code, but > that will help explain what is going on. > > If this is reliably only happening with mq, the only way I could see > that if is something is returning an error when it previously wasn't. > This isn't a problem we're seeing with any of our testing, though. > > Cheers, > > - Ted > Cheers, Andreas --Apple-Mail=_83C1D3F3-F6FF-4590-B7E4-E000F852A5BA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAlqYYIAACgkQcqXauRfM H+D1MQ/9HoJWn769M05/z1EIBrSufibX73AF41nPOwDkOkmUvcmf+48coM0H1y2y HJl6JonNCNZ/wPvpo8yFrXjrZ8/1R0Cekk0nptM9Zokg3ufJygmU8+BB3smeHB7L nw1O4ftW1jAXFGGDdj/HiB4Fuy5vij6FgpFaRLz5VtoenkL509d8WBZoRHBnBHsz RWD05dB/Hx6s9jVnVs6BkH9Q9r7qxLIjIq24hp6qKy1Zvu1GwjTxMEfqNADEj0Sf TjJ/AfG1kCtxnvhYsk2JRhnEj1b7xNbb+eFd9+T4ca/oB4o5hn3BltNBbDMReQBZ UHAzhf8N5w+k8psDLXpOl9HjQue9H+bPlYbF4g3JUHWhbRklWiObTU5XULegTNRc vVmsmw4iYIve6FEp3neb/DfLrKOnLHWBakESxVZel6N42OxFGJYk0XQc2XmoNCyj uC/HgZWV2Iah5F3o0HLpnWHnr2xWE/AVrIhCK2p5ecLq16niFCMh1CCksGqrrqwx eIirkF1z9atKTe4XTf7412gPSood0PjbT/2qe5FDLpRtdTiwDA8SMc+pDw7UpbYj ymhDIbQf019VSXV9AzN3rktNPaaya+HNSuxqkG26R2jLRsbf3qml1snoUjKga1fS DDu5H/nwTLVsjypDHpDapoXul04KRphOKdfUi5z+xJSXLUTwySI= =Vg/6 -----END PGP SIGNATURE----- --Apple-Mail=_83C1D3F3-F6FF-4590-B7E4-E000F852A5BA--