Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp238585imb; Thu, 28 Feb 2019 22:31:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzgHUHcZAQCSSZxd5rQQQ+jtvMIZ3CJK3G4CVUoOTQvGPckDaI3xo+N4MEXXPyTGvRv9wNF X-Received: by 2002:a62:1b03:: with SMTP id b3mr3980686pfb.218.1551421905322; Thu, 28 Feb 2019 22:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551421905; cv=none; d=google.com; s=arc-20160816; b=xoUSBt0G4ph0Ju6QF2Yj7JTlzaCuQ2CAkGAYLj7aRXryc+JVNE5OwxjnT42gdYPyeb xrebLMr1fJM29Glo1fJ2k0Rb4sP+Dr/VCZKMMfw+jat/2dE6ASRYg4Jq6VbW8rGsQGrG DIerqw1DJ0gjghH7tT8gNCysHQ1xQIEnIDG896sejX3nOW1u8aMPCsSaJYCeldKqAkrS 9JTqF4ieawtSbS6FIq7MhTlQYGuXGD74q+lEj/n2VDKijL1aPpRJpXNLoicDGsIFJ+5B MZG6VjyiZL427qicy/PQR6ZsU9aIhlaQ1KRHKjIcFxGyBuv9lhd1LNyuA3iKf9cTdLi1 iPJg== ARC-Message-Signature: i=1; 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=Y7aDRA4zLWVUOyKWQE1PWJ6cd4rdEMkgKArDrRmectg=; b=NbszKSsoW4n4F31ejsmAcgJfTpbOE6zbc72iENxaz+1HfJbRoIYJrnxELHPu7onQp8 7xcO2m5T/ulcpKGTU4pjz8+r1zrmV3K3d3S/DyDmwBydKkL937slhBcMcyzCKEurS0+I Vv6Jv4BDQAJCK+Bd4I1eU8YnI+y+iggVkMrjPi7nu88h0Kx+rznWDdG6T8+UXHyWyqD0 phE7rPeyDijIRQY+OGvnr18UrAHugeklkt4F6ze7Dp++1AkM/f0T6q1kwbZhVvCPjbt1 1c/v6+K1r8HgINpl5SINIIH63jnmBOXao/iLY7oGDGkoowaQVirW0DwQASBwMH5sRzkk 7nbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=LYRzLUr4; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=eUcMQieR; 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 x1si9087906pgr.574.2019.02.28.22.31.29; Thu, 28 Feb 2019 22:31:45 -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=@fb.com header.s=facebook header.b=LYRzLUr4; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=eUcMQieR; 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 S1728201AbfCAGbD (ORCPT + 99 others); Fri, 1 Mar 2019 01:31:03 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:55372 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbfCAGbC (ORCPT ); Fri, 1 Mar 2019 01:31:02 -0500 Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x216M5Lo015386; Thu, 28 Feb 2019 22:30:21 -0800 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=Y7aDRA4zLWVUOyKWQE1PWJ6cd4rdEMkgKArDrRmectg=; b=LYRzLUr4Car2pud06bmQNL6gbj7F/WabDYbeVblfGUDBaLIitdcRvT5TSQWcIdMi0gPx gagSqEMRVoqJqzF2IkE2+onxm1jxdVkxM1OvQyXD5qYtuXpkpVfQNK2p/91yVqI5VphB TjYRgTAC7MltCuMjyeU3M9PWZ6eLlopmxtU= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0b-00082601.pphosted.com with ESMTP id 2qxupsrjdu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 28 Feb 2019 22:30:21 -0800 Received: from frc-mbx04.TheFacebook.com (192.168.155.19) by frc-hub03.TheFacebook.com (192.168.177.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Thu, 28 Feb 2019 22:30:20 -0800 Received: from frc-hub05.TheFacebook.com (192.168.177.75) by frc-mbx04.TheFacebook.com (192.168.155.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Thu, 28 Feb 2019 22:30:20 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Thu, 28 Feb 2019 22:30:20 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y7aDRA4zLWVUOyKWQE1PWJ6cd4rdEMkgKArDrRmectg=; b=eUcMQieRAP+C5PkzYADFG/hQNfeMM6e0NXxtacIJgJ0cJYIQRcLeCcqU/HjMmoXJHE/cBxNIcUHzwnuhgk1URqSdP76kEavbkYMsTAKJ+/a6FJiRSjR7CatBtwzqM64/iz/vpdzosEH5H2jwmmc5xcKDRG+eX/tcRdywCUe97v8= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.59.17) by BYAPR15MB2630.namprd15.prod.outlook.com (20.179.156.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.16; Fri, 1 Mar 2019 06:30:17 +0000 Received: from BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::d051:e43:9e14:b94]) by BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::d051:e43:9e14:b94%4]) with mapi id 15.20.1665.017; Fri, 1 Mar 2019 06:30:17 +0000 From: Yonghong Song To: Masami Hiramatsu CC: Steven Rostedt , Linus Torvalds , Shuah Khan , "linux-kernel@vger.kernel.org" , "Andy Lutomirski" , Ingo Molnar , "Andrew Morton" , Changbin Du , Jann Horn , Kees Cook , "Andy Lutomirski" , Alexei Starovoitov , Nadav Amit , "Peter Zijlstra" , Joel Fernandes Subject: Re: [PATCH v5 3/6] uaccess: Add non-pagefault user-space read functions Thread-Topic: [PATCH v5 3/6] uaccess: Add non-pagefault user-space read functions Thread-Index: AQHUz39IYmYXzWXlk0md3tL+pQqyDKX1SqyAgADDdYCAAENUgA== Date: Fri, 1 Mar 2019 06:30:17 +0000 Message-ID: References: <155136974478.2968.3105123100519786079.stgit@devbox> <155136983467.2968.13980231890937828195.stgit@devbox> <40eae910-16f3-8c6f-6cc7-c52b77b30ccd@fb.com> <20190301112915.f00e5d5c894f73da50746bcf@kernel.org> In-Reply-To: <20190301112915.f00e5d5c894f73da50746bcf@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0082.namprd07.prod.outlook.com (2603:10b6:a03:12b::23) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:10e::17) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::bca5] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d3e3373d-37d2-4051-d355-08d69e0f5e88 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:BYAPR15MB2630; x-ms-traffictypediagnostic: BYAPR15MB2630: x-microsoft-exchange-diagnostics: 1;BYAPR15MB2630;20:tTr0MOofAgvoUU2gaoW2XSPw/8FhSd4JyNnGtxUt4PVF0Qv7s/klzexGIM0X7Isj2oqLTpdMj0I4Q0ONI2pektfjYQS/QHwvUCrobb6M2wE5SLM7S1aNbZD66CwVkeSim/8/vzb/XudOoYSRRWH7z3IAV++T87EF7BqIFNrBrVQ= x-microsoft-antispam-prvs: x-forefront-prvs: 09634B1196 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(136003)(346002)(376002)(396003)(199004)(51914003)(189003)(14444005)(4326008)(2906002)(256004)(5660300002)(7736002)(81156014)(478600001)(71200400001)(71190400001)(8676002)(25786009)(2616005)(386003)(486006)(97736004)(476003)(53936002)(53546011)(305945005)(81166006)(6486002)(14454004)(6506007)(229853002)(102836004)(68736007)(31696002)(54906003)(7416002)(446003)(6512007)(46003)(86362001)(11346002)(316002)(6916009)(8936002)(36756003)(186003)(76176011)(52116002)(93886005)(6246003)(105586002)(106356001)(31686004)(6436002)(6116002)(99286004);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2630;H:BYAPR15MB3384.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: 7AxaxiVBBTPPWk8yBIiD1Q5dtvWu0ixWc2bmCcM7LQCMTI4/erZcZkJB2uf8/5lqzaAz2zyvMpjVbDjLWBK7fZIyfl3MyVktIEGRBSrOCsMXLKs2t2C2fu+skd/xMHRr4CGiIMP7t0dDZA1Cr+wJlNvKkfyDpH4g0iS64cG9vVe7ohXViX/7e0xIuAUKsSBLKvEQW9fwZ7/egE4B5033VXOPHgoSPPKXLB7Ce8KIfmiujsz4g6brB0w40h3waqaM+NB2mfHoY3NsVx9XYD7y8/INaSYIxTpKilEPyu9X5/7RbgLL+HrPmw6BYr0IHNyqt+Gu/vrO7J1WKFxlKyd0byOu7q0BpQxhQeEcHJwdnXSdMr6nmjD1350SYmD7yd51+hZjVM37hkW++RUd4nbbDU0Y6cAjKm1bBz6bRgUWry0= Content-Type: text/plain; charset="utf-8" Content-ID: <9F0E62BE465D814E82D692AC3AD329E5@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: d3e3373d-37d2-4051-d355-08d69e0f5e88 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2019 06:30:17.0849 (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-Transport-CrossTenantHeadersStamped: BYAPR15MB2630 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-01_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDIvMjgvMTkgNjoyOSBQTSwgTWFzYW1pIEhpcmFtYXRz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