Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4164569ybg; Mon, 8 Jun 2020 00:14:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPF9JMkS7tCHRumKg1ltM9ZRl0Fma41kp/k+S48yFPHQ+T0YoA9cU1caGEdR9sgbcKwvXA X-Received: by 2002:aa7:d54c:: with SMTP id u12mr20110235edr.298.1591600480098; Mon, 08 Jun 2020 00:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591600480; cv=none; d=google.com; s=arc-20160816; b=IPaDshfORenHi59OkWHBnOVM+hWpTUSFXrsw30qE9IpmFC74n9nG1fXe4pas5lPsgR l9nbw6aVZPtSTbgpPUt1NgS5l9RAQ6UwRlca1qGgRam5DCZLMjnmWzZCEzFUMeLS3ZyD XOVEv2xniKvZz15N54UOJ2F5+T8XdVWroqE5qSh+MQtRvRXxAFmYtpyG1Mh9cC+Gy88k o3JlSje9gI/oKh7Lb21d087w4ywLHDCFwtYOOj1aDRddCTRoRqFxLcW4VWwagbspVwmN wyl8XiXynFbKj0KxIkGli6x4oi/oH3JENVsdvimmpOoU/IbHmLurmidu1ycnZdqNHLpF JJfw== 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=nf9dHqg6+XQwKpI8ou9xSgbseHLRO6vjwPKJ056sGMw=; b=T7HWQksI94LudSROrXT7rYmRr+/Q8gPpmOCw9RiUUlAPh8A8ptDpNS/jvGuYKOpoZF d+cAi16OKGDPROVKFE27gXxJBs0T9qBSweA37aKHIn/pMwCi8mN84AJLXzO511XhjQp2 qbDe/r4/Hhn0wBqcEp8JtgAI9GoUTuSRHGr3NZvvynrfs/EnGYdSe+TkTc4NmQO9IrLf fDy2VY1B4cUb70vFHA9yTGgZPcC8ZaJvuT9U5RxJpgz8708qudPqfP1JmS9ypclBOgxa 8oxXbxRNzjdEEMK2EbbfNZp4q6cNHYrOoHdJkyJZYNJWGlZb/hCxfhXRvZcxh7FMGclq 4KlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VS2lrjRY; 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 n9si8476236eju.428.2020.06.08.00.14.17; Mon, 08 Jun 2020 00:14:40 -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=VS2lrjRY; 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 S1729024AbgFHHJy (ORCPT + 99 others); Mon, 8 Jun 2020 03:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727966AbgFHHJx (ORCPT ); Mon, 8 Jun 2020 03:09:53 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AD3C08C5C3; Mon, 8 Jun 2020 00:09:52 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id a13so15740078ilh.3; Mon, 08 Jun 2020 00:09:52 -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=nf9dHqg6+XQwKpI8ou9xSgbseHLRO6vjwPKJ056sGMw=; b=VS2lrjRYg1vBSVU3Lym8CjazMJrZEuwL3D8SPYJNftC0tECW7uS4NmwyHmJjskGcme W2iSbSaI5Icy9RRBVFAbtvAguBG3LSJTWQsMZw9DSilcCgjumwYXEtMi3rfm4GvfAJ7l Lg9kfOqGlbDMqBJHUxWLiKIerNSfmHjQe5NQ9EJkXLHHGSuTE0h0CC77RNEjHhJO3qgM fDVv6mEYZfvlV13g0f/c+sBMPAjdJ5Jo7z8LMo1OxFNzabbd4Zr0geiR9y40ryRQ+cw5 Ks+tsPaRQopanhM5Zkg0dRy19oR+fuM4WyFlniLnQ39Dh0nbDZjfvnTxXSLbqGOh9QfB JUrQ== 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=nf9dHqg6+XQwKpI8ou9xSgbseHLRO6vjwPKJ056sGMw=; b=Dn4dfcgRap3NqOrRVvBZb9SNWhSGckFy+KyaUR96VIJS5b6eTgDuMKmFlNyMZZQJlz Xk1MhAKMuCoM9nvgukhGtvLAco4XDvETNd8gBabP+6NDZl6MriRUAGbeVu4xCDcnV3Hn r5i5avVijhwBkCHwDWeQ+2E+EB8BUWVqGpN78bULXS0bugEtPg/QCk0vtxjzBzsFsZVN GnnOju32StYFdrwjhL5cSMdVgmZ2WoHWXC2hR8SLfK9HQin3M89wravZZo7ZZVyYi1S2 sqYv9jd0nHy3ZYhX4FR0RsWjvU/14OW/GUtEs0cpkhag6WcLn1ltGz0NxKr9oWXg5qbV R4ZA== X-Gm-Message-State: AOAM532MTow0BVXE86PrsMmIeWEqHdoyd14QQUM6ztsbZMh34iNhp4wu 18nQLOKgHVu7iEuVHBGNbvbK1gGT5n6uPSIk4lg= X-Received: by 2002:a92:7311:: with SMTP id o17mr21691800ilc.176.1591600192183; Mon, 08 Jun 2020 00:09:52 -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 09:09:40 +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 , Dan Carpenter 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:52 AM Sedat Dilek wrote: > > 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 > Really CC Dan in 3rd attempt. OMG, I need a coffee - urgently. - Sedat -