Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1763955ybt; Mon, 15 Jun 2020 08:49:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRF6MMgwC4OZpDqGzG+tpUErQUQXJYSX4CUvFvvNuejDucwK/F24w83P1stvcjOpxXR5HG X-Received: by 2002:a17:906:1149:: with SMTP id i9mr27448335eja.100.1592236180639; Mon, 15 Jun 2020 08:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592236180; cv=none; d=google.com; s=arc-20160816; b=jgm/Mre0Kxx0XPxAFkYzvwp3uvxUKcs8whkHWGAfR2pylZKnpIAEdTqCybEgzRkMZ0 KUtxMnYxyHmPEhPssTj4Nk6teyEESxVjqMdvsHryy1M6Pkq+1kU0AZLLAPY0yHoL2wGZ lEsHOWBIXBwnxIP6j9T8VK9yjXUl/Uq9nIqLsqhuRk9WSLbhXdRhPnZMtsKvsc99x+Hp Vhvszl2r2/eSbN/axKicvrfBpHE3hV1I8a5sfyrr/hlKwxDWJf5k5FvEoIJYYUi4ZobJ dg4oHoXFggnn6ugZn6dMQiJ9VTG0+kf1npbeG7ZPe8lmzH9lF5jn6lr6OSdOKaYU6aAC /q+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BG1FSRX6YwFlMjahJZQbY/gv27QfcPoaJNKQXxM9wGY=; b=WJwJGZ9tXZaMqU8gciE/EPIdEExAB9yDowW4rzMvN9qhRHxK5aidIsxhWadIvJ/yrm xK9/C3EML7b32UJNcWhC1D0fBVQKEKdUmdq2phxZt3/Pd7txpCjGSIunfvFCCNb5GF5L u7aYr/1Bj7OM21/J0pQ//QCcekJ4eoRpjHj12jYeMRdbd5MAyrAEGWYXqm7EINooFUlg HQhP2jetKvflH5rHRR+vSTZx0EBJwZO0/afBrgc/TrIhFzEsZ9cFoF79bISPe1pEl771 FOCOB9nqaiCsBU6Elufl6tpgGlbgMRKHtZ3/YzcCZmBPJMC5VY6Kc1xjrRkzptHfV+fJ y8mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W6yWGGNp; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz23si1081830ejb.168.2020.06.15.08.49.17; Mon, 15 Jun 2020 08:49: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=@kernel.org header.s=default header.b=W6yWGGNp; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729792AbgFOPrW (ORCPT + 99 others); Mon, 15 Jun 2020 11:47:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:51186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbgFOPrW (ORCPT ); Mon, 15 Jun 2020 11:47:22 -0400 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 99BE42078E; Mon, 15 Jun 2020 15:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592236041; bh=TvoTA2FuH6mLitI1jM5lsj1kplEHSv1NCisVfYWGIJk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W6yWGGNpB/VnrsNNFwvyCenz5ShS7q1GVlq2x9avR8n2fOp7C7XT9pDTD1pPXQHSQ znH/SSlpzF08xtLhUa8D8H3S4uxk4h116vgt3tjotR2fhxKfNUXzHLgjK4ZnvmVjm/ 8+T29Hcb2dR/5PeDFxD0MRz5/LuNA1kLgH8R8BzY= Date: Mon, 15 Jun 2020 08:47:20 -0700 From: Eric Biggers To: Sahitya Tummala Cc: Satya Tangirala , Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] f2fs: fix use-after-free when accessing bio->bi_crypt_context Message-ID: <20200615154720.GA902@sol.localdomain> References: <1592193588-21701-1-git-send-email-stummala@codeaurora.org> <20200615050019.GA3100@sol.localdomain> <20200615061633.GA23467@google.com> <20200615095316.GB2916@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200615095316.GB2916@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 03:23:16PM +0530, Sahitya Tummala wrote: > > > > Should I fold this change into the original patch? Or keep it as a > > separate patch when I send out the fscrypt/f2fs inline encryption > > patches? > > It may be good to keep it seperate as we already have the base FBE patches in > several downstream kernels, so this fix can be applied easily. But I will > leave it up to you to take a call on this. > We should fold it in because the patch this fixes isn't applied upstream yet. We'll need to submit this as a separate fix to the Android common kernels because they already have a previous version of the inline encryption patchset. (I assume that's where you have the code from.) But that doesn't affect what we do upstream. - Eric