Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4155440ybg; Sun, 7 Jun 2020 23:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/sodZfX7bUPzKSwFBhwMm2erHJElyriAlZ3MMTq8V5vgI2AhmNoxZWhVBw2rH1x71v2dk X-Received: by 2002:a50:da03:: with SMTP id z3mr10278689edj.129.1591599450489; Sun, 07 Jun 2020 23:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591599450; cv=none; d=google.com; s=arc-20160816; b=ovKX/F1EGdoN+QE4Rk3UBxGFzzVw3M4skUKFVdRNRfl07EgbC/X2kHKNuBsL/hLHjC gtHHxQ5nNbKrai3My2Ayb6tEN7GEgBGn/AGpkxHtyomh5Z4uMxQWgTJD24XGt95g9alS Qznqg4ggm8LeUUOJrjGZEef4247PXZ2czagPIkyN/NFFwdw2HDpJano+Ki/CD6xXZ0NL RmpIsXTEbNM3ERh7UrULuvcexQ2KuTPv9h6zM7bv8qC9NQkQhO/HyHBkE/hG3zTsaUb2 h8tnwsDMBhy0WZLHZ/8nKfcyxEMf9nOOSqzNNRDxlQpxu3Z3ABOR3wFXrsTg8nyeq3UI 8phA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=J7n7SjeAB90BEcrzPElTv6I73DAXjp+Cu0iwgMAiPUc=; b=Z9h7Kc6/6WHzSSVzyIgTm+s4emPYqrZhfKAHHUL07G6hEciRcFnf9649LDkPPrbuk3 w5u1yXsDyK6MUz9QMebbBmIrySxmvctC27PsgE6xJySxkW4R/v3G2GepBkCQLr5AWzP8 OHvnub8U3UN7b+aFymJHBvfkByxPbNhlOvAuiGUpJrtB0euueN7WCPQwzG2lmmzkYRKK 5FYOKWdXAO1fyJ5rowchbmINDo45MEhZm9zp0Hk3AYsZFR+W+PaeeGFWLf4zvv8LJn3D F1/qPiyLmjkhXjGoY30vi/U5arN03YZGdlt0jXYsG1PSc1iHOoiV3cFo+UtxCNAP30Z9 pduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=np4HWYG8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si8320619ejm.613.2020.06.07.23.57.08; Sun, 07 Jun 2020 23:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=np4HWYG8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728964AbgFHGxJ (ORCPT + 99 others); Mon, 8 Jun 2020 02:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726929AbgFHGxI (ORCPT ); Mon, 8 Jun 2020 02:53:08 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68147C08C5C3; Sun, 7 Jun 2020 23:53:08 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id r2so17421086ioo.4; Sun, 07 Jun 2020 23:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=J7n7SjeAB90BEcrzPElTv6I73DAXjp+Cu0iwgMAiPUc=; b=np4HWYG8n3V0PTL0Ue1cxqRR3IU/8t/jEP3KTZ9OxJg0/MiBSoDZC8rmoZFHz/flGZ cfbzuwOM/CTEcgA9FZF08IhGGt+eQ88VNSDuq0r8SoyxBUsMbGoMQAUEDcIxiS27UatR UpFJvBOSIJ7ETgF+hhL3xAUPHhvK0sjQ5u5c6f7qAYtkofz87Kath5leAmzbYNKwPSyW coP1fENs/B5gcTDA6GF2DScAlj5gZGO+Ygv6Co05Rc35D/OrFaiYzbQES7rpp2cSNPxb d6wSF2VUDGHvXGH3wQejv7aEBjR8HWjCf91W2Bo/FRu494LsJYbha1z1199JmHoV23z8 IbaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=J7n7SjeAB90BEcrzPElTv6I73DAXjp+Cu0iwgMAiPUc=; b=ktV6KmnhtHUFjRvASAxn1XiAFsFqYAD23q44vcGQOAvHSPndfJi8d97vxQFj/Pd5dd 8W8Ci7V2HhVi2zHfNY3ZZ16qZ9YYAHL5pyy0UmpBUqliY/DhcGEg4WAJwubzYgDAI44D nWE8qvNmZcsZz32Zf7g4k83BCDjCMi40ZIcsWVU/VkVCt+5ozWanq4d89vJX8SrojT+1 AuO6zB8bl1ASbn/MvtYudjl9DzbsUzkCpxQcl6UrQ03CCksOiTGSgfqeJv6vXUE1yEA6 ARpZaoHz+za3gfl+z2DyVv5tm9OnI2zyzzaRw9aYtRryfcz1r4298AljXHsxiZGBer02 uWlA== X-Gm-Message-State: AOAM532q81nfbCYQwEvCQNcA8VCPUGXg+8p1QZVNmjdaA5BqF/sUZjs/ htfQPxYw8kyOJ4M5f14B397Ln/UIFUznHE/0jI4= X-Received: by 2002:a05:6638:406:: with SMTP id q6mr20880697jap.125.1591599187633; Sun, 07 Jun 2020 23:53:07 -0700 (PDT) MIME-Version: 1.0 References: <20200608020557.31668-1-yanaijie@huawei.com> <20200608061502.GB17366@lst.de> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 8 Jun 2020 08:52:56 +0200 Message-ID: Subject: Re: [PATCH v4] block: Fix use-after-free in blkdev_get() To: Christoph Hellwig Cc: Jason Yan , viro@zeniv.linux.org.uk, axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Ming Lei , Jan Kara , Hulk Robot Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 8, 2020 at 8:47 AM Sedat Dilek wrote: > > On Mon, Jun 8, 2020 at 8:18 AM Christoph Hellwig wrote: > > > > Looks good, > > > > Reviewed-by: Christoph Hellwig > > > > Can you dig into the history for a proper fixes tag? > > [ CC Dan ] > > Dan gave the hint for the Fixes: tag in reply to the first patch: > > > The Fixes tag is a good idea though: > > > > Fixes: 89e524c04fa9 ("loop: Fix mount(2) failure due to race with LOOP_SET_FD") > > > It broke last July. Before that, we used to check if __blkdev_get() > > failed before dereferencing "bdev". > Here is the Link. https://www.spinics.net/lists/linux-block/msg54825.html - Sedat -