Message ID | 1477578591-28924-9-git-send-email-aryabinin@virtuozzo.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC8B560588 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 28 Oct 2016 00:07:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA76F2A401 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 28 Oct 2016 00:07:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEF262A402; Fri, 28 Oct 2016 00:07:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66FE72A400 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 28 Oct 2016 00:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942993AbcJ1AHE (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Thu, 27 Oct 2016 20:07:04 -0400 Received: from mail-ve1eur01on0102.outbound.protection.outlook.com ([104.47.1.102]:21536 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936603AbcJ1AG5 (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Thu, 27 Oct 2016 20:06:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8iIhzsoNuQHwaIUszTkpwdejNA/LyF79b7rGYUtmBeA=; b=BMPdHA+ldySCE27wXNxTAL0CGxzEbyirCxruo+4f+7Kvrw4wRF2hjQ35H/2JRNxCioMeTw4zCIjd9fR+RYFWLmbVDOZjr2vLNENLV1Xi6+4K9VlhtONq6FZ9PwHYhG0uBJ8MffXiUmq8WHdkxlUn9Qvg3+fVkdhFlpV6OYdpd80= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from localhost.sw.ru (195.214.232.10) by HE1PR0802MB2555.eurprd08.prod.outlook.com (10.175.35.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12; Thu, 27 Oct 2016 14:29:54 +0000 From: Andrey Ryabinin <aryabinin@virtuozzo.com> To: Willy Tarreau <w@1wt.eu>, <stable@vger.kernel.org> CC: Herbert Xu <herbert@gondor.apana.org.au>, <linux-crypto@vger.kernel.org>, Andrey Ryabinin <aryabinin@virtuozzo.com> Subject: [PATCH stable 3.10.y 08/18] crypto: algif_skcipher - Add key check exception for cipher_null Date: Thu, 27 Oct 2016 17:29:41 +0300 Message-ID: <1477578591-28924-9-git-send-email-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1477578591-28924-1-git-send-email-aryabinin@virtuozzo.com> References: <1477578591-28924-1-git-send-email-aryabinin@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AM4PR0501CA0035.eurprd05.prod.outlook.com (10.167.83.173) To HE1PR0802MB2555.eurprd08.prod.outlook.com (10.175.35.148) X-MS-Office365-Filtering-Correlation-Id: 3e1db580-4462-478f-f03c-08d3fe75b866 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 2:7ChTSL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u0m20GwEhjbY1KRMRut6tjeO0mcUNl68TRW3oYlrZjtFsrjGSr7uGc0pab57fYCcho2BKXdg7tvNzHR399CrTday2g5U5lF9SeFVfSlJYnb3lljseQnvNT4DrAYS3tS3y4s+H2Ga4Q/trd6Ec3Q+zzDoHItJUe X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 31:qw/NagjMlhCHnLDMCZcGAkbZ9oPLViZMi0ksdlcV5YkbBOXH/3UDgFWG3C9Ygr5oDLlawtUEIX5eeU2bo0+Owm6A6cXNOIh9oTsbX30vacnIL+sE0k7QejCchBSOv+sLIRYNSJrsiKeEl3hy5AWS6rIOeRGJxPcV1/D8EuP32o661y9xXdJqOdCaCc0K1Q9yOZWHsaMmI/MN9AOTLiw+8kiUG8if9Oa5gYxit3ypT6f1iBET+/YMzoww8R18xeue; 4:7BIITD1dBDPCqCs5AuWLIPP1EuOdxfionh1u8pGcxxahkAHnhwhzEwZUYYwAb1JJlC5HSHq1QXqJ+E8PxdtZfYWwlGJEDkSJ3+XUg0MNKsKhhynUY/m0Ia/1NbEoQIOyVlzbWHpI/SKkXW2OdqcMfLoJ3Ztqm97jE2fNSdDG5Mf/YmcelYWacPYGX7j9ynaFZ0fZX/nea8Ii/I3Rz8pW03X3iTTqvXzqkM0X0uCI/maupAA4qhljRbdnrbI/16WNJWzjTAvmmsHfj+OE7lR3VX/JCbpTIraMt96ziCvPRYHnpZnhc/yAYnMr6PMXhCV+oOSlMlljNCen87GnkR8lgilmpVPCfAjgIjI1gA28v3yvbaDWjODUJOEQJR7BfqPO+OrgazZJHmc7I/b+d36cVWu2ztdrcIzte6mM9NVfPdqPPq0HXQ44JsH7fAEkrFh8CwshHWweV94WHQ8hBsaYFT6lls6dxYnspT930p8poAE= X-Microsoft-Antispam-PRVS: <HE1PR0802MB255566C3A85C5D1C55E72A09B0AA0@HE1PR0802MB2555.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6043046)(6042046); SRVR:HE1PR0802MB2555; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0802MB2555; X-Forefront-PRVS: 0108A997B2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(2906002)(81166006)(53416004)(76506005)(8676002)(81156014)(42186005)(305945005)(7846002)(76176999)(48376002)(19580395003)(50986999)(7736002)(19580405001)(2950100002)(105586002)(86362001)(575784001)(229853001)(586003)(6666003)(6116002)(3846002)(4001430100002)(33646002)(50466002)(36756003)(4326007)(69596002)(189998001)(77096005)(47776003)(5001770100001)(66066001)(107886002)(92566002)(5660300001)(50226002)(5003940100001)(101416001)(68736007)(106356001)(97736004)(781001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0802MB2555; H:localhost.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0802MB2555; 23:PjTOCoZU3JTtZz/Kqc4gZN6o7XoM6Af5KdDogvf?= =?us-ascii?Q?60OEx/eL+eAZt2SFR0FfcCIL32TnrsMRqIajH3Waa85KPGzUIzDGWn4tXZqa?= =?us-ascii?Q?BWvCzhlg875y6sy+FvL0l8j7N20qlJbccO8tR904hTXI71RcXgkCMrQIGCPG?= =?us-ascii?Q?KaWNWP/F9nhUtQgdmhCPd8Cu99//twQYskOvQBNJBRRMzkFxn6wCEVXSWAJF?= =?us-ascii?Q?mAkFwFg+JSJfeJTAfi4/GGCWrEuOVU0G+2pVdfFWs5GVRk7djkmInb4W/rrn?= =?us-ascii?Q?IpGgd+bMTthqFipttjX0qzVgNeJplU0COL8Uh09yd/aoJCe/35siXz5IaVPM?= =?us-ascii?Q?ypQ8s63wAUf6BuJS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TRtgCCJ7k3MJpvKkxoCaIhKMu49fS05yFxCxbcAYycMhS8Ccw73oPVyGefAenqYFGlueoZwukngfISlwUb8RrBLPYj5rX5VELUE/AwfAsPb4g0HdB4upPM=; 20:DcdkAZ8x+Y/qcyICkDTFWz8Aiix53e65/vC8czon/Uw293tWr+jMv0h8pzjszb0RMhIlXCcvXwwudSWQqd7oLYeZRafauRrxYCJdvWsS//5UTgO6YPe+QjsFvlbY2BDuXhbLAGcSTDC/jU2tNpYA2GdNqZVPd4/jPLldJWc3yjI= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 14:29:54.2239 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2555 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index db5f0f0..4677a45 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -759,7 +759,7 @@ static int skcipher_accept_parent(void *private, struct sock *sk) { struct skcipher_tfm *tfm = private; - if (!tfm->has_key) + if (!tfm->has_key && crypto_ablkcipher_has_setkey(tfm->skcipher)) return -ENOKEY; return skcipher_accept_parent_common(private, sk);