Skip to content

dmaengine: Annotate with __counted_by

Kees Cook asahi dmaengine linux-arm-kernel linux-arm-msm linux-hardening linux-tegra lkml llvm 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 28 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/21dmaengine: apple-admac: Annotate struct admac_data with __counted_bydrivers/dma/apple-admac.c+1 -11 reply
2/21dmaengine: at_hdmac: Annotate struct at_desc with __counted_bydrivers/dma/at_hdmac.c+1 -12 replies
3/21dmaengine: axi-dmac: Annotate struct axi_dmac_desc with __counted_bydrivers/dma/dma-axi-dmac.c+2 -31 reply
4/21dmaengine: fsl-edma: Annotate struct fsl_edma_desc with __counted_bydrivers/dma/fsl-edma-common.h+1 -11 reply
5/21dmaengine: hisilicon: Annotate struct hisi_dma_dev with __counted_bydrivers/dma/hisi_dma.c+1 -11 reply
6/21dmaengine: moxart-dma: Annotate struct moxart_desc with __counted_bydrivers/dma/moxart-dma.c+2 -31 reply
7/21dmaengine: qcom: bam_dma: Annotate struct bam_async_desc with __counted_bydrivers/dma/qcom/bam_dma.c+1 -11 reply
8/21dmaengine: sa11x0: Annotate struct sa11x0_dma_desc with __counted_bydrivers/dma/sa11x0-dma.c+3 -31 reply
9/21dmaengine: sf-pdma: Annotate struct sf_pdma with __counted_bydrivers/dma/sf-pdma/sf-pdma.h+1 -11 reply
10/21dmaengine: sprd: Annotate struct sprd_dma_dev with __counted_bydrivers/dma/sprd-dma.c+1 -12 replies
11/21dmaengine: st_fdma: Annotate struct st_fdma_desc with __counted_bydrivers/dma/st_fdma.h+1 -11 reply
12/21dmaengine: stm32-dma: Annotate struct stm32_dma_desc with __counted_bydrivers/dma/stm32-dma.c+4 -71 reply
13/21dmaengine: stm32-mdma: Annotate struct stm32_mdma_desc with __counted_bydrivers/dma/stm32-mdma.c+2 -31 reply
14/21dmaengine: stm32-mdma: Annotate struct stm32_mdma_device with __counted_bydrivers/dma/stm32-mdma.c+2 -21 reply
15/21dmaengine: tegra: Annotate struct tegra_dma_desc with __counted_bydrivers/dma/tegra186-gpc-dma.c+1 -11 reply
16/21dmaengine: tegra210-adma: Annotate struct tegra_adma with __counted_bydrivers/dma/tegra210-adma.c+1 -11 reply
17/21dmaengine: ti: edma: Annotate struct edma_desc with __counted_bydrivers/dma/ti/edma.c+1 -11 reply
18/21dmaengine: ti: omap-dma: Annotate struct omap_desc with __counted_bydrivers/dma/ti/omap-dma.c+2 -31 reply
19/21dmaengine: uniphier-xdmac: Annotate struct uniphier_xdmac_desc with __counted_bydrivers/dma/uniphier-xdmac.c+3 -31 reply
20/21dmaengine: uniphier-xdmac: Annotate struct uniphier_xdmac_device with __counted_bydrivers/dma/uniphier-xdmac.c+1 -11 reply
21/21dmaengine: usb-dmac: Annotate struct usb_dmac_desc with __counted_bydrivers/dma/sh/usb-dmac.c+1 -11 reply

Reviews trailers per patch

All 21 patches have a Reviewed-by or Acked-by.

PatchGustavo A. R. SilvaChunyan ZhangTudor Ambarus
1/21R-b
2/21R-b R-b
3/21R-b
4/21R-b
5/21R-b
6/21R-b
7/21R-b
8/21R-b
9/21R-b
10/21R-b A-b
11/21R-b
12/21R-b
13/21R-b
14/21R-b
15/21R-b
16/21R-b
17/21R-b
18/21R-b
19/21R-b
20/21R-b
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/21] dmaengine: Annotate with __counted_by

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(-)
Signature · 1 line
2.34.1