Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4629571imu; Tue, 8 Jan 2019 03:39:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN4CIx7QIatN7oP+2C4uy8FhFydIupJaHN+n/QzzkAzIsa64zm42YwzHH6QxKNxzw1tv+HcA X-Received: by 2002:a62:1542:: with SMTP id 63mr1412769pfv.230.1546947551317; Tue, 08 Jan 2019 03:39:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546947551; cv=none; d=google.com; s=arc-20160816; b=OU6zuf29BhGhFwrD0ChPL1W0jGISblxVXeuaTfzoAjXbYhRon72EON7d7nw+WNnTap W0JoMHHdpZJ+oTwfoMopdzRts32TKsiIOq7nl9F4dOc3DytM1NzgAqXNQwX5eIqk5L0u qyy5aF99x7vTTgk0Kroc4Sp+M/QoCsytziMDhds9cB6p6wQVwOfQNj1OkUvs1gfccyUw xWTuavd6JmwV+DjK58O3D7W7PzXGZSETBX/2tjkaow1NF76cSfq3X+mc6E3QrxTlUWAd o1jO8sgc3Fujo3O0P9asZfiWDWHwx0QqfeSu/7XZuQ3c8AL1ANGBG4liWFCmscYy2dEw XZ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=TyIFjCVIfnvCmEsvTMJx5nhOlZri72K4gG+paWNle/A=; b=zVTfDT2+583tbPvh4NSOMKphkXkoG2bVCf2fN8wef/2pGXhcX7XhXDHnoMRbhZAoHi D4e+QCw+JroMPEDu7ttM90O+ekhr8I99pHOM+s19jBgiNiQGMJMo8+52oXWWNI6hWdcQ nTHJ04ze/ifp5233zTfIjL3QebmwUbCDazWWdXJKNiaK+Z6hZXuYQ1xjQ3zdVDpBaS5l lTa9rutrfm0sgW8iGWJNA49qt9KAcWJkin/jSSUYuDhxrdTTizkzHlZ46euQyudNdfpw een4yTinNvm4tatfnfazfkucmG2FHgi7B6u6qwFkLOxOyBRk73ih2wk1LWGI8asDN4a4 lXbw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si13934006pgn.102.2019.01.08.03.38.54; Tue, 08 Jan 2019 03:39:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728256AbfAHLhu (ORCPT + 99 others); Tue, 8 Jan 2019 06:37:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:35298 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727107AbfAHLht (ORCPT ); Tue, 8 Jan 2019 06:37:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2D5A8AD6F; Tue, 8 Jan 2019 11:37:48 +0000 (UTC) Date: Tue, 8 Jan 2019 12:37:46 +0100 (CET) From: Jiri Kosina To: Bernd Petrovitsch cc: Vlastimil Babka , Linus Torvalds , Andrew Morton , Greg KH , Peter Zijlstra , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged In-Reply-To: <047f0582-a4d3-490d-7284-48dfdf9e9471@petrovitsch.priv.at> Message-ID: References: <047f0582-a4d3-490d-7284-48dfdf9e9471@petrovitsch.priv.at> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2019, Bernd Petrovitsch wrote: > Shouldn't the application use e.g. mlock()/.... to guarantee no page > faults in the first place? Calling mincore() on pages you've just mlock()ed is sort of pointless though. -- Jiri Kosina SUSE Labs