Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5993670ybe; Tue, 10 Sep 2019 11:53:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3XUd6hRlzWSPa0Z1qrxDh67nvrMSqdT8z5r3jKZB3b0Z/N0sjs9G6fDuwcvX+Gz0deMrS X-Received: by 2002:a17:906:f0c9:: with SMTP id dk9mr26165881ejb.261.1568141581562; Tue, 10 Sep 2019 11:53:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568141581; cv=pass; d=google.com; s=arc-20160816; b=K3jtbmPSFxJEeqBAXjDlVu03QnDUgt+v+Z79qim/rjqBj/Rkmv4dCuaCheIPwpVYJ7 tskuHcxClPIIpqQfQfECFKekb1Ek/KIFzW/j7+ihh1Ro0WfCbnQoiuT7MUfOESrb+iM7 3OE9GR4rvRBI6KIeD33xm06+p0mc9AHYfkmAlkQmzYe7F9TzZj8+cUwt3gurxJkg3OXQ M9Ejs8wF1AcOHrHUtCO/y0fC+TppbdqW9A0Tbx/StlUrxpzDIWZ+H07i/irr3Jx7KDKs yUm5JgumHRs+48ZWGA688k759vlirdaRWWiSIo7GPmn/hefuwKQe50Y1P9dV4RivANjH HjdQ== 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=wTTUiOnuy5WfhGWrSCAMaWpvCBMVp3ybaMXi85IX3Vg=; b=jHI9lyDv4ZN55gqnD7PYAQFiSoXlpWQun8TmCpO5+zrbLAUySfKJjB/0uN1dzgA54q mBXoGbn71bXuCKjAxLUgdViXnx+rpXQU8xVl5LmCjml8YWcqP8vGrT2ydUgXozCBiAL+ 1f3nLUaUAgMeogJraBsNkLntT0mAB0IHbHYGjuevgeG24iPwwDJLIyNFzeWNCaR1n5ef R/8BP8M//j63AgXpVWGyOzTJSM3ipEelo6A05Mco3UQGqmlH+4RxXjuJsBVmkz4N4xdC YUDE6NJZo0/gS3rRZc8cAcwjee4sDBlU/w89MLPtW2jN33B/2sLX6sqLRa9jaZ+nHgyj RqmQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Ea0TnPCp; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=RK7PfLIY; 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 v3si10799131edc.404.2019.09.10.11.52.37; Tue, 10 Sep 2019 11:53:01 -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=Ea0TnPCp; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=RK7PfLIY; 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 S1732088AbfIJIiB (ORCPT + 99 others); Tue, 10 Sep 2019 04:38:01 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:3374 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfIJIiA (ORCPT ); Tue, 10 Sep 2019 04:38:00 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8A8ZEbX026551; Tue, 10 Sep 2019 01:37:37 -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=wTTUiOnuy5WfhGWrSCAMaWpvCBMVp3ybaMXi85IX3Vg=; b=Ea0TnPCptfilTwM60x0yNhWeODIkXaZUqTEUzal+MIaUTE2+IXDLqG5hOIbgXVvwxuUD uYV1Wbby8ef/YcTILPbw3DLxZMNGwYheEseREBcXwS3zkXYLQ6Kq4pg9tvIbocmzz/fT 5ROgbEmkHQ6BfUIXlkMcfn9gbZ1hBgLnJk4= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2uwrs8kv1g-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 10 Sep 2019 01:37:36 -0700 Received: from ash-exhub103.TheFacebook.com (2620:10d:c0a8:82::c) 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; Tue, 10 Sep 2019 01:37:35 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 10 Sep 2019 01:37:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WmyxFc/LlkpIiXb8NJLzlVLPJ6+7fEmLIqx/gxFWyj1aRJfUHWaVxFmy/YYvPOFGDKphl0dzXAlWyV1AOzTLuHA6iKPAIlosfjmzO7ZPe8nT184THG9MV8nHt80re22+iBHwCwJd2vYggoLxHujUpWfKroOIj521ryGOId7F43S7bncyap2vnnw9rQRg9FJc0c7vpCIiZcwipcjnA0lT1OEK3WO/ecWj0M8T6lEBAiiESC6u0IQB4fu3WsJJWoiaAXB2l9MuXT4uQVcEG7Tz9MgC32cKidVVRvEE+wF2uToMmO5Iwa5H/Gxcl4GZNj6WOsm0qFbABuXBPYkjE9UHNw== 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=wTTUiOnuy5WfhGWrSCAMaWpvCBMVp3ybaMXi85IX3Vg=; b=bOX3KoP5w4NfIhNzZQOjeeLTitdLh/yOL91PtLbIGkETSddmKn85+UsgA1MtEvdQfHcrB+rhuU/7uFI7RV2En/Xq4r8vaquy8rV+flzTEph0KSDQy35vdRT0QQ3ZGI5urA/uuUaQoyBmN0hZDZOMESfN4KzMAw3IIGW3oBKYQr7oU+BgIkNfWLGAaYv9otgrjKFsIQHvLEqhtGz8dGeHeUuUDoi0YINnAUHYlCKzaZvvqiC8lFP4bQeql6bmg4p+qRbyyAZUZ67QZu8StHfB2SVbaI/0m72dmSj1tsUa+O3gYSVAoSYFuPFs4OMunCV89uuemN4Swk4cRAeff+2qMA== 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=wTTUiOnuy5WfhGWrSCAMaWpvCBMVp3ybaMXi85IX3Vg=; b=RK7PfLIYFvGOKF824jpaCZD145Lo7lEX4Zcvx4qr8iEdbVR2Fmk4PIKd2nUvdB+DIW8fJr/R+f4yT3U7QXrZH/VexiGJbwV7pC7Aowl1btj9wHXgrxJ5w1NXMWWj7IIp7XUnvmffsyoPbHzOGWde/sOAoIi85isqa+PLuUCmgA4= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.60.27) by BYAPR15MB2917.namprd15.prod.outlook.com (20.178.236.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.14; Tue, 10 Sep 2019 08:37:20 +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.2241.018; Tue, 10 Sep 2019 08:37:20 +0000 From: Yonghong Song To: Sami Tolvanen , Alexei Starovoitov , Daniel Borkmann CC: Kees Cook , Martin Lau , Song Liu , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] bpf: validate bpf_func when BPF_JIT is enabled Thread-Topic: [PATCH] bpf: validate bpf_func when BPF_JIT is enabled Thread-Index: AQHVZ16IW5erCFqZOkia6/rUPUKqLqcklyQA Date: Tue, 10 Sep 2019 08:37:19 +0000 Message-ID: <4f4136f5-db54-f541-2843-ccb35be25ab4@fb.com> References: <20190909223236.157099-1-samitolvanen@google.com> In-Reply-To: <20190909223236.157099-1-samitolvanen@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR21CA0056.namprd21.prod.outlook.com (2603:10b6:300:db::18) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::4636] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 085bf149-e471-47ea-a98e-08d735ca17e9 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR15MB2917; x-ms-traffictypediagnostic: BYAPR15MB2917: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 01565FED4C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(346002)(39860400002)(396003)(376002)(366004)(53234004)(189003)(199004)(305945005)(102836004)(46003)(54906003)(6506007)(14454004)(6486002)(8676002)(81166006)(8936002)(31686004)(7736002)(66446008)(64756008)(66556008)(66476007)(4326008)(25786009)(66946007)(5660300002)(478600001)(229853002)(6436002)(6246003)(36756003)(31696002)(6512007)(53936002)(86362001)(81156014)(76176011)(15650500001)(446003)(11346002)(2616005)(71190400001)(256004)(2906002)(53546011)(6116002)(186003)(476003)(386003)(99286004)(486006)(316002)(14444005)(110136005)(71200400001)(52116002);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2917;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: Lsjjvkn+NZ/PtNmxFLq6I6XVV8qlBXo+lMxWCEhpNmySLXq0d9kOO5tOvvJqpGs641/Z6lMcUKM36+bBRQJpiI1WTw1AhcC4LmEEStZHUdAY//j1ulM0LB8VM2dO6kuFA2ttWwfDvctenqohCmIvUjc6cgzln8arlBXc2TGOGeM2rkBA1Zy169YaVqEq5qr94tJEHossZgQ9CNheaWo9sdlAzD4hP99UEXyyyqC1/TDzWWnBYI8aWm3fqsbJDFARkue4eV6nbuAwnqK6RYwXxruuANBEl24KYwwApBnYaPqm9SfmYEVpU9rd1wJD2le5DtUF+Y4levT0zjgs1rzLPNxMIlOxmgO4sUE3wKLGJ0KXlasjgT4G+bgDEAAkGOjVWN8Jdeb0Xnf7taSzuFZzAXrbiDgIXc3l4rEYE87PjVo= Content-Type: text/plain; charset="utf-8" Content-ID: <9868C14C6F8ADC45A7BCEEE2B4DE1192@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 085bf149-e471-47ea-a98e-08d735ca17e9 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2019 08:37:19.9968 (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: rJpgb3WJlRidmbLMc5/WDPlIM9dj8F5+ugb0U1i0KTbVGUQXrKTaxgkCyhqVQaZH X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2917 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-10_06:2019-09-09,2019-09-10 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=999 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1909100086 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDkvOS8xOSAxMTozMiBQTSwgU2FtaSBUb2x2YW5lbiB3cm90ZToNCj4gV2l0aCBDT05G SUdfQlBGX0pJVCwgdGhlIGtlcm5lbCBtYWtlcyBpbmRpcmVjdCBjYWxscy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