From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80F5AC4338F for ; Mon, 23 Aug 2021 07:18:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 60D0A61184 for ; Mon, 23 Aug 2021 07:18:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234976AbhHWHSv (ORCPT ); Mon, 23 Aug 2021 03:18:51 -0400 Received: from verein.lst.de ([213.95.11.211]:46643 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234861AbhHWHSv (ORCPT ); Mon, 23 Aug 2021 03:18:51 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5AB206736F; Mon, 23 Aug 2021 09:18:07 +0200 (CEST) Date: Mon, 23 Aug 2021 09:18:07 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Christoph Hellwig , Mike Snitzer , "linux-block@vger.kernel.org" Subject: Re: Use-after-free related to dm_put_table_device() Message-ID: <20210823071807.GA22543@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Sun, Aug 22, 2021 at 06:17:50PM -0700, Bart Van Assche wrote: > On 8/21/21 8:12 PM, Bart Van Assche wrote: > > If I run blktests nvmeof-mp/012 then a KASAN use-after-free complaint > > appears. Since I haven't seen this warning with previous kernel versions, > > I think this is a regression. Given the presence of bd_unlink_disk_holder() > > in the call trace, can you take a look Christoph? > > (replying to my own e-mail) > > Reverting commit fbd9a39542ec ("block: remove the extra kobject reference > in bd_link_disk_holder") makes the KASAN complaints disappear. The block tree has had a manual revert since Friday. > However, the > srp tests and one other test fail with that commit reverted: Can you send the output? My usual blktest setup can't run these tests.