linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/21] dmaengine: Annotate with __counted_by
@ 2023-08-17 23:58 Kees Cook
  2023-08-17 23:58 ` [PATCH 01/21] dmaengine: apple-admac: Annotate struct admac_data " Kees Cook
                   ` (22 more replies)
  0 siblings, 23 replies; 50+ messages in thread
From: Kees Cook @ 2023-08-17 23:58 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Kees Cook, 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, asahi, linux-arm-kernel, dmaengine, linux-arm-msm,
	linux-stm32, linux-tegra, llvm, linux-hardening

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2023-09-28 23:42 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 23:58 [PATCH 00/21] dmaengine: Annotate with __counted_by Kees Cook
2023-08-17 23:58 ` [PATCH 01/21] dmaengine: apple-admac: Annotate struct admac_data " Kees Cook
2023-08-18  1:22   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 02/21] dmaengine: at_hdmac: Annotate struct at_desc " Kees Cook
2023-08-18  2:14   ` Gustavo A. R. Silva
2023-08-18  9:29   ` Tudor Ambarus
2023-08-17 23:58 ` [PATCH 03/21] dmaengine: axi-dmac: Annotate struct axi_dmac_desc " Kees Cook
2023-08-18  2:14   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 04/21] dmaengine: fsl-edma: Annotate struct fsl_edma_desc " Kees Cook
2023-08-18  1:23   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 05/21] dmaengine: hisilicon: Annotate struct hisi_dma_dev " Kees Cook
2023-08-18  1:23   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 06/21] dmaengine: moxart-dma: Annotate struct moxart_desc " Kees Cook
2023-08-18  1:23   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 07/21] dmaengine: qcom: bam_dma: Annotate struct bam_async_desc " Kees Cook
2023-08-18  1:24   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 08/21] dmaengine: sa11x0: Annotate struct sa11x0_dma_desc " Kees Cook
2023-08-18  1:24   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 09/21] dmaengine: sf-pdma: Annotate struct sf_pdma " Kees Cook
2023-08-18  1:24   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 10/21] dmaengine: sprd: Annotate struct sprd_dma_dev " Kees Cook
2023-08-18  1:24   ` Gustavo A. R. Silva
2023-08-18  7:18   ` Chunyan Zhang
2023-08-17 23:58 ` [PATCH 11/21] dmaengine: st_fdma: Annotate struct st_fdma_desc " Kees Cook
2023-08-18  1:24   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 12/21] dmaengine: stm32-dma: Annotate struct stm32_dma_desc " Kees Cook
2023-08-18  1:25   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 13/21] dmaengine: stm32-mdma: Annotate struct stm32_mdma_desc " Kees Cook
2023-08-18  1:25   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 14/21] dmaengine: stm32-mdma: Annotate struct stm32_mdma_device " Kees Cook
2023-08-18  1:26   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 15/21] dmaengine: tegra: Annotate struct tegra_dma_desc " Kees Cook
2023-08-18  2:15   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 16/21] dmaengine: tegra210-adma: Annotate struct tegra_adma " Kees Cook
2023-08-18  2:15   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 17/21] dmaengine: ti: edma: Annotate struct edma_desc " Kees Cook
2023-08-18  2:15   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 18/21] dmaengine: ti: omap-dma: Annotate struct omap_desc " Kees Cook
2023-08-18  2:15   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 19/21] dmaengine: uniphier-xdmac: Annotate struct uniphier_xdmac_desc " Kees Cook
2023-08-18  2:15   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 20/21] dmaengine: uniphier-xdmac: Annotate struct uniphier_xdmac_device " Kees Cook
2023-08-18  2:16   ` Gustavo A. R. Silva
2023-08-17 23:58 ` [PATCH 21/21] dmaengine: usb-dmac: Annotate struct usb_dmac_desc " Kees Cook
2023-08-18  2:17   ` Gustavo A. R. Silva
2023-09-15 20:08 ` [PATCH 00/21] dmaengine: Annotate " Kees Cook
2023-09-22 17:16   ` Kees Cook
2023-09-28 11:11     ` Vinod Koul
2023-09-28 11:56 ` Vinod Koul
2023-09-28 23:42   ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).