Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2737239ybe; Sat, 14 Sep 2019 23:07:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqymxvlfsNsN3e6jrGff6aTfxZZt15L2LyxtVBv97ecDmF/VkrMa5mHbq177mPGcGbKDgr7F X-Received: by 2002:a17:906:3715:: with SMTP id d21mr45403662ejc.24.1568527669366; Sat, 14 Sep 2019 23:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568527669; cv=pass; d=google.com; s=arc-20160816; b=o0CTM2m4EWqoNpEb+p01H43Vu4es0ZDywrmMQko7kza4JP2KpbU48RcQYfzlZKGlj0 w3BRJgH4hSeX8hn3WfBygimOww66vvWgLY1WALICUhkWhf3p75pSqMEo1/ky+8UHHZuG laITdd3UZZzLXZEGUhif/MPbQwnxJf3lWpg5O+QxKiYPcrdWF4sOfQO2cLa9ufggz/Bc kktFb/NwU+L+y0su7bB67ciuJ7y0XLaRdZGqUTG9pcq7+XuTW/p4klN78T8rC6kzmIJH hnGnEKJPfs7ExOBx+O6XxEgy03z8r7+dgtX/WteGHbsFyT5mabQ4uU0MbDipb3HayKar eJ1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=n/IX4E51JRMLg73DXutECP6HD8hjiBKq6IC8y4NliKk=; b=wTluOCTmIoyjefLjID1UPZhplMX4IQBTOOFVff5u8LkkR84mxdFbtbUbSHb/MWtkoO qJndDaIxzmDlreRPUOsTouwUZkw6Ta2kglr3pPE9tsRkIw3aS9mW06Enzh+t6wH1OnEQ M/rQ3cdvgEt9/7BT8v25DcdSn98ySEX5lKT4nQX+84bZ++XPSIjguBFDIFnyHOQdY1DV onwaoeYl9f8ihIA0l+0/cq94FIZyi0ejhtzIsBXjET9KXvRsDUESXhjjNiPTkFmG6UKv u5xLrHuET3zbNsnLtqKOJLi2Z9AKf8LwoCL4Q2vkm3wI8l1ajxiqhGf6W7Rf8zAnqamW hlbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ixun8VSC; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=TWytUEYa; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si15973302edy.188.2019.09.14.23.06.21; Sat, 14 Sep 2019 23:07:49 -0700 (PDT) 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=@fb.com header.s=facebook header.b=ixun8VSC; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=TWytUEYa; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbfIOAeX (ORCPT + 99 others); Sat, 14 Sep 2019 20:34:23 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:52566 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbfIOAeW (ORCPT ); Sat, 14 Sep 2019 20:34:22 -0400 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8F0S8dn017033; Sat, 14 Sep 2019 17:33:44 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=n/IX4E51JRMLg73DXutECP6HD8hjiBKq6IC8y4NliKk=; b=ixun8VSCA4ETHrwKrUiLYm2USZoNvFXyB9VarpUcJA1HcVAIA7xdguZz+mFql+lu/hjN Dd1ImVNwikfHLvK7YL2abXu4cFDfxqPPz9tVUeujYd4XEgviiBpd+hGZKS6dbnbD0aGv aXdPWCkqNnITGmZvTn+EopShlEbQnoJ74y8= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2v0ygv1npx-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 14 Sep 2019 17:33:44 -0700 Received: from ash-exopmbx101.TheFacebook.com (2620:10d:c0a8:82::b) by ash-exhub102.TheFacebook.com (2620:10d:c0a8:82::f) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 14 Sep 2019 17:33:42 -0700 Received: from ash-exhub202.TheFacebook.com (2620:10d:c0a8:83::6) by ash-exopmbx101.TheFacebook.com (2620:10d:c0a8:82::b) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 14 Sep 2019 17:33:42 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.36.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Sat, 14 Sep 2019 17:33:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kVDo9zvYwMMEZu+LSbA+PepjPcTwEx6Qgr5HmgW5wxf2uJqlwOspp6uJ9m1cnocoqMZaB8ZWswfzjlTxPPtkO8ji9V58rD4VJd0EJU1+S1J9CV1T8vHYQgRILyJ1+zPdBr6sIjxgbqiJ1jtPaIHN167+x6EPnYFu9sHwBGHaKkRWpDCMan7DvfCRHSYvjYrF4BVpmIXG8wHRXmcDyTLk1d256icrHRJmVtnv8kEtRANrz6X1ZH3wqFhFZdzvdzztfU0e0Jot8EJ1uKN9OIbI/mSlbI9PHJ+cbzmdWGEzJihc/bVvJBLfxY4c6HVvdvGwWdp6WTLtQJoL9I56+PX8BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n/IX4E51JRMLg73DXutECP6HD8hjiBKq6IC8y4NliKk=; b=DS8bqNPeUwqKseYUiDlR8MfsDtqSLOoqzehZFcWd7zogmXzIv+WHaVHKce9c9GtVb73uWRDNQZAb5DbItiXEeN60AxjEbPiZBOxGHbIJls1NJbitQSaIaUD63klkA7wz646+BeBPs3SxwkrbXZ8emY4smsrYbP6o7wQieTqKEklJ72I+P7zqhlq1R3Wn0PpVJVuHQuV2vTo7Vf70OhIgVA2VGfc/x2exrJoqjeU6feHVoIVB2PRxjWzIDVYhxnorMVjxQWMeer8hPKBDjelT17YuT5gnGpUXUsYUHL4JanTxm53j6klWzPvfdbdWUEQEG5pKYy+bVLbXoN1tSfGiTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n/IX4E51JRMLg73DXutECP6HD8hjiBKq6IC8y4NliKk=; b=TWytUEYaencUPKNy0o/L60CGPXVRIlmYEqhBQ7ZoQpIJW62Faguw72/t3ixjzu6cEInUT6gYXztMOi/IMSlgiKJ8QwBe4gawNgA6LQ+Q/RrSI0SoWDPK8/0m2VMlAunBrAO2m1eETF2yHxOSy9NuhYEuIOG69Op4pAPEMUk1fCs= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.60.27) by BYASPR01MB0052.namprd15.prod.outlook.com (20.178.206.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.24; Sun, 15 Sep 2019 00:33:41 +0000 Received: from BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::95ab:61a0:29f4:e07e]) by BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::95ab:61a0:29f4:e07e%6]) with mapi id 15.20.2263.021; Sun, 15 Sep 2019 00:33:41 +0000 From: Yonghong Song To: KP Singh , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-security-module@vger.kernel.org" CC: Alexei Starovoitov , Daniel Borkmann , James Morris , Kees Cook , Thomas Garnier , "Michael Halcrow" , Paul Turner , Brendan Gregg , Jann Horn , Matthew Garrett , Christian Brauner , =?utf-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Florent Revest , Martin Lau , Song Liu , "Serge E. Hallyn" , "Mauro Carvalho Chehab" , "David S. Miller" , Greg Kroah-Hartman , Nicolas Ferre , Stanislav Fomichev , Quentin Monnet , "Andrey Ignatov" , Joe Stringer Subject: Re: [RFC v1 14/14] krsi: Pin arg pages only when needed Thread-Topic: [RFC v1 14/14] krsi: Pin arg pages only when needed Thread-Index: AQHVZ87hbuOgQ0AyT0uRpdYgTl4mM6cr6s4A Date: Sun, 15 Sep 2019 00:33:41 +0000 Message-ID: References: <20190910115527.5235-1-kpsingh@chromium.org> <20190910115527.5235-15-kpsingh@chromium.org> In-Reply-To: <20190910115527.5235-15-kpsingh@chromium.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR04CA0105.namprd04.prod.outlook.com (2603:10b6:104:6::31) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::69e8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c874f94-b8ad-4c20-c243-08d739745b5a x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYASPR01MB0052; x-ms-traffictypediagnostic: BYASPR01MB0052: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 01613DFDC8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(346002)(366004)(396003)(376002)(136003)(189003)(199004)(31686004)(99286004)(6246003)(52116002)(102836004)(6506007)(76176011)(2906002)(386003)(53546011)(25786009)(478600001)(5024004)(36756003)(14454004)(5660300002)(256004)(66946007)(4326008)(14444005)(53936002)(66446008)(66476007)(66556008)(64756008)(6512007)(81156014)(6116002)(8936002)(8676002)(110136005)(54906003)(31696002)(229853002)(476003)(2616005)(71200400001)(46003)(486006)(86362001)(6436002)(186003)(2201001)(81166006)(446003)(11346002)(6486002)(71190400001)(305945005)(2501003)(7416002)(7736002)(316002);DIR:OUT;SFP:1102;SCL:1;SRVR:BYASPR01MB0052;H:BYAPR15MB3384.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: CpDNCRxDye555YULnQfOLIe4dk6bLFLUQ4uJRAZKnOmsT7ySckFSkszbpSb6QYyeJNbE6QF3pOOPY3gcOxzUwj1eRQGspQHHzjiiM28yaqoLprjyKCatD8YWC+LJ52v+QoRVy/V26eUEXAXgrTIbITbc3Nd70WKDw89KeM+YLp6mniEwQ5oY9dqIhuT32tOYRXpZ367Weo3vqJMRjqPQ4Jvt3/2Su9nbR2dhKj98xe4k3K1Gq6KS8hbP1obB8VnWus2C67d2+oUIWbUG7ww+dLhR4ekaPoYu8ghxChtR2Uvmr57NboyFbk3wKIEuMOJ+Z6KUOMelX16P33ufWmhYh7FtgWIsFEF30lGZ+oftzOlmzGOXKNxVwUTx9Jd/I0Uop795mXzwNLfjGDtoOw4EaJ7aAstZj1W8x4tgPyxKbAQ= Content-Type: text/plain; charset="utf-8" Content-ID: <5324BC150B332A468D7198AFAC5C29DD@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5c874f94-b8ad-4c20-c243-08d739745b5a X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2019 00:33:41.1706 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lmKk1o6hEnycuv4OjvZL4LSrP++YEagHV7BYcW8EHMcMYX7s+iOORQnBRgxirK/z X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYASPR01MB0052 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-14_07:2019-09-11,2019-09-14 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 adultscore=0 suspectscore=0 impostorscore=0 spamscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909150002 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDkvMTAvMTkgMTI6NTUgUE0sIEtQIFNpbmdoIHdyb3RlOg0KPiBGcm9tOiBLUCBTaW5n aCA8a3BzaW5naEBnb29nbGUuY29tPg0KPiANCj4gQWRkcyBhIGNhbGxiYWNrIHdoaWNoIGlzIGNh bGxlZCB3aGVuIGEgbmV3IHByb2dyYW0gaXMgYXR0YWNoZWQNCj4gdG8gYSBob29rLiBUaGUgY2Fs bGJhY2sgcmVnaXN0ZXJlZCBieSB0aGUgcHJvY2Vzc19leGVjdGlvbiBob29rDQo+IGNoZWNrcyBp ZiBhIHByb2dyYW0gdGhhdCBoYXMgY2FsbHMgdG8gYSBoZWxwZXIgdGhhdCByZXF1aXJlcyBwYWdl cyB0bw0KPiBiZSBwaW5uZWQgKGVnLiBrcnNpX2dldF9lbnZfdmFyKS4NCj4gDQo+IFNpZ25lZC1v ZmYtYnk6IEtQIFNpbmdoIDxrcHNpbmdoQGdvb2dsZS5jb20+DQo+IC0tLQ0KPiAgIGluY2x1ZGUv bGludXgva3JzaS5oICAgICAgICAgICAgICB8ICAxICsNCj4gICBzZWN1cml0eS9rcnNpL2luY2x1 ZGUvaG9va3MuaCAgICAgfCAgNSArKy0NCj4gICBzZWN1cml0eS9rcnNpL2luY2x1ZGUva3JzaV9p bml0LmggfCAgNyArKysrDQo+ICAgc2VjdXJpdHkva3JzaS9rcnNpLmMgICAgICAgICAgICAgIHwg NjIgKysrKysrKysrKysrKysrKysrKysrKysrKysrKy0tLQ0KPiAgIHNlY3VyaXR5L2tyc2kvb3Bz LmMgICAgICAgICAgICAgICB8IDEwICsrKystDQo+ICAgNSBmaWx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