Message ID | 20221022011746.27197-1-yekai13@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp985093wrr; Fri, 21 Oct 2022 18:27:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6P3HbGmztp+wJgKlk7WCywFSh8vqtjmsyj1/DRm3iPDo1yMtHysFIW/yLdPKu0KjASyNcQ X-Received: by 2002:a17:906:eecb:b0:73c:5c85:142b with SMTP id wu11-20020a170906eecb00b0073c5c85142bmr18172954ejb.433.1666402069642; Fri, 21 Oct 2022 18:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666402069; cv=none; d=google.com; s=arc-20160816; b=PUGc9FamV33gglDT/k2Rai57zdRkm1+GqnHJaMLEezghmDFcFIig7VK8B7s0coL49o CPRjlzJFAdQGp0mJHMpGpaqu8Gjw87dc/ewlTRIHbKFzeDRKk/k87VpDO8z8fT/BURi7 aqvreshEmZ0whuKjit2DLXxfU25xgXInVj5ptXRNqVJeVLyQnxWQggt67BMI54UZGkEi wpdMSV8TQakcqRhlLRzFinXasQK8Ss4h1yx8/3IdK8XLsEmLfNLQFMdDd9W1PWyHcfcZ U8l7BIAUPl6/2+xkWEOeTjk43AAgSgWf5rwtGoUTr8dbVSuIoYk2thHG0JIOf8lzxp5D ppYg== 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=VOS0xgIv54W/SjLMGZuUOoiZ1PaiXF3L8UQMQUcPp4U=; b=LU/+bs/N12a7JcGoGUOohI30tWiRDfPncJEDAmL8EQnBHKD8GW8QCTe86QbT1g3vh1 Dk0PqEcDiaWg5F4DvzgnNQQ3YmwUhQTFKUc0c7vwgskPjkfOxcwQIzeGrR4GSK32ZRXt am3ObMLOb037SNyF2xNXtuTYw1ZpXy8wcL7V1BJPmZNWDc2RuAp6Bzin9WvvzZN8CNFf UKJ8PhnN5JKp+XYXRLzXyajOV21+ZpU3pzKFWm3AlOeNGFuW2PHAytRLj3UgQUSOXHP1 yvTSB2olFK9Mj4RAd+sfLvPQSQ2osvPOh4vDn2S6LNIvSKfIUw5FoUcaf77xDrqh9fNy twcA== 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 dt19-20020a170907729300b0078168566b26si22370993ejc.356.2022.10.21.18.27.25; Fri, 21 Oct 2022 18:27:49 -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 S229761AbiJVBXj (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Fri, 21 Oct 2022 21:23:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiJVBXh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Oct 2022 21:23:37 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CEE2B2E3E; Fri, 21 Oct 2022 18:23:36 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MvNrZ05C1zHvD8; Sat, 22 Oct 2022 09:23:26 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 22 Oct 2022 09:23:35 +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; Sat, 22 Oct 2022 09:23:34 +0800 From: Kai Ye <yekai13@huawei.com> To: <herbert@gondor.apana.org.au> CC: <linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <yekai13@huawei.com> Subject: [PATCH v3 0/3] crypto: hisilicon/qm - some misc-fixes by fuzz test Date: Sat, 22 Oct 2022 01:17:43 +0000 Message-ID: <20221022011746.27197-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: dggems704-chm.china.huawei.com (10.3.19.181) 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?1747349216635742910?= X-GMAIL-MSGID: =?utf-8?q?1747349216635742910?= |
Series |
crypto: hisilicon/qm - some misc-fixes by fuzz test
|
|
Message
yekai (A)
Oct. 22, 2022, 1:17 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. changes v2->v3: - document the stack overflow cause. 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(-)
Comments
On Sat, Oct 22, 2022 at 01:17:43AM +0000, Kai Ye wrote: > Resolve stack overflow risks for algqos api. Invalid parameter checking is > added. And simplify some code. > > changes v1->v2: > - modify a comment. > changes v2->v3: > - document the stack overflow cause. > > 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(-) > > -- > 2.17.1 All applied. Thanks.