Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2418110ybe; Sat, 14 Sep 2019 14:41:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQESqn2B1UNfhoCC1Fug2AWW5n2u2uKQ8i9HTGH9/TL6s2E4TLV6NvY2KLgYrDKlgJXZtZ X-Received: by 2002:a05:6402:1699:: with SMTP id a25mr5093018edv.91.1568497295590; Sat, 14 Sep 2019 14:41:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568497295; cv=pass; d=google.com; s=arc-20160816; b=SyV41XhiLYQOge1GnnpfITFy/MAq2FYCg5AdprJco6HaCwVSGqdHuVVebugdN1WOnS ZpN+Q3al65St0Q/uGgswE1GTMxzQqVLQR31Eyo083y5NtY9jxeRTUOzsF5byJl+cPVkF /JBAFPhtOaG3HwkkGBFKLEENmZIUYME3B6lMkkyBNkai0ZTp63XrMnpOgbK6lxK4YM85 nIa0tPVX8zs1hxmZ/BnvpEhkelpB7E/m0F8xKY0+z+cVqP5NEfWzUKoaznlY3ONPZD7G Mg2K1wLIpAltNHIohLbzvToD0itFoCrhHUUb46tXJb9JYCs4giOEErdGH38xT09IMr0P jxCg== 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=//rs23v68AU+/066WYhVeh/dqtB65y9ED64ytLwjE1k=; b=u8gvf0FtSIvE3BTkZhYp+xsl3nVJRpy7YXRRSOVfo7EeAsowXFsQfFuTspQsbUg8Ol Zo5Mb5hUOPPMSvLHd5ziH1jKFj3J2IjTYgHVbxIB/coKU8oMNewNQBr/LzT9VKMgQl+u 03bU27ctE3VCgOxGB6Lf3wLngBKJWWHlLhvfw22WXKwlmCWgaWnb5ZrAzApqvwCPz6A+ 0krfHK3iQvnkH2bSwBr/omnObAXjtiB9jCAyptCq405f6MKEjXj1AZRxzi1xZMvlNi+F zY/V9Rc47afgzHtOZVNmJvCAqmQNhilVQLXAblkQHARHT5EHB+JZqXmTiv1eQ8A5mWWc EkJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=iTEQ8WM+; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=bulH4+8V; 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 j12si17691031edn.348.2019.09.14.14.41.09; Sat, 14 Sep 2019 14:41:35 -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=iTEQ8WM+; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=bulH4+8V; 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 S1728180AbfINQ5r (ORCPT + 99 others); Sat, 14 Sep 2019 12:57:47 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:52604 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727737AbfINQ5r (ORCPT ); Sat, 14 Sep 2019 12:57:47 -0400 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8EGs9UY017153; Sat, 14 Sep 2019 09:57:09 -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=//rs23v68AU+/066WYhVeh/dqtB65y9ED64ytLwjE1k=; b=iTEQ8WM+t6vocR5IyyTUdADttLw8/AFHtOKB5Jh+xB4qgr0Cv1oyDlNsMRT6S1pnz/Go 2X+C5e2QhdSY3ovpbaAnxIgjin+75MfuShLIzJy/tAN34B2qIn0inMQMPFgl3kd6gvQS /RoU30DVJruqqfrfqw3Gbm9iC+idKXc72jQ= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2v0x1f0u11-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 14 Sep 2019 09:57:08 -0700 Received: from ash-exhub101.TheFacebook.com (2620:10d:c0a8:82::e) by ash-exhub202.TheFacebook.com (2620:10d:c0a8:83::6) 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 09:57:07 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sat, 14 Sep 2019 09:57:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U1QJuR/d1h9SU/iMIiKcM8XnwW3YhFlfWYVTWcnxXgNOH/8FytZ26GKnxbqaPe0ww3B4w/eD216+B/GaUNNXRtd2GSakH9zYIxuEz9jPoDMJuEYXo7fGYoLc1dKOFjMNFH3tXghLiVPOz8IK8cmgWV42eo4BZQi/psQNwWbgDvNXsBhC1cN+w92+opW/UYXVaFS1v4TZIXCBXp9lEZdRdWilFKVUtn21di6EENrksYPTu2rrsWs0tBlaOIx+qC0JiSnWwFwJI7hH6o4EULnTWZ8dKCKNGDYn8BcB4pVwFLswEpOsawSjvMqGiF3hhMF1VO0B6QA0lNcsObyARXMzew== 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=//rs23v68AU+/066WYhVeh/dqtB65y9ED64ytLwjE1k=; b=BGUKjpV8EtsPyPBgQVhtXhZ8j3jbPZqp8b5kGVIpZh80A0I27HB0wI7Yna3RnYixNpggKFeYnjtnmZzd8Z3n5WGcU0gA1Eh/yir/sLPywXjrjjv7v+itvq8ULqCEs5wARZeS9pmdTFGOC7hF/zYz3O/m+mkkvtcNvuEMJksXkbkRXcGS/8WdnDVkal3/2ZYsUniIUNZaZXKf34DZI2f4LpPR6xts+lRXvBr01Qh/rvARCSD5Ze3Z3Lo6Ck7t3+LhNfg0YoR55Lb+j/FewpDaPOZYiugJRZS6IQFkwonHj5oJOVxsU5aAvhzx+x/CJSS7B9e2KU44YkdQ/k7E/gIbbw== 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=//rs23v68AU+/066WYhVeh/dqtB65y9ED64ytLwjE1k=; b=bulH4+8Vex+OCHpMUWxgXKouzPQBgF4E6p3sdejcSegenYQDYe78nxW5oQyUYmHhzJpKd0huIyJ8DlOlcRL8ZVvax1SFxFPCp9l/jzJWv3Z70KcD0a1jKXEc78HqeQQESzmpDUSxXhC/6ibBohYC2ouiQOPyMYo91iabLenqqX0= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.60.27) by BYAPR15MB2567.namprd15.prod.outlook.com (20.179.155.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.20; Sat, 14 Sep 2019 16:56:52 +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; Sat, 14 Sep 2019 16:56:52 +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 06/14] krsi: Implement eBPF operations, attachment and execution Thread-Topic: [RFC v1 06/14] krsi: Implement eBPF operations, attachment and execution Thread-Index: AQHVZ87TGQ2rzc/y1EW6zOg/S4OXiacraymA Date: Sat, 14 Sep 2019 16:56:52 +0000 Message-ID: References: <20190910115527.5235-1-kpsingh@chromium.org> <20190910115527.5235-7-kpsingh@chromium.org> In-Reply-To: <20190910115527.5235-7-kpsingh@chromium.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR07CA0063.namprd07.prod.outlook.com (2603:10b6:100::31) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::9917] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 49438504-b66e-4d44-5912-08d739348a54 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR15MB2567; x-ms-traffictypediagnostic: BYAPR15MB2567: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 01604FB62B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(376002)(396003)(366004)(39860400002)(346002)(189003)(199004)(11346002)(446003)(2616005)(386003)(7736002)(86362001)(305945005)(25786009)(7416002)(66446008)(64756008)(6116002)(36756003)(5660300002)(4326008)(2906002)(476003)(6512007)(256004)(14444005)(5024004)(53936002)(6246003)(66946007)(6436002)(478600001)(6486002)(486006)(52116002)(14454004)(76176011)(53546011)(102836004)(6506007)(71200400001)(71190400001)(8676002)(31686004)(229853002)(66556008)(66476007)(2501003)(99286004)(31696002)(81156014)(81166006)(8936002)(110136005)(316002)(54906003)(2201001)(186003)(46003);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2567;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: Yo5WArAKKJoqAgnoMUvgwD/+IXOCuUJrG5IpNx71mzL7J9rgnbC1h8R22SouxTH+fbFREPTV69Kf43RfYnZNWAfKk3MISTrEfeqXzenG1iY/7XBEOnDK5QfnQsMizb99NOa2LF1wBRUTxkV+wrwlVd/0NjgjmWIwtm/rcyvwz/zPmiCgIrwTUKn3Pn/FyyvZHz3M6Bi6UWPiH6Z1lzPUgR1pXeihhWxZMaE2IGI1DiBur6YQhi2kqBqFgntrJlSuOjb9VRboaELcJo8dqq6icV8TgvBMukLucivmVfED1IgW5VBtnoQRcaFgLucZnqhtA1IdoOq/qZNPsgk//rIOWt9jkIKyhPbT6ClC8Y1m3p8X34dJDANBJs9kSjx9oBYXHU4N9ckTgSttBRBxNzA1r0Cw2G8Nb3X+kaE9Z7Zl9AU= Content-Type: text/plain; charset="utf-8" Content-ID: <2D51B14C07C1A248A46CAA00C4FB945A@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 49438504-b66e-4d44-5912-08d739348a54 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2019 16:56:52.0509 (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: xBQYrRhzPpC+NXviZVG+qWNoDkwxUJM3ezRXts6gNzEb3rMP3MIkK2M7W2aKHFGl X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2567 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-14_05:2019-09-11,2019-09-14 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 mlxscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909140180 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.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