Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1996958imu; Sat, 5 Jan 2019 11:48:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5EfRqDCn7GrfzKQ5ZROPVGgbmYLSuF2o/LxY1gDo4557gHUai/YvpbISILOBIyLN0VRvaP X-Received: by 2002:a63:c42:: with SMTP id 2mr5755307pgm.372.1546717727142; Sat, 05 Jan 2019 11:48:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546717727; cv=none; d=google.com; s=arc-20160816; b=uy6c2GUOzICNUz/ADPCFp+pFm6UmG5wImG7DINpkb0tBYibWDrBUzk6ji659rv4q3c abUASkvTj2NTKGaWX4jh7q7DyBlRq5KNGzqaLWIuDRfqf9fuR6YMrae9ugJvyu/uRUUt PIoX3VvWwTmHj8vuX4LjLuG2V4FS3GUzQYmtlrowZswn9Qkh+3T/YBF73IGaki1OHHDf y/U6Il2ESXPS61XJWkxTMF4b1z1JxrCjqduX0rBSho+Wzrwz4PE0AOyicdRYXp5JudFr gStTuHUHr4NYsShiOXa9c4oki7W/iC02skxtlsrberIhLCLFDf39PSX9mn50LRnR45Tm yqUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sfMKo7ATNMJUBNjbzn0K8OxXUEt33ltVZgJi38nELQs=; b=Baklgv60YekGlejHOlaA2Utjx8bS350uz4WTVwG7mTmOT75Voc7p77x7+6efPvNVnr oBYZwV9xN8x0q1uahcj19RQ4vMOCieWcs6AKGicsU1zNt1F3KbbuUo05rdLTAlVom5T0 Fv0q61/52lsw2utXTNj43JyAYnjqy2aTMoHAabw+FHmr6KvGKoj0Jkvhqs1fM7ezOyW1 b3munTLYlQaajOzATGxWaHbjdv3ONQlSQf/KOptierR4fWY8XxWzTimv95nKwJtycQzA 1RcnmeL99V7Gy7b810/CPFvuZVul2RNIfPFLQGJqVp4E8m8Xn+Nh3ZcMG4AVO8+mlYJB 2veQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Omya8saF; 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 y17si24558531pgh.353.2019.01.05.11.48.31; Sat, 05 Jan 2019 11:48:47 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Omya8saF; 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 S1726388AbfAETqx (ORCPT + 99 others); Sat, 5 Jan 2019 14:46:53 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:32925 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbfAETqx (ORCPT ); Sat, 5 Jan 2019 14:46:53 -0500 Received: by mail-lf1-f65.google.com with SMTP id i26so27628912lfc.0 for ; Sat, 05 Jan 2019 11:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sfMKo7ATNMJUBNjbzn0K8OxXUEt33ltVZgJi38nELQs=; b=Omya8saF/W27WjohuXlwpfrj4/+p7Bksv9DohJlsBfsrJA7OY/3Q3YPW0wVln7VJnM cs3qJ46WDfuFVB/SShwQNUY8X0wsqohZWk4LpS04v6uCOqfWBSB730CAc8u48gBSynwd qBDKTkyJmnFF3QumYh9Hw5nxCpVz1LDsRIMvs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sfMKo7ATNMJUBNjbzn0K8OxXUEt33ltVZgJi38nELQs=; b=dw15+Et2LOLPKvSeAoGbuPgcP25fuMeE3VIeZbnw5Av0HTSB4GIYCgxGbe+s7Z3V0v U7ZxgYcaIsqpp+Ku4CJd9htZai0pDR3SB+32aNH/p/jT3+aQLcaeYBKQW6nG+wVvXIOX V4J0L4qnRdMPTZ1GXaHospFTKB7lxHxwJvyexSY35W9gllSsdNbh+jsWf6KmlwyO0LwU 6wSWyId16fYFlcbqds/spwBOZPpgMsOp2pmtu2TTwdoRhSOUTYbtrTEgKAxnW904L+sR T1c8Cpe1zg8W+8Yj6q0ciCSznodi2mB5veV5tJIQ4geJ+wSSyjPZLjWC+92uKBbVsn3u 5QAw== X-Gm-Message-State: AA+aEWYQmVQ+Krf2COPBHPfLWBRqTNIzD4ecWLvoiEPUF0dGTMxWt4M9 LYHIOspwIvpYgy6pmyC0dn0CF0OeeGE= X-Received: by 2002:a19:c18d:: with SMTP id r135mr25783561lff.59.1546717610878; Sat, 05 Jan 2019 11:46:50 -0800 (PST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id b25-v6sm13235326lji.94.2019.01.05.11.46.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jan 2019 11:46:50 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id i26so27628882lfc.0 for ; Sat, 05 Jan 2019 11:46:49 -0800 (PST) X-Received: by 2002:a19:3fcf:: with SMTP id m198mr26611229lfa.106.1546717609589; Sat, 05 Jan 2019 11:46:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Sat, 5 Jan 2019 11:46:33 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged To: Jiri Kosina Cc: Andrew Morton , Greg KH , Peter Zijlstra , Michal Hocko , linux-mm@kvack.org, Linux List Kernel Mailing , linux-api@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 5, 2019 at 9:27 AM Jiri Kosina wrote: > > From: Jiri Kosina > > There are possibilities [1] how mincore() could be used as a converyor of > a sidechannel information about pagecache metadata. Can we please just limit it to vma's that are either anonymous, or map a file that the user actually owns? Then the capability check could be for "override the file owner check" instead, which makes tons of sense. No new sysctl's for something like this, please. Linus