From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bk0-f47.google.com (mail-bk0-f47.google.com [209.85.214.47]) by kanga.kvack.org (Postfix) with ESMTP id C1F126B0031 for ; Mon, 27 Jan 2014 22:53:14 -0500 (EST) Received: by mail-bk0-f47.google.com with SMTP id d7so85445bkh.20 for ; Mon, 27 Jan 2014 19:53:14 -0800 (PST) Received: from mail.zytor.com (terminus.zytor.com. [2001:1868:205::10]) by mx.google.com with ESMTPS id q2si16216861bkr.259.2014.01.27.19.53.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2014 19:53:13 -0800 (PST) Message-ID: <52E7298D.5020001@zytor.com> Date: Mon, 27 Jan 2014 19:52:45 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [RFC] shmgetfd idea References: <52E709C0.1050006@linaro.org> In-Reply-To: <52E709C0.1050006@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: John Stultz , "linux-mm@kvack.org" Cc: Greg KH , Kay Sievers , Android Kernel Team , Andrew Morton , Mel Gorman , Hugh Dickins , Dave Hansen , Rik van Riel , Michel Lespinasse , Johannes Weiner , Neil Brown , Andrea Arcangeli , Takahiro Akashi , Minchan Kim , Lennart Poettering On 01/27/2014 05:37 PM, John Stultz wrote: > > In the Android case, its important to have this interface to atomically > provide these unlinked tmpfs fds, because they'd like to avoid having > tmpfs mounts that are writable by applications (since that creates a > potential DOS on the system by applications writing random files that > persist after the process has been killed). It also provides better > life-cycle management for resources, since as the fds never have named > links in the filesystem, their resources are automatically cleaned up > when the last process with the fd dies, and there's no potential races > between create and unlink with processes being terminated, which avoids > the need for cleanup management. > What about if tmpfs could be restricted to only only O_TMPFILE open()s? This pretty much amounts to an option to prevent tmpfs from creating new directory entries. -hpa -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org