Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1108195imu; Thu, 13 Dec 2018 09:27:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UmJK1ANwBcJryp4GrTXqapiWyGY2tvifByiY6rH3/bRNgYI2e+JsQ+tz54oYKY/0V6hVQz X-Received: by 2002:a63:a064:: with SMTP id u36mr22885375pgn.145.1544722049209; Thu, 13 Dec 2018 09:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544722049; cv=none; d=google.com; s=arc-20160816; b=PJaFQ0Kj49TrziBI6jcSUu5+TzX26l14uGocbiEEBLpffiUoSIhswLAarhhP2Gy52X Y57Cnb71xZrriOJnFbo+WlZio69D8lEznf9k7C69dOACeSPJzquoFlgLqWyCOPgdFfHK B4ZY2zDHeL4n13xv6HPy0UidnkYNGs+YjDcpFDhUeJhsVR7fBK3ZAs4wWCkBkT7sGdBq GXeQjFw9X3iuMT+mk8FoJR+u+hHna8ixREXSUhb3Fz683r/qXumD3djpVX2hHZdrYRBX 0h0BtBeJxIt0zJVt58i4Aj9td/GdpjxjvuzJS3A/1COA6bSoCPetBRk1llPEvDy0ZQOi Vb2g== 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=vy7dk4Ci33dsQMZmfe9GmrGmqU0oas8j4+wBEDAswfk=; b=z42lUX6jsaP6Wm6kz4q9j7M3zG3XRh3QncgkrKUdqK/E7GsIYP/mpnTQFXCPpU004F x4x3yh4qWJcUT8X/z4uyk/6pM/KW/q3yhppCTK2W/X/ld3bagkNcvUqCYx/0VGriCAtH NiaAj+muBgTDCl1biY1D7O2/9gn4A800eHhNgDVa9ePszti8Y5HulRGV4ks0P0Zs0BK8 PLRmsOPECRLdnjzRs5+cL48wS4oOGo29msG21zvDsl+MwvLNUnW8abh9WGjcyOcIwwTm ONFoT0fe/+GzKSxpUhaSRBE2JrbSfGAWqlzYwEEJ/GC42GEXPFfH0ovQ8b7vvd2giio7 yyWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=jI90+GCI; 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 e17si1865020pgj.142.2018.12.13.09.27.14; Thu, 13 Dec 2018 09:27:29 -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=jI90+GCI; 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 S1729821AbeLMRZS (ORCPT + 99 others); Thu, 13 Dec 2018 12:25:18 -0500 Received: from mail-eopbgr800080.outbound.protection.outlook.com ([40.107.80.80]:9680 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728123AbeLMRZS (ORCPT ); Thu, 13 Dec 2018 12:25:18 -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=vy7dk4Ci33dsQMZmfe9GmrGmqU0oas8j4+wBEDAswfk=; b=jI90+GCIkOu7x3VV2nxmKAAnM5+PFRYcjIHwWkUpYUkgQMLAm/sEfD9c2wvR0mQTf3SteY1pCkglYTTnH0PJtp6nMGIC0Yg5Nh4tW05CvmksNONTsJLjKVURvECKgrPf3YB08H2jhulAbbmwjFP/dpakdHvHxqTU3OF8Vmqh288= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB4504.namprd05.prod.outlook.com (52.135.203.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.9; Thu, 13 Dec 2018 17:25:12 +0000 Received: from BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::9155:fea7:9c0c:68c7]) by BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::9155:fea7:9c0c:68c7%4]) with mapi id 15.20.1446.006; Thu, 13 Dec 2018 17:25:12 +0000 From: Nadav Amit To: Jessica Yu CC: Ingo Molnar , LKML , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Borislav Petkov , Andy Lutomirski , Dave Hansen , Peter Zijlstra , Damian Tometzki , linux-integrity , LSM List , Rick P Edgecombe , Will Deacon , Andrea Parri Subject: Re: [PATCH v7 13/14] module: Do not set nx for module memory before freeing Thread-Topic: [PATCH v7 13/14] module: Do not set nx for module memory before freeing Thread-Index: AQHUjHgCm5HQo9wG+kmVhMEM5+sZ86V8wjGAgAA2eYA= Date: Thu, 13 Dec 2018 17:25:12 +0000 Message-ID: <634A88B1-B41C-466C-A98A-DB85065A4BA9@vmware.com> References: <20181205013408.47725-1-namit@vmware.com> <20181205013408.47725-14-namit@vmware.com> <20181213141013.GA16819@linux-8ccs> In-Reply-To: <20181213141013.GA16819@linux-8ccs> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [208.91.2.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BYAPR05MB4504;20:kDlNL5E3bOrL9R8FFlgmQcz+fJt5M6B/O91Da5w7N0mPkbgOzoCi1hv2FfDgI4mer+4EqmZG6tXQe+OiCvi1EYRfpieIEFjXv3sifkvi4+fWwjqM4hfpdLzUU9m0JSSW97gA2Sjr4aEnJmsxk2SstI5A63Q5z/yxYgLJcafrJjA= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 597c4f57-c881-4815-c722-08d6611ff09c x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB4504; x-ms-traffictypediagnostic: BYAPR05MB4504: authentication-results: spf=none (sender IP is ) smtp.mailfrom=namit@vmware.com; x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(3002001)(148016)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:BYAPR05MB4504;BCL:0;PCL:0;RULEID:;SRVR:BYAPR05MB4504; x-forefront-prvs: 088552DE73 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(39860400002)(136003)(396003)(376002)(54534003)(189003)(199004)(14454004)(25786009)(6506007)(966005)(76176011)(36756003)(102836004)(68736007)(5660300001)(99286004)(105586002)(106356001)(478600001)(33656002)(3846002)(4326008)(6116002)(53546011)(66066001)(39060400002)(6486002)(81156014)(81166006)(8676002)(229853002)(6436002)(305945005)(8936002)(7736002)(54906003)(7416002)(316002)(2906002)(6246003)(6916009)(53936002)(6512007)(6306002)(476003)(83716004)(11346002)(446003)(86362001)(186003)(2616005)(71190400001)(71200400001)(486006)(97736004)(26005)(82746002)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB4504;H:BYAPR05MB4776.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 0XrPyQsp+MmgJwLJEl4aIuImjgq8TAcpH2JID2OfagC80BXvUGxnwXs/owY9YnPlfiXRnbUFqDPJPI5rhz5GIqCif1chxuV3K36igLGrEK6JfueUF9eU5eHgvWNaBOjfXq0T7kqzRD3ubbGDqYE3NZetkIEK3SVQKLRRw9qQqPRy3kMzth1dXbIHZeb7WgUJKNJdD/n1UgrWxh7o3ROEjxcIT/jftXXQJltN+1ii4L3tMa7+B/b32CyU+DW6BsPf7pfQdBhzRMx4jDN73EivYWFmXZmJvi8vYrWVfdbF5hmgDd9xxoV4UwZcUD09Mrrs spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <24DC15464DCDEC438142E80136836914@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 597c4f57-c881-4815-c722-08d6611ff09c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2018 17:25:12.6299 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4504 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBPbiBEZWMgMTMsIDIwMTgsIGF0IDY6MTAgQU0sIEplc3NpY2EgWXUgPGpleXVAa2VybmVsLm9y Zz4gd3JvdGU6DQo+IA0KPiArKysgTmFkYXYgQW1pdCBbMDQvMTIvMTggMTc6MzQgLTA4MDBdOg0K Pj4gV2hlbiBtb2R1bGUg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