Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2048618imu; Thu, 24 Jan 2019 06:26:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN6k1mYeXFp6M22NNRSe8twT6HPyMry6ak+IUzJe6fn8clprAEe+pwZ1i16GAI8cDLAl9OJt X-Received: by 2002:a62:345:: with SMTP id 66mr6643694pfd.189.1548339992997; Thu, 24 Jan 2019 06:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548339992; cv=none; d=google.com; s=arc-20160816; b=bhauInyOKZoDlaXdyWDdcJAsznqtR00CflJSvqcVjd2Gav7B7/p6u545usIMnYgF1f SisIg0aBwyBrAZUuHfmMhYdtdtyaN+VyNWgkfB7OTWbunhGlMYYjkZEzODMp535Hf0Pn y9zMejp+x4lbwwrNoSc0C/s1Ru37Jb53gnWJVOYsjLMJgShQg8emMfazXTJ3DTDLObo+ OidN0TEGJJW/IBQdBI3mSuUrhYV+GDV8J5YbMexp3o8MFXdidg0qkiQny4Mrp1QElm5w K+6liLqrow7sNuQU4AsOk6ZPD9k9+L6sb5BTE4FpZ4MdWJcK/m77VO8c+tWcBboarISj nDIw== 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=/IvgxLQsmz6BiIV7R98LfJ778XVXOwzDR7tRdpMkh9s=; b=iMYFu2ChqY15SpzAtmcfr0pd8669IAnsAc1Vxci6oWsEajmDQ02vj//APyec1eqQQD EXiGgH257vVpDM/emyGw7b8Lrnl4kyOqGryFtBUM94fx2Y3RzhbE4Yg7t5dCtxOKNdx4 RJUfk9dCGwwjPEQprWGRskwLF5jFRWQ8kfM+GemyloxgoD+Kb0qfcnnbkKhLVtb9aJYx BX+ncIeaO5glQOPCRvvb4yXTrVrj3PqDlwGbubVWnfiY2BPyG6oKwTnc8oGBwjnvE/To 9m7OBqbBL7k2/Eofup9vJTKrcvlqGCWcJIBSOKQeUPve8DCmO9lCSZMzxx41vE2s6gbo EbTQ== 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 u17si20264393pgl.586.2019.01.24.06.26.17; Thu, 24 Jan 2019 06:26:32 -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 S1728295AbfAXOZ6 (ORCPT + 99 others); Thu, 24 Jan 2019 09:25:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:41670 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727755AbfAXOZ6 (ORCPT ); Thu, 24 Jan 2019 09:25:58 -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 8792BAE62; Thu, 24 Jan 2019 14:25:55 +0000 (UTC) Date: Thu, 24 Jan 2019 15:25:53 +0100 (CET) From: Jiri Kosina To: Dominique Martinet cc: Linus Torvalds , Andy Lutomirski , Josh Snyder , Dave Chinner , Matthew Wilcox , Jann Horn , Andrew Morton , Greg KH , Peter Zijlstra , Michal Hocko , Linux-MM , kernel list , Linux API Subject: Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged In-Reply-To: <20190124124501.GA18012@nautica> Message-ID: References: <20190124002455.GA23181@nautica> <20190124124501.GA18012@nautica> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1678380546-789356226-1548339955=:6626" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1678380546-789356226-1548339955=:6626 Content-Type: text/plain; charset=US-ASCII On Thu, 24 Jan 2019, Dominique Martinet wrote: > Jiri, you've offered resubmitting the last two patches properly, can you > incorporate this change or should I just send this directly? (I'd take > most of your commit message and add your name somewhere) I've been running some basic smoke testing with the kernel from https://git.kernel.org/pub/scm/linux/kernel/git/jikos/jikos.git/log/?h=pagecache-sidechannel-v2 (attaching the respective two patches to apply on top of latest Linus' tree to this mail as well), and everything looks good so far. Thanks, -- Jiri Kosina SUSE Labs --1678380546-789356226-1548339955=:6626 Content-Type: text/x-patch; name=0001-mm-mincore-make-mincore-more-conservative.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-mm-mincore-make-mincore-more-conservative.patch RnJvbSA5ODEwNTY1ZjFkNWY5NjZhODQ5MDBjZGNiODVlMzNhYTc1NzFhZmJl IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogSmlyaSBLb3NpbmEg PGprb3NpbmFAc3VzZS5jej4NCkRhdGU6IFdlZCwgMTYgSmFuIDIwMTkgMjA6 NTM6MTcgKzAxMDANClN1YmplY3Q6IFtQQVRDSCAxLzJdIG1tL21pbmNvcmU6 IG1ha2UgbWluY29yZSgpIG1vcmUgY29uc2VydmF0aXZlDQoNClRoZSBzZW1h bnRpY3Mgb2Ygd2hhdCBtaW5jb3JlKCkgY29uc2lkZXJzIHRvIGJlIHJlc2lk ZW50IGlzIG5vdCBjb21wbGV0ZWx5DQpjbGVhciwgYnV0IExpbnV4IGhhcyBh bH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LCBhZGRyKTsNCiAJaWYgKCF2bWEgfHwg YWRkciA8IHZtYS0+dm1fc3RhcnQpDQogCQlyZXR1cm4gLUVOT01FTTsNCi0J bWluY29yZV93YWxrLm1tID0gdm1hLT52bV9tbTsNCiAJZW5kID0gbWluKHZt YS0+dm1fZW5kLCBhZGRyICsgKHBhZ2VzIDw8IFBBR0VfU0hJRlQpKTsNCisJ aWYgKCFjYW5fZG9fbWluY29yZSh2bWEpKSB7DQorCQl1bnNpZ25lZCBsb25n IHBhZ2VzID0gKGVuZCAtIGFkZHIpID4+IFBBR0VfU0hJRlQ7DQorCQltZW1z ZXQodmVjLCAxLCBwYWdlcyk7DQorCQlyZXR1cm4gcGFnZXM7DQorCX0NCisJ bWluY29yZV93YWxrLm1tID0gdm1hLT52bV9tbTsNCiAJZXJyID0gd2Fsa19w YWdlX3JhbmdlKGFkZHIsIGVuZCwgJm1pbmNvcmVfd2Fsayk7DQogCWlmIChl cnIgPCAwKQ0KIAkJcmV0dXJuIGVycjsNCi0tIA0KMi4xMi4zDQoNCg== --1678380546-789356226-1548339955=:6626 Content-Type: text/x-patch; name=0002-mm-filemap-initiate-readahead-even-if-IOCB_NOWAIT-is.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0002-mm-filemap-initiate-readahead-even-if-IOCB_NOWAIT-is.patch RnJvbSBmMjg3MTg1ZmM1ZTBmZmJiYjM4MGYyZDY4ZGQxOTI5MDcxNTgyOWE4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogSmlyaSBLb3NpbmEg PGprb3NpbmFAc3VzZS5jej4NCkRhdGU6IFdlZCwgMTYgSmFuIDIwMTkgMjE6 MDY6NTggKzAxMDANClN1YmplY3Q6IFtQQVRDSCAyLzJdIG1tL2ZpbGVtYXA6 IGluaXRpYXRlIHJlYWRhaGVhZCBldmVuIGlmIElPQ0JfTk9XQUlUIGlzIHNl dA0KIGZvciB0aGUgSS9PDQoNCnByZW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