Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp464713img; Mon, 18 Mar 2019 07:09:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+vwxiqur4Q5ZnGoBnlTFHZriZt1Qr5nZ/pyxYFqb/vg91RvgcRPTKChTxHg4d1n4EFc91 X-Received: by 2002:a63:66c4:: with SMTP id a187mr16651865pgc.369.1552918143059; Mon, 18 Mar 2019 07:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552918143; cv=none; d=google.com; s=arc-20160816; b=kDzMb/U9m6KkSyykAhUfxDkwarr0dm2ToukpxH2gsFvBh4Dgmy2CelYNGL6W9LjrGr ZbFL+W6QmFw4ZzbDxDxRS8UQlpfhjJtDBkEg6o9ONkT5iDEwyiDWWP+z16lW6yIx3h8F nKrpu9prw5HtDAsmTLjHiQhIQ+jeC9rK6DxztmxIkw+Gduk5EHmEzwhvoQLSA31L22cV nAPAB7dZnhZ5k6ScYe426j3JMzIdVeR2N0HgPKsUIp0YF5eCppjJqLrWki4ffIG3X5uW bLvR8LsvCWhxjsD7u36UMnmsFBvHoPaVxRcGJLyQlh83U9IBesBQag2ksnubErPPNquv sMfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=dQ/JZjdM6BwNib+j9QZDSnvaykIwG1bWBSHuZwdB/Zc=; b=f+I3q4NczcvI+7U906+DBApYxrrZMbfEbXcweUfHCzDXKFoMjkOEilDIG1gyfBLP7B T2XxpGul6wTvhX7XcLZIr5UOjF0Wjb5eVj5BpTuEa4A6nYMjpZIWXqKB1VoG/IWgCzlc RXxJmRAfyoZqnDfpKTvHktDT5L8EMgztVLFJG80R+/k0hhQImGmriU0gUlktHtjwWeNi lvBP3gWwwLBAPyApkX0ONABjT/vKI4uC4bwrDyLBFKr0KnC9+OkKJrXmB7Qh/C6Jfkaq rdJrbGo5npd6MXr88f6193yCTI0e+dXCvLF8PE50IWB7nkkENXv6+huQo7SV9apd8XXD /oqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="idqwWP/Q"; 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 d34si9759691pld.314.2019.03.18.07.08.46; Mon, 18 Mar 2019 07:09:03 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="idqwWP/Q"; 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 S1727430AbfCROII (ORCPT + 99 others); Mon, 18 Mar 2019 10:08:08 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:37966 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbfCROII (ORCPT ); Mon, 18 Mar 2019 10:08:08 -0400 Received: by mail-it1-f195.google.com with SMTP id m18so3889695ita.3 for ; Mon, 18 Mar 2019 07:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dQ/JZjdM6BwNib+j9QZDSnvaykIwG1bWBSHuZwdB/Zc=; b=idqwWP/QNdgL0ZpT2G9a2PGWmF7q5uQ9rnRzZ5zDPn0SbnAHJu9I2nW5KH+SlEoHAz jaeYSEw5C45u3arUmn970C97DgEUxRZQH6HjId3/Wzc4ORMr9sN1vso/jUXkFynlFM8G E7e3TqdxzCIkvlUDKNjp0VCThicGYSE8+UcGZgTyYNxkdcRgdGe6Ywoau6m8abmze82G p92KldM8xsIFshqzxRWH/eT1Ar1i9wIw4psccud2bAIWQ8bgb0p6IyCkHIEsizuKuNVS lCTNCvXwWxYDQc/n/ZELyk06F7g/uKA4AQ6k1afS9metR8O934jDzQG2v7c5bgzgjppw sqQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dQ/JZjdM6BwNib+j9QZDSnvaykIwG1bWBSHuZwdB/Zc=; b=Z3oR9wjDOSNRqcPZOHbhvMh2BPe05PQ9cKBsSqxYfoDFByR2wT6IKnCOas4cmADGkF YYt1PVDOr5k6+wVC6kIUPIEzfLgX+0j+/i2NBbSfH/wZkStMkBUlkhnqnrc9fQYdrSt1 3Eqb+Vl4EqLfO/gnRyxrw5VRWhaaoKOLz9wm/w9Eg61UMb5Dyar4lDLe3czXN8oZpf8S hGkpHMzxw0eRsXBMB2NjJfxHzq9ho32ZYhH+CkmqVF98T2mS+yC461yF5AzehWz6t2WV sdXlM7wS3rffQW6yy++pLHKj0nX1XLA+J2yv6c5ByeO4GgtqVTH3EJScnQalutjq8qbX oUmQ== X-Gm-Message-State: APjAAAUjKEz7AYtVcr+F5xtQ711y3uj5jnGs3Sy91HBUncdiiSMVmjRQ +pTMg3V8ax9+at81nHGh62V66ogM4V/6PA== X-Received: by 2002:a24:6910:: with SMTP id e16mr11684339itc.116.1552918086965; Mon, 18 Mar 2019 07:08:06 -0700 (PDT) Received: from [192.168.1.158] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id u19sm4547925iol.16.2019.03.18.07.08.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 07:08:05 -0700 (PDT) Subject: Re: paride/pf.c: blk-mq use-after-free (kernel v5.0) To: Randy Dunlap , linux-block Cc: LKML , Tim Waugh , linux-parport@lists.infradead.org References: <30c63b2d-92d2-51be-40f0-62cada110388@infradead.org> <7d24a06f-f219-e50a-e8f8-915a6cc1b796@infradead.org> <59cb035e-6880-de5a-33c5-d4db6ed910f4@kernel.dk> <4a2adc33-ef38-6a5f-65ee-8fcfaa0948a9@infradead.org> <55743981-da8f-3211-0650-b143c8fec084@infradead.org> <23f48266-0d12-1891-1373-711b63f4f589@kernel.dk> <21e5a575-8f28-5a14-3916-ab41b4d37734@infradead.org> From: Jens Axboe Message-ID: Date: Mon, 18 Mar 2019 08:08:06 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <21e5a575-8f28-5a14-3916-ab41b4d37734@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/16/19 5:48 PM, Randy Dunlap wrote: > On 3/16/19 12:31 PM, Jens Axboe wrote: >> On 3/15/19 6:32 PM, Randy Dunlap wrote: >>> On 3/15/19 9:33 AM, Jens Axboe wrote: >>>> On 3/14/19 5:49 PM, Randy Dunlap wrote: >>>>> On 3/14/19 4:43 PM, Jens Axboe wrote: >>>>>> On 3/13/19 5:09 PM, Randy Dunlap wrote: >>>>>>> On 3/11/19 6:34 PM, Randy Dunlap wrote: >>>>>>>> On 3/11/19 6:25 PM, Randy Dunlap wrote: >>>>>>>>> [Has this already been addressed/fixed?]>> >>>>>>>> >>>>>>>> Same bug occurs with paride/pcd.c driver. >>>>>>> >>>>>>> This still happens (in blk-mq) in v5.0-11053-gebc551f2b8f9 of Mar. 12, 2019, >>>>>>> around 4pm PT. [caused by paride: pf.c and pcd.c) >>>>>> >>>>>> I'll take a look at this, been busy with other stuff. How are you >>>>>> reproducing this? I'm assuming you don't actually have any hardware :-) >>>>> >>>>> Right. I just load the module (pf or pcd), unload it, and >>>>> then load it again. >>>> >>>> Does this work? >>>> >>> >>> No. Just loading the pf module gives this: >> >> Missing clear of the queue. This one should be more complete. >> >> To be fair, this was utterly broken since forever. It's just now apparent >> since we complain about it. But pf/pcd was one big leak fest. >> > > OK, this one works for both pf and pcd. > By "works" I mean that the driver init function runs and exits without > causing a BUG or GP fault etc. > Not that I have any such hardware. > > Tested-by: Randy Dunlap Thanks Randy, I'll get these queued up. -- Jens Axboe