Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2132777imm; Mon, 16 Jul 2018 02:49:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcDbqsmwzJ0FZNKnXbaNZUES79gMp7rMy+m0qMuJ0v94xyed6qvwnFL/WLOsmhYGyGhi1AA X-Received: by 2002:a17:902:292b:: with SMTP id g40-v6mr16183641plb.273.1531734594133; Mon, 16 Jul 2018 02:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531734594; cv=none; d=google.com; s=arc-20160816; b=ftNd90vh9IF7x2Z2OZxhUfHkrEWECl8UqElUlwKPFJdIgbvB+k6wue544zrif9OBIi GVjcAotnsYEofGpKHzS8XD+rhf+I+7NCCyU2rStSoErC2y7xegJ/oFhp1tyrQh77lvOY LrhIon+8jcf6uB7zfYFdiUW3/Qf/2m1f7ObVybaa8fjBGMK6cevu1AUp1/C7obB44lFV 99aWO308FyFpEKqo5Apid7H7/WGjPaPbvxuD6gg/Ws61tNRi71G2y0OiZnTBkDbt33Ap 8HAYjSwkHXq4vYiK8oyIV0/hmu3Pu0nwKCc34VUqaLBNTRxr3LP0JXH/e+om0pfJ/6L+ 1+2g== 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:arc-authentication-results; bh=V/xgEgfjErsLIvRH3JEOnShqt6clhNN0fyzTkqe3rhc=; b=qWFkbDWSmT/Vs7TY/VGg8jo2csm+5svseRB/otGPYaIRod6hUJHvcQ5XL16CLWZ74+ TV+Bg76FPam1gxdupxp1pJA4OfJ/5/+3qZpLKgCm3/TWmgaJCBTn5MXJhlELYvgJwrGy 72gdlvY4gUZcQg+U70bt5awRA2pp7/oiFWGgFvDUeW7mGtmdZtU8Wm9xeUGWvqSHT2zv /R9V7Sc9sgUHaujMv51dTXv+hnbxvUYuwHVTRmNkDKjx+kyntgNGafa5N4TGSmSOufPa OvBPKN/wBmjX0kLjqfRc1sHWCtuPX6WOUfxQZj9+maNTKaCNL3U2HtC7Mz0idMdSqJ/3 KTxw== ARC-Authentication-Results: i=1; mx.google.com; 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 r69-v6si31850102pfl.260.2018.07.16.02.49.39; Mon, 16 Jul 2018 02:49:54 -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; 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 S1728707AbeGPKPa (ORCPT + 99 others); Mon, 16 Jul 2018 06:15:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53732 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728061AbeGPKP3 (ORCPT ); Mon, 16 Jul 2018 06:15:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BC07DAD2; Mon, 16 Jul 2018 09:48:53 +0000 (UTC) Date: Mon, 16 Jul 2018 11:48:51 +0200 From: Greg Kroah-Hartman To: Joel Fernandes 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: <20180716094851.GA31480@kroah.com> References: <20180706214416.184691-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706214416.184691-1-joel@joelfernandes.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? :) I'll go delete it, and I fixed up the subject to have 'staging: android' in it as well. Please do that next time. thanks, greg k-h