Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp566927ybl; Tue, 7 Jan 2020 11:03:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxvlQURrYlO77SNomwDL7HaN2vHLSkictsP0oaZfTLABbdcphvi8n4tKN9Yxm3iMo2LDP5a X-Received: by 2002:aca:f10:: with SMTP id 16mr663143oip.117.1578423801823; Tue, 07 Jan 2020 11:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578423801; cv=none; d=google.com; s=arc-20160816; b=xejn4/0G8ycRENVgp0lIh0SZWlBSTgw4PkHnfoL+JiN37lR9Y8HQvg90A6oiJgoZSw CK3/N2onH1wMWvSHEcvAncfaRDj8pU2ut1qQ9TOvo5k8NR5gptgvbuEsl767oOAJ3TYq OQtH85Mk9U0H5RUfPvBP3zxotzendQDDJjb+MTR0ZvLy5JLF8zAkIEGUY7gCeWYGqJr8 V8EjC8HVnos2aaBwASkdF0KooWlC5jphGRc/bfQhmLLNsytH6m0zaHVtgbQ3gK656Ppe rsnsgOTSZP1reilUEJ9EC9w5z+Ph/7jZCPhZ3zcZlWo5AUWtT0/GYmuVspNu0LqcezCf zEwg== 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; bh=Pw4lV3jn8v3IWid35UUQG/P/59XgbDjDPwb03bg5qEA=; b=i2oG2jBjFJvoi9F/nLwNjmaewQy/h0kaOluKsaXmpnj4NDP4VfAKpZmVWGEA/4dhI3 aOCW0AzwDpHBhHVYoJI3rPCLNrouOEHXk3Bmo9hwAiI15MDyXPGZaIcYtyZXsc3KFOxx 4X5Kd3WNFNs3ddPnkExcQSCyn0q1pzHwzaEPx7XwKJPspTGPdCa9pMWHomsH1foXz0+s iHd1VHVSBwojoV0F5a+gR6ls4aS9Ml7iXJMHwvmEkn/CpgIPesvWcopr2v63s33hI+ni UFUIfZBuh+jEVv/z9uwEiUKFFzodu05SzH7/TopynQmWV7KSD6vPdhk4avuoeoiloqFp r70w== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si334057otn.281.2020.01.07.11.03.07; Tue, 07 Jan 2020 11:03:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728686AbgAGTBq (ORCPT + 99 others); Tue, 7 Jan 2020 14:01:46 -0500 Received: from mga14.intel.com ([192.55.52.115]:46496 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgAGTBq (ORCPT ); Tue, 7 Jan 2020 14:01:46 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jan 2020 11:01:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,406,1571727600"; d="scan'208";a="223297319" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga003.jf.intel.com with ESMTP; 07 Jan 2020 11:01:45 -0800 Received: from orsmsx112.amr.corp.intel.com ([169.254.3.41]) by ORSMSX109.amr.corp.intel.com ([169.254.11.176]) with mapi id 14.03.0439.000; Tue, 7 Jan 2020 11:01:45 -0800 From: "Edgecombe, Rick P" To: "luto@amacapital.net" CC: "songliubraving@fb.com" , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" , "keescook@chromium.org" , "jeyu@kernel.org" , "ast@kernel.org" , "kuznet@ms2.inr.ac.ru" , "daniel@iogearbox.net" , "mjg59@google.com" , "thgarnie@chromium.org" , "kpsingh@chromium.org" , "linux-security-module@vger.kernel.org" , "x86@kernel.org" , "revest@chromium.org" , "jannh@google.com" , "namit@vmware.com" , "jackmanb@chromium.org" , "kafai@fb.com" , "yhs@fb.com" , "davem@davemloft.net" , "yoshfuji@linux-ipv6.org" , "mhalcrow@google.com" , "andriin@fb.com" Subject: Re: [PATCH bpf-next] bpf: Make trampolines W^X Thread-Topic: [PATCH bpf-next] bpf: Make trampolines W^X Thread-Index: AQHVwpjLpCzVLdPZ5Em9CS0HIZ/iOKfewVwAgAA1aoCAASP/gA== Date: Tue, 7 Jan 2020 19:01:44 +0000 Message-ID: References: <21bf6bb46544eab79e792980f82520f8fbdae9b5.camel@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.54.75.11] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Q0MgTmFkYXYgYW5kIEplc3NpY2EuDQoNCk9uIE1vbiwgMjAyMC0wMS0wNiBhdCAxNTozNiAtMTAw MCwgQW5keSBMdXRvbWlyc2tpIHdyb3RlOg0KPiA+IE9uIEphbiA2LCAyMDIwLCBhdCAxMjoyNSBQ TSwgRWRnZWNvbWJlLCBSaWNrIFAgPHJpY2sucC5lZGdlY29tYmVAaW50ZWwuY29tPg0KPiA+IHdy b3RlOg0KPiA+IA0KPiA+IO+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