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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A6596CD37A7 for ; Fri, 15 Sep 2023 20:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vBg3/kB5IRgdPO2xrjVaYzwE1R+/DfVxAvbpLeZ/IpE=; b=paCyLb/9ybba4/ 9VSBX3pGV9UCJ5wsFSG8FCxuK4QBuY2bnVssDnlUev8ZL0llB6CPyaCXr9FN/ejia3jWLk6WOcG/h HYN1rbWDK5okF6/FNp9Em1JbC3FqaSUgVcpVAcoPcTZ/I3VI4RJb2oXavM8HIABekQOtDhGYiW62v KO9qnQsY42jJCSF6tOV2cyMwUdIuKZzlZy/3c0Q82xxv+vENyFqm/qnHzB663hsy/2vsygscDfcGJ o1/cd9024SnY/Au+Ef61aEIICHUYKdL6OsqqKCaZhqp4ES50p3NPncyS8RF2lOLX5zZRxrXa7J8hh 0f7TSEqnyEpTRo/zsQXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qhF7C-00BIDE-1A; Fri, 15 Sep 2023 20:08:34 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qhF79-00BICr-3B for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 20:08:33 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1c3bd829b86so21710825ad.0 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=lists.infradead.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=J7BJnhZ9u53CHNsxJl9FoeMRaroUlwhHMTZ3iUUwLNt53IIpsZbqxlrj+IizVNj+Cu aYGOaJBWpLFvkxaN5LRXK/iJt4RllQdz0mhybItkNMQRhIDNGD1zUJq+6++5MvvowsPC 65IlqtMDlRvyL1oIxASo7DtaVm0snYp2fcYpk= 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=BxPS8/iOyNnQF9vwSrnAIkKEKhW/XaAricNS1fKi27C3+i69In5B97GR/xTVoj0GVP fRqoVqLv5UjDQBZppPsIfEBHgfz92CuLPwC6Kwseu2wZN+/ES1i7rMV5oCMaqERK5o9C FwVmE0t2iseztIgFxtydjNTxyoYuGqDeAMCz0Uw0GxpSXTynG+lg39jAsE5zNw5OfDuv bFOz+gNe0Xp9AtOJWCj8ruWMMPc6/W07DXMEXjbnjNourCzRhyWN8VMhoL39i9IlHJoj c+I69TlIt25zAmhVemcOa6RLhlF/8gaZuAAgU3bvxgcEdt4aDGuyvpzvl5gExXlip2df n8mw== X-Gm-Message-State: AOJu0YzelfatN5Wh2sTzYH8q+iLXtLIL1QuEC0gTive4/x+K0mqtKRnI dxPgx7NNSCfZZ4cQfsukFW46Mg== 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-Disposition: inline In-Reply-To: <20230817235428.never.111-kees@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_130832_044264_4D3CB377 X-CRM114-Status: GOOD ( 14.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel