Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2603124ybe; Sat, 14 Sep 2019 19:20:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/vZSThDCb1xuHaeQSlz5DWTsQMHZr971M6C0ikrRi+yMA7ubaSwt6gNlBazfoXb5Kq2H9 X-Received: by 2002:a05:6402:1341:: with SMTP id y1mr913510edw.239.1568514019087; Sat, 14 Sep 2019 19:20:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568514019; cv=pass; d=google.com; s=arc-20160816; b=lK156ZdU1pEE8+MewxcPyPX/VuVeEZUXh9RDxduXewEP8L9H1CyuHYraokuK2+bXtb KTb1BLdvOmONla/bKY4WdLN6pTiEUiqWrVBZkLKJC833v4xmUbyFO0laA/g1ECrRFv8Y A/Y/nG4QVxEkZhES+M0J7eJSmR5NKayc8sfNN0ljYYJpw+mswBmSDOGJUGviwyHk+d3+ 3OLytOHVyTpUxE+vexmn5b0bHJYkZNvqiDkQNzY9eHAiU0/PoiQ1IqtBKxsi7+gEtn71 0tpgw/aafdCkV69mpi70VTVjiYA/mTJgZSyOGAzjP5rr448KU5G1ys7DoxY3LVUH9d14 nzgg== 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=AZHntNs1Ka+XNc4dKFHkFLet0QX/dlcmtsA+NQ96gEI=; b=DOIUp/DYo9iByEyjCN2fkAQk9tjEun65x9yir/4Ed+U+n1H/2xzaDPMyMOWPt+Bs1F 5ddDcVmxuWkL0Q67pGkMZQNePrz5JnjStLDNbLEU9udwZEh/nf2dlU9H10/OaNm8dPcJ 8YInHo4seflSdPYAgxG2LaTdg8TA6ZiFmsbtl0fUoV2l29Ey0ONl/4/AvYRzK8fOciOc r7QNgBexj3epY7Z+dEWJSGFMUqIGF/IzUS6rVIid0TPwwlMAVjOPV/jI3EjCRfWLwwfG sU6M4iw+ZuGWcz8AVlWHvf6FWroTzt+IRoZI8ZeEV6XBQIo5JIFcYggAqWSSHpKVwlWS JRsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=djpE5fJh; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=SZW8qyeU; 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 w58si20398984edc.312.2019.09.14.19.19.54; Sat, 14 Sep 2019 19:20:19 -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=djpE5fJh; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=SZW8qyeU; 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 S1726738AbfIOAi1 (ORCPT + 99 others); Sat, 14 Sep 2019 20:38:27 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:50768 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbfIOAi0 (ORCPT ); Sat, 14 Sep 2019 20:38:26 -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 x8F0ZE8r015066; Sat, 14 Sep 2019 17:38:00 -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=AZHntNs1Ka+XNc4dKFHkFLet0QX/dlcmtsA+NQ96gEI=; b=djpE5fJhacFxYhiAWXxVUKLDPuh2r+YEOaF3dTHM8f7Gbwe7rAmujRMZrKNfOstEfEB3 q25cyujfpxGKlrqsOVUBWIb4Wz3ls623Z44i8Cf4FHhkIcIYqBrATsfc46ZdV0s6eEfn X4HpOYCTjGCSiXWc4MhdLiSCEWbJMt2aTDc= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2v0wwb1vaw-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 14 Sep 2019 17:38:00 -0700 Received: from ash-exhub103.TheFacebook.com (2620:10d:c0a8:82::c) by ash-exhub101.TheFacebook.com (2620:10d:c0a8:82::e) 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:37:31 -0700 Received: from NAM03-BY2-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_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Sat, 14 Sep 2019 17:37:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JlVQwahAccXdmtr2WfSlC9JiiSzcOYYjJSt8flk4+oEq+23dS/YUzmYpfP92mjduT/TC/eqmFTL5YgZ0DPt05LCZS/kbXVAqnl1vPMra12haZ5xRnAzfbLNLBEYE+zVzst84V7W01ZJK4fDoGMIihdKhc3i8NCXFmODmwsxI8TSsZOJUVNSJXLNAd5pODtVQTOc8qzLvTJDS3I4wZJDcsK/3InEEpNkcusLdG4VCOMPvJRkXIkR2JXUnheD41UCr3EKEomYZBmA2BpEbnmWuUzfMBti6QYTRvrNlz394PV3wFzUnnZ3fXqzRKq7EeeGT8ZsUuWYIRjJPdbyL3+8Iew== 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=AZHntNs1Ka+XNc4dKFHkFLet0QX/dlcmtsA+NQ96gEI=; b=blRUKM0I7av82eMZ68Ht6fgJY/73iMWnOXYjiLE6VTBBSnG2GQnlurLe7y46tVhXkcZJxI5q6ftgY/CnD5PvtHVFXiurKJ35PMPQYFawJWu1oL2GOdGLKeQiuej93A2diiL9+Mzcqi9kvdzfSu890e41ia3OST0W92rWiCCh+rQT7TayDy7mrvqA5Tkw3uiNGSmeNg0N0b5yrYsgualGBCxn6W6t7UrsSFS6M3W6ZtqXqNwqLSpdELqhMFAsiiprteWhFqyWArK8LHuBD0B8hrfMm2L4nWaxFvhDpZ4vLs5RfHWNz0y2gHpMnH/hJEeDFOH1nN8Zop4SIHTY57uv3A== 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=AZHntNs1Ka+XNc4dKFHkFLet0QX/dlcmtsA+NQ96gEI=; b=SZW8qyeU414TEfITypB2TQo8X2nNCKL4hcQNEeF7HZF/wDAhp9rU+2U5WjVjEloE/hbxEnaxvt1Wj90c2nVAPESeW1OSiD2l7ZAe7KkwlKjBL3beqjD0gygfBZLLJ0QW4uXzryggf1itr47/cuT5SMgMp9iWV3ZcCtFqXcP1+Os= 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:37:30 +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:37:29 +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: Re: [RFC v1 06/14] krsi: Implement eBPF operations, attachment and execution Thread-Topic: Re: [RFC v1 06/14] krsi: Implement eBPF operations, attachment and execution Thread-Index: AQHVZ87TGQ2rzc/y1EW6zOg/S4OXiacq9dGAgAD2DoA= Date: Sun, 15 Sep 2019 00:37:29 +0000 Message-ID: References: <20190910115527.5235-1-kpsingh@chromium.org> <20190910115527.5235-7-kpsingh@chromium.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR2201CA0014.namprd22.prod.outlook.com (2603:10b6:301:28::27) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::65fb] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4b06741e-8155-4a65-f0b0-08d73974e386 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:5236; 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: 2LcB5DKBBT81YlJABhELa0sMIJnuhf9GAvGiVn0e0sOyUT7iWgwYG1hHrOe3K9oHiXfa5PMSEQ16xdPtfxn9cfrlijBEI+v9dX23t2CJcx788OOv/eVo3im3Bl8Hsy0l4aHU14rOaDZY2HBAoBNBRHhjGf+jUqKoGs5Q9347kMgsqOgntZin0k/I65uYPBtP1qsyMV3qWWn/+WRfcQZcdMxRLaqkirNurPggWvqE0IyM8G/hNJ+zlNqWdkMTPSvJR8yAGYEruS0rs58HUaj6wZRve6fU8qS9sjh3MpE/z+VkDP65Px6ghBycxYnQBzafO+26+DOLM/KhzRptTM2Y7kVcmSKzmSIIhn5M/YMV3nXaZ0TonxFNvKFJY6x/Fhr+o0uVe72uK653G4Fi7brK+lt+EtfEyAMUbr/2QZnQwcs= Content-Type: text/plain; charset="utf-8" Content-ID: <407AB75E52F631499C4B693B6709784A@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4b06741e-8155-4a65-f0b0-08d73974e386 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2019 00:37:29.6663 (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: xyDuC+OjuTm9Z3wZz62N+SKzjEi6k4rxCF7xl6P7BPHMjwn54JGAhqCHCFHBDMmO 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 priorityscore=1501 impostorscore=0 adultscore=0 malwarescore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909150003 X-FB-Internal: deliver S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