Received: by 10.223.185.116 with SMTP id b49csp4221764wrg; Tue, 13 Feb 2018 15:08:33 -0800 (PST) X-Google-Smtp-Source: AH8x226T8L2Zwn6i3n3FZLB+2A3CQBmOf0a1/8vyq3ef0+ZeRB/B0XN8P2og9h7IIE1hCK1+YjYD X-Received: by 2002:a17:902:1:: with SMTP id 1-v6mr2508646pla.187.1518563313227; Tue, 13 Feb 2018 15:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518563313; cv=none; d=google.com; s=arc-20160816; b=cUik7yb7P3MFdKeXyKxPH5fAArjpAslGEzQa+ku7sOopqmC2bZ3O8cS25bkgfNJ4/3 PDqZfuQ4j9cDuMmN8rY2g2eH6WyOZM96+BAXQDfuF35yC2cL/f2AIhXUOxxW7ReJ/QeQ r8zaT1LH1gkDMdQxW27DyZCWAlDM6P4TtrvC4RI5xlmwSboyyxbMOBmWI+o1N2dKL2Ot 6zMQu9MLWHvWLGIRw2Xsf0O97R64IiLCdCNeYemzt08YUNk5AhDmUY+I80ah9A4luVT4 YIJb6gEiRtAAidKqRpTfUKWLa49UgaWnyGvcMBsnvlNn6NiE0rbDMijkZ7eQXq9n2il/ CE8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=PNEXMfO9Bk8Pai7zpeFlPvb6FmFW+S21w6/8qDxRqeE=; b=C0akeWMObij1p/gox2HlPbF2KNWVOW2srM8ustfThfLrBZf59yAA9ZQypAUOwItbcE QjmKUzZEOF3FhHiXTpesiWi1tDdkDFqNHYsJ2pNTWCjY2CHDlcP/Tmk9W04GbWSLZMCL Oqd/zpJIacprO8Wt2O1F60NTDyFXUQJV2J4hCSFg/ObV0bInBIcuUDto8vNciHTOlgpR nydQe8HJgSQTCU7zzGak4pxoF2ZNAZSn8sIVrWRdndSi0NFPMq98RUjR2YH/YJM331xM buuTlrT2pj2/+mVo0UpXO1Yns5N+jLtbcBB6vRl7LS5PGMpdQOyiLKHpzsKATAjTs5un ngHQ== 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 d18-v6si1769980plj.438.2018.02.13.15.08.18; Tue, 13 Feb 2018 15:08:33 -0800 (PST) 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 S966145AbeBMXGr (ORCPT + 99 others); Tue, 13 Feb 2018 18:06:47 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:53150 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966002AbeBMXGp (ORCPT ); Tue, 13 Feb 2018 18:06:45 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.92]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9F0BBD3E; Tue, 13 Feb 2018 23:06:44 +0000 (UTC) Date: Tue, 13 Feb 2018 15:06:43 -0800 From: Andrew Morton To: Davidlohr Bueso Cc: mhocko@kernel.org, mtk.manpages@gmail.com, keescook@chromium.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next 0/3] sysvipc: introduce STAT_ALL commands Message-Id: <20180213150643.0bf5b03f49be656728e1475e@linux-foundation.org> In-Reply-To: <20180213174136.6346-1-dave@stgolabs.net> References: <20180213174136.6346-1-dave@stgolabs.net> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Feb 2018 09:41:33 -0800 Davidlohr Bueso wrote: > Hi, > > The following patches adds the discussed[1] new command for shm > as well as for sems and msq as they are subject to the same discrepancies > for ipc object permission checks between the syscall and via procfs. > These new commands are justified in that (1) we are stuck with this > semantics as changing syscall and procfs can break userland; and (2) some > users can benefit from performance (for large amounts of shm segments, > for example) from not having to parse the procfs interface. > > Once (if) merged, I will submit the necesary manpage updates. But I'm > thinking something like: > > ... > > [1] https://lkml.org/lkml/2017/12/19/220 It would be nice to summarize the above discussion right here, rather than merely linking to an email thread. A reported-by:mhocko would be appropriate. Really, the only reason for this patchset is to speed up the userspace interface, yes? But the changelog is awfull skimpy on the details here. Who cares about it and why and which apps can be changed (ipcs?) and why do we care and how much better does it get, etc. Dumb question: an admin can do `chmod 0400 /proc/sysvipc/shm' and then this data is hidden from unprivileged users. So doesn't this change represent a security hole for such users?