From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0D65EB64D9 for ; Thu, 29 Jun 2023 03:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbjF2Dxn (ORCPT ); Wed, 28 Jun 2023 23:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231890AbjF2Dxh (ORCPT ); Wed, 28 Jun 2023 23:53:37 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B0C2D51 for ; Wed, 28 Jun 2023 20:53:29 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6b5f362f4beso217412a34.2 for ; Wed, 28 Jun 2023 20:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688010808; x=1690602808; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=F51EaCZBCjjsjVu5ApRgh9kG0gXJ3pj2CcPmr4xvEVA=; b=kzU5jMblv0xz5lzjgtrnn4xxh6hlexJ7oarp6AhiqhBHF0Moc73IE9in1CSO6kbAFW atB3woyHuTcXgQ2uvijtMt1KKQygW5Lwf2mIenqOO3tpZ7ldK90ybnGlmbaWo/caj6D3 pihx+DaOPGKUC5T61KTFucDLEsnntHKx03ilM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688010808; x=1690602808; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=F51EaCZBCjjsjVu5ApRgh9kG0gXJ3pj2CcPmr4xvEVA=; b=jID+o7aUeshK0dZwFnow0WONmr4PTp2X92JtlvdfOmshjMbbDKKYom/i6itU0FwqoY SFlJszH372rdSPS2v4ComIIVTgR6czVI45LfBLzPRa/4nQRE7wGmFsijlaE2/ZS4bIRN cvj3+XHTu8oa4ZFyFwJLAWVGQiCc/AqLBQPG5EPKsoZ3jbWb+QXMqRgZf/KxpFhQqprt SC7+9QL/XrhcvgBCS/PFcXQHeA1AD9hPNI9JP8dqLHLIFEfT+DHRRXEuT1Sa4D67H08B +U5nGYqx3hBQyIze0GWlGozCBTiqWfDZCvHgvxFD19Ln04FH7ZbqzVmPo5z6ZqLwl8a+ H5Yw== X-Gm-Message-State: AC+VfDyhcfdIw4s4rOgWNvPfA9sr7JuPLJuBJfNR/5dM6tWd28QjScca MhrbYQU/5hHvZ7GlBABD6AZLTg== X-Google-Smtp-Source: APBJJlFY5tmOsLx96KPJPQPsk+DLr/hc6W6E39YwYceSOPePO+snjxpcIvS/udSk3tYh/N0Rv0gBZg== X-Received: by 2002:a05:6359:608:b0:134:e8c6:a888 with SMTP id eh8-20020a056359060800b00134e8c6a888mr997521rwb.8.1688010808332; Wed, 28 Jun 2023 20:53:28 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id l187-20020a6391c4000000b00543b4433aa9sm8221454pge.36.2023.06.28.20.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 20:53:27 -0700 (PDT) Date: Wed, 28 Jun 2023 20:53:26 -0700 From: Kees Cook To: 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 , Leon Romanovsky Subject: Re: Build error in crypto/marvell/cesa/cipher.c Message-ID: <202306282051.51D98294F@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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/ -- Kees Cook