Received: by 10.223.176.5 with SMTP id f5csp802141wra; Sat, 3 Feb 2018 10:36:43 -0800 (PST) X-Google-Smtp-Source: AH8x227L2h6f6J5ChG0JPCJunK72SS3PkR82WgaF2Q8PAh4/bvTX/Xd7NJ1h9lSBCDoP1ajt7RV6 X-Received: by 2002:a17:902:a617:: with SMTP id u23-v6mr18809164plq.201.1517683003513; Sat, 03 Feb 2018 10:36:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517683003; cv=none; d=google.com; s=arc-20160816; b=yMVL9xhF/cREg8jFuecGJlEakDNGlFPkLHB3FyeUndX9aYPqX20VyYatA1PGnCwsYs /erceKtyUfbkc4J4WP2Lm6XGZ1Bz6AAXXlcQ1S076dOAvsTDXVSt7N89gaki9xJjl72z bGXVLqkVRwTDTxjYjBOUnkDaPm5/jMXDJOZCXxTT6KhLTnDq7SE59rxhyx1ALzYk3HBy sYbEwy/At3+bdkTLCUJQFuV5Zb73cIsF/qJHCGx+I1bC4XMDq5zahtah9W8a1Op26jOe JzAR4HyLB2E0fcHYwLFwnq9DQZxv1e8IH5BDq+29JgMf8EcKyEqgsMbIxcBebd5tUjVX a+FQ== 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 :arc-authentication-results; bh=tqVBj47PxHnZCKQt/3amH/TISs+HkhjXHORSSqjJRjQ=; b=VU8pWIBSVggTj4iIo0RZAOYX/BWcBCnuvomhfuwCPkWmG4LXlNv1pVrOJF02mkchU4 WO8u0TEPiJsBWg1X8knILjElU7TBg4vGcge2EbqIHldkG09NbIdMocFYvvMfJuPg0N2N WJjM+4hn4Rz4PpR/4qwBQyeYa1FyMZJuOD5QZi/oQNkzp5PknVOvalk0akBn9p7bxoNL NjP8fePw9rqOHw7wdyXVUEiQeFYtFXKI6QiJx8Gv0TA+fT5uN50GwvAz5Anr5jfhYpeY FdjCQnMzquAR1tzQSwcEb9EZqxZdjY3MZPeZJV306+oG6+q3wy58NRosVubmbWFwWnKo FQBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=USnZBK9z; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si4026177pff.230.2018.02.03.10.36.29; Sat, 03 Feb 2018 10:36:43 -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=@microsoft.com header.s=selector1 header.b=USnZBK9z; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754775AbeBCSfT (ORCPT + 99 others); Sat, 3 Feb 2018 13:35:19 -0500 Received: from mail-dm3nam03on0113.outbound.protection.outlook.com ([104.47.41.113]:19232 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753303AbeBCSEP (ORCPT ); Sat, 3 Feb 2018 13:04:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tqVBj47PxHnZCKQt/3amH/TISs+HkhjXHORSSqjJRjQ=; b=USnZBK9zNClE9xmSF6R27JN56UPdINAQN8bZSz3O2s3/3NQyR6DeuOkyjWrqUudCvtFZQOi90BnbawWGczgL76bz4KLNpyQl+0coznVAFYposVdHJXCCL1Ii8JisLaBpPy1WfbubL92ABfbvNItKt9G3lnEjCFt6LcsCb2my6L0= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1092.namprd21.prod.outlook.com (52.132.24.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.4; Sat, 3 Feb 2018 18:01:30 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:01:30 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: =?utf-8?B?QW50b2luZSBUw6luYXJ0?= , Herbert Xu , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 057/110] crypto: inside-secure - fix request allocations in invalidation path Thread-Topic: [PATCH AUTOSEL for 4.14 057/110] crypto: inside-secure - fix request allocations in invalidation path Thread-Index: AQHTnRjwtnhusJ90LUuQi/f6SqzZcg== Date: Sat, 3 Feb 2018 18:00:55 +0000 Message-ID: <20180203180015.29073-57-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1092;7:sEuQBrL85KE2HGfJgn/ReCW78LkfxLc12tttIqM4EXU6R5uCBkee6WjrLSX4n2yQwxOXu/Eoqntly70SVsy0ubCb5UyPoN6G/eDlT7p+y+It4va50c2PCT3sHKpYJQEhvIKuKI+yE7MmeBFUZU4kjeUNS6A6xNKSdB2hxzY69XEM1jmas0elGojTPCYveQvfO5NhVhFg42/9P8ZRZG0QkcymkU7VjRcFBPQvrnv+M/jm5lX/c5tnzUgIIaE9CUyX x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 1343942b-8cb7-4bb7-5c37-08d56b302764 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1092; x-ms-traffictypediagnostic: BL0PR2101MB1092: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(58145275503218); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL0PR2101MB1092;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1092; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(376002)(346002)(396003)(366004)(189003)(199004)(3280700002)(14454004)(3660700001)(105586002)(3846002)(6666003)(22452003)(6116002)(99286004)(305945005)(7736002)(2950100002)(66066001)(478600001)(54906003)(110136005)(68736007)(316002)(86362001)(106356001)(186003)(26005)(59450400001)(6506007)(76176011)(6346003)(10090500001)(575784001)(102836004)(6436002)(4326008)(8936002)(2501003)(53936002)(86612001)(2900100001)(6486002)(2906002)(6512007)(25786009)(97736004)(72206003)(1076002)(107886003)(36756003)(5660300001)(5250100002)(8676002)(81156014)(81166006)(10290500003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1092;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: PG8KLfm43nsHmRqlSk2jONVp6wx9HH+wOrEROXsf8w5kzO76GlQ/dcF5xF2+OuQAWgPMql+G9cwZZ9lhqAs4ZQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1343942b-8cb7-4bb7-5c37-08d56b302764 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:55.9565 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1092 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQW50b2luZSBUw6luYXJ0IDxhbnRvaW5lLnRlbmFydEBmcmVlLWVsZWN0cm9ucy5jb20+ DQoNClsgVXBzdHJlYW0gY29tbWl0IDdjYWQyZmFiZDU2OTFkYmIxNzc2Mjg3N2Q0ZTdmMjM2ZmU0 YmMxODEgXQ0KDQpUaGlzIHBhdGNoIG1ha2VzIHVzZSBvZiB0aGUgU0tDSVBIRVJfUkVRVUVTVF9P Tl9TVEFDSyBhbmQNCkFIQVNIX1JFUVVFU1RfT05fU1RBQ0sgaGVscGVycyB0byBhbGxvY2F0ZSBl bm91Z2ggbWVtb3J5IHRvIGNvbnRhaW4gYm90aA0KdGhlIGNyeXB0byByZXF1ZXN0IHN0cnVjdHVy ZXMgYW5kIHRoZWlyIGVtYmVkZ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