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 AE070C46CA1 for ; Fri, 15 Sep 2023 20:10:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237085AbjIOUJo (ORCPT ); Fri, 15 Sep 2023 16:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237272AbjIOUJh (ORCPT ); Fri, 15 Sep 2023 16:09:37 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1D6630FC for ; Fri, 15 Sep 2023 13:08:31 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1bf7423ef3eso21587625ad.3 for ; Fri, 15 Sep 2023 13:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1694808511; x=1695413311; darn=vger.kernel.org; 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=isVDFfcbmknUPWknowT7LS08Cb3UMEcuJeNo2USTgKI=; b=oHfSCuFFJh5f43jjMmzxr2ye9i62r9gUIGZ+ltWgzVvO7QyIamMvsHjlgDy/QDihjg 79fpf7qy4YMzdkdPZDIoZuOmBNHctOy2AE83ufBXOrf+JZSzsMKRnCWi2/R9U89U/dZx oTc457eSKeDC7WtLP5z1+w/Z3k6G8uaV6hEh4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694808511; x=1695413311; 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=isVDFfcbmknUPWknowT7LS08Cb3UMEcuJeNo2USTgKI=; b=ekVdR87HFEyqn5grAkTUWk20ZhDdZSWqm6S2xXbGwqIACnrsAQ9AbTUCt37ocuj9Gj jwgk2gxVgJ8oXF8Gsbb9tTacTi8RRCH/tGZLtWyzQH+urWKa+l4zi3Vou4J7B6mM3s9e 1rDw4DhnLMI26F3UUSCLoBKy+X81HzPwZtCgNV8dlRdfkgokZ+fESdwKurK3ValRsj9j rcrU4+EpsOcYgjr/wiD096DEdcpbalR0m+h1q40QZ/f97QbLEG3cCb6bKyglxwf5K9Up eeVERJDJQ7uIoK6iHmE1vx9gi1FQpodoIQ+R9M6gL8q81AtLrP36gq8c0j2NwaPppoB7 EyUw== X-Gm-Message-State: AOJu0YzyiEj7cJn4LcneWzvrzEXfQPFpMx2NDAHgd4YVMP9CDMXy4l1D E7wKwWPDk89u6v9QtnIb1mzTCg== X-Google-Smtp-Source: AGHT+IFm1+jtAdP9L1K8FAr0YTZKF7Q+zfhuSjHQY9X6olemmW7O/o5ALrmJsBZbi3qT/JSSHdFxlQ== X-Received: by 2002:a17:902:ce85:b0:1bc:5924:2da2 with SMTP id f5-20020a170902ce8500b001bc59242da2mr3104460plg.56.1694808511445; Fri, 15 Sep 2023 13:08:31 -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 a5-20020a1709027d8500b001b896686c78sm3845010plm.66.2023.09.15.13.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 13:08:30 -0700 (PDT) Date: Fri, 15 Sep 2023 13:08:30 -0700 From: Kees Cook To: Vinod Koul Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , Ludovic Desroches , Tudor Ambarus , Lars-Peter Clausen , Zhou Wang , Jie Hai , Andy Gross , Bjorn Andersson , Konrad Dybcio , Green Wan , Orson Zhai , Baolin Wang , Chunyan Zhang , Patrice Chotard , Maxime Coquelin , Alexandre Torgue , Laxman Dewangan , Jon Hunter , Thierry Reding , Peter Ujfalusi , Kunihiko Hayashi , Masami Hiramatsu , Yu Kuai , Greg Kroah-Hartman , Jordy Zomer , Jernej Skrabec , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org Subject: Re: [PATCH 00/21] dmaengine: Annotate with __counted_by Message-ID: <202309151307.F3341BD5A@keescook> References: <20230817235428.never.111-kees@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230817235428.never.111-kees@kernel.org> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Hi, Just a ping on the series... how do these look to you, Vinod? If you want I can carry them in my tree. Please let me know. Thanks! -Kees On Thu, Aug 17, 2023 at 04:58:37PM -0700, Kees Cook wrote: > Hi, > > This annotates several structures with the coming __counted_by attribute > for bounds checking of flexible arrays at run-time. For more details, see > commit dd06e72e68bc ("Compiler Attributes: Add __counted_by macro"). > > Thanks! > > -Kees > > Kees Cook (21): > dmaengine: apple-admac: Annotate struct admac_data with __counted_by > dmaengine: at_hdmac: Annotate struct at_desc with __counted_by > dmaengine: axi-dmac: Annotate struct axi_dmac_desc with __counted_by > dmaengine: fsl-edma: Annotate struct fsl_edma_desc with __counted_by > dmaengine: hisilicon: Annotate struct hisi_dma_dev with __counted_by > dmaengine: moxart-dma: Annotate struct moxart_desc with __counted_by > dmaengine: qcom: bam_dma: Annotate struct bam_async_desc with > __counted_by > dmaengine: sa11x0: Annotate struct sa11x0_dma_desc with __counted_by > dmaengine: sf-pdma: Annotate struct sf_pdma with __counted_by > dmaengine: sprd: Annotate struct sprd_dma_dev with __counted_by > dmaengine: st_fdma: Annotate struct st_fdma_desc with __counted_by > dmaengine: stm32-dma: Annotate struct stm32_dma_desc with __counted_by > dmaengine: stm32-mdma: Annotate struct stm32_mdma_desc with > __counted_by > dmaengine: stm32-mdma: Annotate struct stm32_mdma_device with > __counted_by > dmaengine: tegra: Annotate struct tegra_dma_desc with __counted_by > dmaengine: tegra210-adma: Annotate struct tegra_adma with __counted_by > dmaengine: ti: edma: Annotate struct edma_desc with __counted_by > dmaengine: ti: omap-dma: Annotate struct omap_desc with __counted_by > dmaengine: uniphier-xdmac: Annotate struct uniphier_xdmac_desc with > __counted_by > dmaengine: uniphier-xdmac: Annotate struct uniphier_xdmac_device with > __counted_by > dmaengine: usb-dmac: Annotate struct usb_dmac_desc with __counted_by > > drivers/dma/apple-admac.c | 2 +- > drivers/dma/at_hdmac.c | 2 +- > drivers/dma/dma-axi-dmac.c | 5 ++--- > drivers/dma/fsl-edma-common.h | 2 +- > drivers/dma/hisi_dma.c | 2 +- > drivers/dma/moxart-dma.c | 5 ++--- > drivers/dma/qcom/bam_dma.c | 2 +- > drivers/dma/sa11x0-dma.c | 6 +++--- > drivers/dma/sf-pdma/sf-pdma.h | 2 +- > drivers/dma/sh/usb-dmac.c | 2 +- > drivers/dma/sprd-dma.c | 2 +- > drivers/dma/st_fdma.h | 2 +- > drivers/dma/stm32-dma.c | 11 ++++------- > drivers/dma/stm32-mdma.c | 9 ++++----- > drivers/dma/tegra186-gpc-dma.c | 2 +- > drivers/dma/tegra210-adma.c | 2 +- > drivers/dma/ti/edma.c | 2 +- > drivers/dma/ti/omap-dma.c | 5 ++--- > drivers/dma/uniphier-xdmac.c | 8 ++++---- > 19 files changed, 33 insertions(+), 40 deletions(-) > > -- > 2.34.1 > -- Kees Cook