Message ID | 20221014100319.5259-1-yekai13@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp99464wrs; Fri, 14 Oct 2022 03:15:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ujXLCa9rItrEoZheouV5uPApffsH9POJlQD/NluFlzSlsKizGF/j88vNu+lf2klMH7tII X-Received: by 2002:a63:ff4f:0:b0:439:61d6:197 with SMTP id s15-20020a63ff4f000000b0043961d60197mr3845084pgk.67.1665742553242; Fri, 14 Oct 2022 03:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665742553; cv=none; d=google.com; s=arc-20160816; b=a364yQVK3lwCz8Js+p/Ig/2Ax4bxcmB8B9+EMr6lNzyyQRm9RRnaCVnSsVJjEafiJH 7ZtraCZZvpjrkwfYQAhOl2cvpYQVQCVwCnDFmTjiDwMHpq4YN54CqfY0MWof/sz88PYX dXfXy6N/Q4Pcih5pTETb7sVb5jl4ZI050ywsQI+4Hi2l1TQjLTM1EW4CD9wED8WHfNCn T+DSpHl599e6sER5U9TXmGfMF1cn4lDg0/twMzXTKI1WcipRoKp1HMHiR6UTgfw6V/n/ lTRS4gplBGFWRNMvXThiezg8qkMIDPwXClO6iK88h1TpXT7oyokEvY1tt3ZOeyEoMFhe hgLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=55Rjb76dsoELhTgnYelHZQX99Kc7LSxiWYxeoihTkik=; b=CQfnybCjotiEwCR+6s+5KpXvGAMAp1FpwUGqpse2PxOiCpj2lmjun4mqtVYT+LFKwB 5P2xgRGu/FxLbfXNTfPPSkoP0ad1Jirq+/v8djgNc466Nt2BcBCMExsOZW5Mqh8B+G9a +2KCEIB0wmTEpyODLhdriMIMG7NJnYdVKJXpq0eSni1mocy4ECBLvTPTGitJ9TKxugBq 3Y6tqw/QQK0cJ6ISLzG5LajfOW8QLsbDnc2XSeZKnrCSv3lTSzJZ8+T7YGknRtDNkh/A mxbZhVVV2CIK94Bs0UWa2u4+j5xMHnawhNqjdM1Z+tc5yYJdl/N6tLEq/FykMDd3qsv7 Ih6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a056a00228d00b0056349604a6bsi2478273pfe.334.2022.10.14.03.15.40; Fri, 14 Oct 2022 03:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbiJNKJq (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 06:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbiJNKJM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 06:09:12 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8EB2181D8B; Fri, 14 Oct 2022 03:09:03 -0700 (PDT) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Mphq04rMtzpW5P; Fri, 14 Oct 2022 18:05:48 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 18:09:01 +0800 Received: from huawei.com (10.67.165.24) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 18:09:01 +0800 From: Kai Ye <yekai13@huawei.com> To: <herbert@gondor.apana.org.au> CC: <linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <wangzhou1@hisilicon.com>, <yekai13@huawei.com> Subject: [PATCH v2 0/3] crypto:hisilicon/qm - some misc-fixes by fuzz test Date: Fri, 14 Oct 2022 10:03:16 +0000 Message-ID: <20221014100319.5259-1-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746655925872964023?= X-GMAIL-MSGID: =?utf-8?q?1746657663423135097?= |
Series |
crypto:hisilicon/qm - some misc-fixes by fuzz test
|
|
Message
yekai (A)
Oct. 14, 2022, 10:03 a.m. UTC
Resolve stack overflow risks for algqos api. Invalid parameter checking is added. And simplify some code. changes v1->v2: - modify a comment. Kai Ye (3): crypto: hisilicon/qm - increase the memory of local variables crypto: hisilicon/qm - add pci bdf number check crypto: hisilicon/qm - delete redundancy check drivers/crypto/hisilicon/qm.c | 43 +++++++++++------------------------ 1 file changed, 13 insertions(+), 30 deletions(-)