Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20340139rwd; Thu, 29 Jun 2023 00:34:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4e3rmIsNVjo2kLSXb9BivgH7ZtS9H5JHMotEPaZJ0md0WLPqL3m17uhxGDSUOd2nED23qj X-Received: by 2002:a05:6a21:6d9c:b0:125:6443:4eb8 with SMTP id wl28-20020a056a216d9c00b0012564434eb8mr27108630pzb.5.1688024040077; Thu, 29 Jun 2023 00:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688024040; cv=none; d=google.com; s=arc-20160816; b=Tk8YRRGCV5rPRCoWtGM/dGDwucVKIQdH/UsQ7bfldP0WEB/EqFL6uVEyyY8l8zdh5/ Zpsrd4ru5TEErg+XWDUH7/Z6s8GoVlu/1tkcsTdB4lnktGxJnlOOt2KVhrDFnL1B0TYb a69WJuQWDPqZpfI9sVYTU9JKwfyufLR961iNr8E/nIfnPxbCu8GTOmnAZMBaD5VI+uCi 9MygTzG3YeiBlDUkINUL2bn/UCtNPaLi7fVqKaS0HSdw5l9hUsFGRrVStcszJbQ8IFwe iLwKA5VFJt/Tzc1qdPWHcRpPOGkc9sNYqH35Pc/aItl0Ogj7nVFT81RiBKR2bsdbeAmp jbLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fq/q7H8aOoCpIt3bQ+hrcHhuNkg0j4+mIg9Dvxz5urA=; fh=5TdKMkBH4RErMXWNKLuU+a1HCa8xqrpDP+sG46x+8lM=; b=q7OzBxGtVwqqs/fgJTKzxaVVBJ+H10qHsZ3WuMQUZ7xyjlhvhduVCFQwSzAXBHaUzn xZou+VBCW3/5aHlAGeBoI6n13VFsYQo8C2d0ccV0ejVv7S2JHqjmCH6EAFitmoadjWo8 j58T5At+zbVaecoHV85K911k9o4wlA1sNjk+ld04N5IApsVngbQX+RPMBYKYwhNuJ5GK 7XhK7TtmwOl/atjxUggsRCw7Z2pGb1DwIm44GjVh2jxwgRBH3XasuorzOWSFkzcrwhmX 2MX9EuH5hNQIjYCqGIm/Vfs6KbcMFsLVDcwgB2pyXv9kBtUfDOYxFkZrSmkEPvbSn322 kvBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NajRoua/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a187-20020a6390c4000000b005526bd0c526si5209298pge.641.2023.06.29.00.33.36; Thu, 29 Jun 2023 00:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NajRoua/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230523AbjF2H2Q (ORCPT + 99 others); Thu, 29 Jun 2023 03:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbjF2H2M (ORCPT ); Thu, 29 Jun 2023 03:28:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E404268A; Thu, 29 Jun 2023 00:28:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BCFEE61475; Thu, 29 Jun 2023 07:28:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64316C433C8; Thu, 29 Jun 2023 07:28:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688023690; bh=YybS3GOlOBIDzkNzWpon+uuGWahmqnaYLL/cihgEKjQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NajRoua/kcVZrw8GbqivoW0UN9nIcAyEavl5YzguvD5nUV6nw04Ksw2ViZ6vQ197E fPil9QKn6COdSFWJYxB2bsuBYJRu96GLv3LnEDd0TpI2/EuAISuhr50aixEj6w4oqa Op2suIG6PO0Rw9g7E/m8cprNmNdttF+ntAG5DgE15Z0NO3569Tjs6+cTsGuSNLDp6l eOuSBNNEL7jMvw0gzduPSdNyuNjqtpGDMS5xgH9mKPbC7h5Yv6dXPtSzUI6gT+InLf PJLxr9gqSc9rSEet/N6+11QTgNCWIp9BFkieMpaPmNtVhPgqppTnIaUlQJnhwJE/8C MuP1M789rX0Kw== Date: Thu, 29 Jun 2023 10:28:05 +0300 From: Leon Romanovsky To: Kees Cook , Linus Torvalds Cc: Boris Brezillon , Arnaud Ebalard , Srujana Challa , Mustafa Ismail , Shiraz Saleem , Herbert Xu , Linux Crypto Mailing List , Linux Kernel Mailing List , Jason Gunthorpe Subject: Re: Build error in crypto/marvell/cesa/cipher.c Message-ID: <20230629072805.GE23952@unreal> References: <202306282051.51D98294F@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202306282051.51D98294F@keescook> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jun 28, 2023 at 08:53:26PM -0700, Kees Cook wrote: > On Wed, Jun 28, 2023 at 08:13:25PM -0700, Linus Torvalds wrote: > > I get a similar error in 'irdma_clr_wqes()' at > > drivers/infiniband/hw/irdma/uk.c:103 (and same thing on line 105). I > > don't see what the right solution there is, but it looks like we have > > > > IRDMA_CQP_WQE_SIZE = 8 > > __le64 elem[IRDMA_CQP_WQE_SIZE]; > > > > and it's doing a 4kB memset to that element. The mistake is not as > > obvious as in the cesa driver. > > I pressed "send" too fast. :) > > This should also already be fixed: > https://lore.kernel.org/all/20230523111859.2197825-1-arnd@kernel.org/ The fix is in latest RDMA PR: https://lore.kernel.org/linux-rdma/ZJzUeFT7lLqEjMJn@nvidia.com/T/#u Arnd Bergmann (1): RDMA/irdma: avoid fortify-string warning in irdma_clr_wqes Thanks > > -- > Kees Cook