Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3094463imu; Sun, 9 Dec 2018 17:12:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UUZkG7k+5awJOmCcWOEj8Sdy6ERdm4JAOlJH0jss2SXZRXo2r0+rclZZ7xUSzRitSH8MzY X-Received: by 2002:a62:59c9:: with SMTP id k70mr10399123pfj.243.1544404346705; Sun, 09 Dec 2018 17:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544404346; cv=none; d=google.com; s=arc-20160816; b=ULZAbvoe6RVRtgavaLzEyyKd/+8bSg1xoG9AnT5/MfNwfCtZ4KWfjXEvP/r0219W68 eUORmC73jQoWII8UmFHOMqBT6vzHyXXAHwwXZlH7KmxhGXCxRcbKiqRXiAOLmiFmU+qJ ud5vdjHeQeP9ZjWmbt1SFMqPcPFMULAUMj54F5MCNnKWJyqK7Zl72mUI2W8VGSKIXFdV pJgIHKOBwgpbv2Q+dd3EQOGSyrBlGda6bAz7icfe85KyIRDU8O3WzH/p7AWrFKflO0YM DFJp3+HJUlsROU9yVdl0fy4FifDdyWAzEM+oHbzzxxImY2SpCvyvwtVfGsgE4K9KZ/DW U0QA== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=iNrA4eGlGX3LHmPNZedTTjxSt42II+phEoXoROiLYjg=; b=TKnZcGQ27qtGYu1xbQtFYt+vCCUlXpcis0c0Vf8SRHya4beQdUl1EMEg38khBzlnTh 1zz1qVLfnT796R6ur9PEaWhEot3gqJeiJ6T7cNE21JHwdl8DpELrdCXX03FMSZMRhua3 d847zRA6EitVY8SBJUHPmkPYBJEeKoknXS/7NAGKuW02XaTu3G1f0uT7gsfEsULhg2bj RT7i0QHcbdFNfUkFrtu1lkhMPdbAK36mSyXpKncv5EO2J4zjNpJXvGcUoBWptRpOolzK XJqUhy9B/JHwlcEGR39mUn/9ODy6oxjehvuZvZguYKS3Zh2UuskEOGNAbuKiHSDKIwPo IVTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=BFVkdtAc; 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=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si8405194pgd.88.2018.12.09.17.12.10; Sun, 09 Dec 2018 17:12:26 -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=@vmware.com header.s=selector1 header.b=BFVkdtAc; 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=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbeLJBGn (ORCPT + 99 others); Sun, 9 Dec 2018 20:06:43 -0500 Received: from mail-eopbgr760088.outbound.protection.outlook.com ([40.107.76.88]:15320 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726255AbeLJBGm (ORCPT ); Sun, 9 Dec 2018 20:06:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iNrA4eGlGX3LHmPNZedTTjxSt42II+phEoXoROiLYjg=; b=BFVkdtAcdzoJrSDr1JzZz1i3wYNa2X5hue0XvHHyow92PU/X0zlo55xYjxjL6tLMZlarfSPYkx2pUazi25hR9cYdtyZw9TWXJ9y95exsGbg/H5B6Lsp+7vqs/WQtcYewkwyASm7YpLc7cVJS3qGxpO/3H0m4MoKdjlMwupnyoP8= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB4741.namprd05.prod.outlook.com (52.135.233.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.12; Mon, 10 Dec 2018 01:06:37 +0000 Received: from BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::9155:fea7:9c0c:68c7]) by BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::9155:fea7:9c0c:68c7%3]) with mapi id 15.20.1425.016; Mon, 10 Dec 2018 01:06:36 +0000 From: Nadav Amit To: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Andy Lutomirski CC: LKML , X86 ML , "H. Peter Anvin" , Borislav Petkov , Dave Hansen , Damian Tometzki , linux-integrity , LSM List Subject: Re: [PATCH v7 00/14] x86/alternative: text_poke() enhancements Thread-Topic: [PATCH v7 00/14] x86/alternative: text_poke() enhancements Thread-Index: AQHUjHfNFAwJWv67fk2Sd9DXTZtwfqVxfPmAgAWzSIA= Date: Mon, 10 Dec 2018 01:06:36 +0000 Message-ID: <5CE7C382-F25F-49B3-A2A5-4E3EA0A221DF@vmware.com> References: <20181205013408.47725-1-namit@vmware.com> <20181206100337.GF13538@hirez.programming.kicks-ass.net> In-Reply-To: <20181206100337.GF13538@hirez.programming.kicks-ass.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=namit@vmware.com; x-originating-ip: [208.91.2.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BYAPR05MB4741;20:f98VYs23fOhKn1Stn8KKEWZ7K31Lbs0lismEW3AQ5+oRJKgaC6XfkzRwzfyj8VeoUd2bEUg+03t9zAdejlHFiIwYsS/0rKMud5UmZSFwsuR8dLDVEDeo+uWnqx813GRkTbXY3BrPzwwE2nru2jZQ4Y/EfQ/nngciHWUuQ5BAPBc= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 9c26e210-7d74-4978-ab87-08d65e3bbbfc x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB4741; x-ms-traffictypediagnostic: BYAPR05MB4741: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231455)(999002)(944501520)(52105112)(3002001)(93006095)(93001095)(10201501046)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:BYAPR05MB4741;BCL:0;PCL:0;RULEID:;SRVR:BYAPR05MB4741; x-forefront-prvs: 08828D20BC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(376002)(396003)(346002)(199004)(189003)(102836004)(5660300001)(305945005)(81166006)(8676002)(7416002)(7736002)(8936002)(53546011)(68736007)(33656002)(81156014)(6506007)(99286004)(316002)(106356001)(110136005)(105586002)(54906003)(36756003)(76176011)(66066001)(186003)(6486002)(26005)(229853002)(6512007)(6436002)(6116002)(3846002)(71200400001)(71190400001)(97736004)(83716004)(82746002)(446003)(25786009)(11346002)(2616005)(86362001)(486006)(478600001)(476003)(256004)(14444005)(6246003)(4326008)(53936002)(2906002)(14454004)(39060400002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB4741;H:BYAPR05MB4776.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: uqx+Zvm4mFnVRxc/gVnazo0yhQS86srR+XtPgO0dyB1EWYrdQjYBY8pjFHfAqKNHCMemxTKIoFt9FOy7sy7jdXa3Nx+iIwrqCzT82NQwemEIgDrB1BVGLINCHZ0n+B9DFjhORLp03rax2PId3B9H90BSuAp/nTc5++Vg6lPFFdWU8M19V1yTw4mOGZNEHWF+/Q8ZXv39snNeM3C6Q/O2MBo6xO6S8QOCyX/oKFIhP5r6X82o2Q7uejMTc/CPXp81SAX0AOB/oPMDiB0hDvbppnz5kmGMUqGI+icUlkYRvMQFJ4hjjyVyBlDpOtrpEifG spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <924F07255CE10D4F9CDD7FF3667E505E@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c26e210-7d74-4978-ab87-08d65e3bbbfc X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2018 01:06:36.3702 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4741 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 6, 2018, at 2:03 AM, Peter Zijlstra wrote: >=20 > On Tue, Dec 04, 2018 at 05:33:54PM -0800, Nadav Amit wrote: >> Which leads me to (b) - the patch-set is big "enough" IMHO. Indeed, >> there are open security issues in the kernel when it comes to W^X. But >> some people would want to use Andy's temporary mm-struct for other uses. >> So additional security hardening may be left for future patches. >=20 > Yes, at the very least we should get the first 7 patches merged, since > they work and clean up the text poking irrespective of all that W^X > munging. >=20 > (also, I think you lost my ACK) Sorry for that. I will add. But first, Thomas, Andy, are you ok with going with the first 7 patches? IIRC, you are the one who asked to add the handling of modules, since it wa= s not clear whether some synchronization is needed after the poking (that is done w/memcpy in this early stage). I can add synchronization if needed until the rest of the series gets in.