Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2743197imm; Mon, 16 Jul 2018 13:23:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOD4tmBiOjp/aXlotEZWmHpdjeUocSVwOOeqlxZk5dh7cwGnbu0rrzHN2z1RX1R5XtVSzR X-Received: by 2002:a17:902:be0d:: with SMTP id r13-v6mr17837403pls.299.1531772615351; Mon, 16 Jul 2018 13:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531772615; cv=none; d=google.com; s=arc-20160816; b=tYP6oeN47QHQxkOzpZ45AFp2KEyQpVJIaxWhk9qW4O1v00zbjQbLoFSOd7K06QbbPK Djx11lRz0fWevC3gcCGszd1s+YDDxMaNoKf21kHJIM3CtsMw6q82TZsmgpfFtyKxr//5 GlUAQZsmP4FV8x8NfKbQ4uPe4sYWqWy4X3nT7Y00o/OnqZPr6glJpYlBXWU37D4/mxGj 9ykHb9zbA3NoOudv5/zlsFfG1simrBhXAKNIESQFRqf8qtzBmAqOgORAxHFUvPscuNsf P7QUZPDuKbyqM24e38nIj3Y9dBbLA6cRqbtCD9mdFeE+6AjNUcrj63HLsMeKvoriR3Po dL9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=3FbBCZAkwQ3N++5n7c5iTyDadyqyBKP40T5OviaDu64=; b=dNkCGzvk8vMPKsY1F7bY4wrWaqb6J3478tONVVy3cIeQW+nNWXTn6PslQDVEL++35i 0KhTeo4BMCvmMUWCZCMmuPlQrXxBuCyIOed4Jupt/lMpmUncZcvcZy7XRGqNHNoEJpBU bXjGL6pnYn7/tlFZl3EyWVGgicXr7dCTH6JriXL2C4ymVH+bZhKp/GKfIo+oKxJA8PQu AIA38brqOq+T5Sb5nz7HmTu03Afy/+R6jqcxvrwdQFnpZsmeqJSLl7HfxqgC396+cq2c 2gzlOZTIuOv3PFhlIjaXJc1dtL3OpNPrfpcxu9a75XvsCBRykLG0t488pH/YOO1Wqnn8 U2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=fKu1JI33; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 25-v6si29573673pfp.108.2018.07.16.13.23.20; Mon, 16 Jul 2018 13:23:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=fKu1JI33; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729349AbeGPUvG (ORCPT + 99 others); Mon, 16 Jul 2018 16:51:06 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:39477 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728075AbeGPUvG (ORCPT ); Mon, 16 Jul 2018 16:51:06 -0400 Received: by mail-pf0-f193.google.com with SMTP id j8-v6so2198190pff.6 for ; Mon, 16 Jul 2018 13:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3FbBCZAkwQ3N++5n7c5iTyDadyqyBKP40T5OviaDu64=; b=fKu1JI33SDlaCiJraKz+rkpxXVErlahOGvFWMikBz+E/mQZL862a3F1qC10G2qgLwQ qrhK+VNYZyPrUNE70rZ6vWilXkvW0SOMMjMb8jcm9Ws9ntRsCRygAMWMx+yXBzVWaCgY QRzo2FsuIcqx9ht8jPjkpXssHoETH7mYFBZWs= 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:in-reply-to:user-agent; bh=3FbBCZAkwQ3N++5n7c5iTyDadyqyBKP40T5OviaDu64=; b=px0VmHXvDVQVGoNQ4/umu+cT2DurVrL7PhVK5SDzogjOP5V7lc1u8s+7+O4OklQPsd gNmkwkcQPIvOHATafewaXJ5wtSbNnHV0aknG3oYANVtwNnPXaXnK9+/gNNJlHp8U+sj7 nij8u182RYF2Ec/lR6svy4TGmEb1B1eqmgj5qdwlMiUaH4KShldkaQARXVDOGzuYcsOV GkrCPKlU9UsEv1nsYwnUBD2ZApNOcOeBIPlz2vmMp4YiqEtBsOCz1fjoqS/PbVH4nzWs QXLMNsowX+DgP65GxvQVeiSfosnFvKkZX750zxxzXyuTgF5pCHnmG0EV1OZ97p7x4cuV JoDw== X-Gm-Message-State: AOUpUlH+SiYnqaT4i1una1CN/6zNb6iehr8evDt3wCboLbrM6g3gvx2q xa8dP8LAPQlrXFWW45L/bOLSyIlJmAg= X-Received: by 2002:aa7:88d3:: with SMTP id p19-v6mr19458623pfo.160.1531772525325; Mon, 16 Jul 2018 13:22:05 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id c7-v6sm15664497pfh.25.2018.07.16.13.22.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 13:22:04 -0700 (PDT) Date: Mon, 16 Jul 2018 13:22:04 -0700 From: Joel Fernandes To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Todd Kjos , Jeff Vander Stoep , Arve H , Martijn Coenen , Tobias Lindskog , kernel-team@android.com Subject: Re: [PATCH] staging: android: ashmem: Shrink directly through shmem_fallocate Message-ID: <20180716202204.GA160902@joelaf.mtv.corp.google.com> References: <20180706214416.184691-1-joel@joelfernandes.org> <20180716094851.GA31480@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180716094851.GA31480@kroah.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 16, 2018 at 11:48:51AM +0200, Greg Kroah-Hartman wrote: > On Fri, Jul 06, 2018 at 02:44:16PM -0700, Joel Fernandes wrote: > > From: Tobias Lindskog > > > > When ashmem_shrink is called from direct reclaim on a user thread, a > > call to do_fallocate will check for permissions against the security > > policy of that user thread. It can thus fail by chance if called on a > > thread that isn't permitted to modify the relevant ashmem areas. > > > > Because we know that we have a shmem file underneath, call the shmem > > implementation of fallocate directly instead of going through the > > user-space interface for fallocate. > > > > Bug: 21951515 > > What does this "Bug:" line mean to any of us? :) Yeah I should have been more careful when sending Tobias's patch ;-) > I'll go delete it, and I fixed up the subject to have 'staging: android' > in it as well. Please do that next time. Sure will do, thanks for fixing it up this time. Sorry about that. Regards, -Joel