Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2552734pxu; Fri, 9 Oct 2020 22:48:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyziGdPY7PqLvUmRrPIodT0GI+CoNi53damMIKRy5KKlcTDxA9WFNA1faMKo5nyApBV5Q/5 X-Received: by 2002:a05:6402:1c10:: with SMTP id ck16mr2899580edb.7.1602308882561; Fri, 09 Oct 2020 22:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602308882; cv=none; d=google.com; s=arc-20160816; b=ub25ZWsJbcLyD1k7Xhgqmu5Ys5ND+xohE92Dak+1g/BwiNCg9P4sigZzlANDcQpDHS imPGTKqAoYKIsNmgLXgPWCVpJq9ms2dBPNGUm+LUW9tvBDqcmRJQNAII6ccBH09l06om ZV1h/xKFZvOj7ARjrjh1O7/F/tv9X/L73/ckuWPWOuLY52EN4PfEd4vJnMGdD/UGaEFC 2bKx6d13+p+BOaVeA36i9jCcQm9/M+Hga5eubMp6L0/MtYna0Etd8fG0WvtwvAwPQFm8 nUhzjn2F+0wYMAx8amD0GL2jzrpz4CwRcRnRgF1Y0k+Xkt5TFRNRNwGSAZOdUwZ1VjbL A70w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8oWWXTJLgz6k0eoay/wZw+xNoGlz9otu+1gTZ3QYQTU=; b=j8zVkUH+5G5GXOdMfb/0QTGL7phm/+KV5mAMgfPLoavqMetOyAG50DNz3/DLBuB0v7 WeObZk1wmxCmYqyN8/yEjwcnGZOUiPYf+9tCf4L3AhJLs3fCCP0Rqx36XJgTgtTxaxk+ wdDUu8WiKekHztX8P8WtZaQMTxvn57z37T1mb+SDkVqpRBssfrsWZOeW7xFs7hjZn0ec jcAK1NJUPQ42YKXCcVi60/a+JuObTaJB5z//s3iVA3e34bJWEs0jY73Y/rls5pw92zMd 2Q9RY06qZirZJYVpR1obYm1zbVATvmR9efFEYmLOncNe4hKJfeSq1Uh2vTGsmmlPtr0t zp2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=JLw9cOIA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si7516300edj.119.2020.10.09.22.47.38; Fri, 09 Oct 2020 22:48:02 -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=@ziepe.ca header.s=google header.b=JLw9cOIA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391171AbgJIWZM (ORCPT + 99 others); Fri, 9 Oct 2020 18:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390153AbgJIWZM (ORCPT ); Fri, 9 Oct 2020 18:25:12 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7FF1C0613D5 for ; Fri, 9 Oct 2020 15:25:11 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id cv1so5549281qvb.2 for ; Fri, 09 Oct 2020 15:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=8oWWXTJLgz6k0eoay/wZw+xNoGlz9otu+1gTZ3QYQTU=; b=JLw9cOIADbCSt30KyPOolp7D8T1ydtcphV5lvGpBdT0H+g77HDzGqjI0IhTwDtshej z8W9/A5rl7Fs73WAAOZCMBnYeiPIeODDdOK72bckk1yyjqKzGzJGpGNwVGUB0vRNaqG6 ap064g18fjDLNTiIERClhqsAS5BC7X7bh6LtPx49QkjIsF0B7Xd4H4eYYxg/AdJF3NbQ 6Q2Uw/NINPLSaXbo4JkZOxArbxVx5MKT8yoo5U7zqDz0bBWlEov3++WNlmduRS66dQKB STAnvBVe/E+zYOop/N5UjYdXTGAqyB9F1cQa/HvHMUIVc87d8UVxGlSEk0HwjL0aOg35 Angg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=8oWWXTJLgz6k0eoay/wZw+xNoGlz9otu+1gTZ3QYQTU=; b=QKgWyOofz21oOM8IzyFYEBgrEZfyK53B6l1Vrp/Pw9vZ90YI/S8bkMrJN/xvFKbyQb UOPOGII+oAWSW+7HVYmjLC5/A0hpNtb7/bP9A+h5N9aZV9/hGkh0M5l6LwIXwwpfAPpK JnPph4OJHw8m/2a0VPB9aD5y8UTy7fvLCYVUxaKJ+0+nhkZaR4FutCfPEPwPwo3BeTnO ubxSfKW3liRxdKrHZZkKR7wZZHtfZqxX9viUyLXg8NGom81yfWIQJ5PbD/LU6Wkclh37 MpblVA1SCErL7YZkkBzUsOpzTvXKPbc8B83sy4g66hAsuEyx9uTG+Hg2VkQ6mwC8P4uW xdOQ== X-Gm-Message-State: AOAM532350PttQkDF4kihP+gYOzEpl1FJQPSY8FNbbPENHnM39GwItCc OUmSnDWIQj83LysFzYTa8WgzkA== X-Received: by 2002:a0c:9a01:: with SMTP id p1mr14524630qvd.61.1602282310859; Fri, 09 Oct 2020 15:25:10 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id t3sm7141813qtq.24.2020.10.09.15.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 15:25:10 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kR0p3-002qLD-KY; Fri, 09 Oct 2020 19:25:09 -0300 Date: Fri, 9 Oct 2020 19:25:09 -0300 From: Jason Gunthorpe To: Andrew Morton Cc: Christian =?utf-8?B?S8O2bmln?= , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, chris@chris-wilson.co.uk, airlied@redhat.com, daniel@ffwll.ch, sumit.semwal@linaro.org, willy@infradead.org, jhubbard@nvidia.com, Miaohe Lin Subject: Re: [PATCH 1/6] mm: mmap: fix fput in error path Message-ID: <20201009222509.GC5177@ziepe.ca> References: <20201009150342.1979-1-christian.koenig@amd.com> <20201009150420.450833e3830b9d39a2385dd9@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201009150420.450833e3830b9d39a2385dd9@linux-foundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 09, 2020 at 03:04:20PM -0700, Andrew Morton wrote: > On Fri, 9 Oct 2020 17:03:37 +0200 "Christian König" wrote: > > > Patch "495c10cc1c0c CHROMIUM: dma-buf: restore args..." > > adds a workaround for a bug in mmap_region. > > > > As the comment states ->mmap() callback can change > > vma->vm_file and so we might call fput() on the wrong file. > > > > Revert the workaround and proper fix this in mmap_region. > > > > Doesn't this patch series address the same thing as > https://lkml.kernel.org/r/20200916090733.31427-1-linmiaohe@huawei.com? Same basic issue, looks like both of these patches should be combined to plug it fully. Jason