Skip to content

NULL pointer deref fix for stm32-dma

Joel Fernandes (Google) dmaengine linux-arm-kernel lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7dmaengine: stm32-dma: threshold manages with bitfield featuredrivers/dma/stm32-dma.c+16 -30 replies
2/7dmaengine: stm32-dma: fix incomplete configuration in cyclic modedrivers/dma/stm32-dma.c+6 -20 replies
3/7dmaengine: stm32-dma: fix typo and reported checkpatch warningsdrivers/dma/stm32-dma.c+6 -50 replies
4/7dmaengine: stm32-dma: Improve memory burst managementdrivers/dma/stm32-dma.c+175 -290 replies
5/7dmaengine: stm32-dma: fix DMA IRQ status handlingdrivers/dma/stm32-dma.c+25 -40 replies
6/7dmaengine: stm32-dma: fix max items per transferdrivers/dma/stm32-dma.c+11 -80 replies
7/7dmaengine: stm32-dma: properly mask irq bitsdrivers/dma/stm32-dma.c+6 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] NULL pointer deref fix for stm32-dma

Hi Greg,

While looking at android-4.14, I found a NULL pointer deref with stm32-dma driver using Coccicheck errors. I found that upstream had a bunch of patches on stm32-dma that have fixed this and other issues, I applied these patches cleanly onto Android 4.14. I believe these should goto stable and flow into Android 4.14 from there, but I haven't tested this since I have no hardware to do so.

Atleast I can say that the coccicheck error below goes away when running:
make coccicheck MODE=report
./drivers/dma/stm32-dma.c:567:18-24: ERROR: chan -> desc is NULL but dereferenced.

Anyway, please consider this series for 4.14 stable, I have CC'd the author and others, thanks.

Pierre Yves MORDRET (7):
dmaengine: stm32-dma: threshold manages with bitfield feature
dmaengine: stm32-dma: fix incomplete configuration in cyclic mode
dmaengine: stm32-dma: fix typo and reported checkpatch warnings
dmaengine: stm32-dma: Improve memory burst management
dmaengine: stm32-dma: fix DMA IRQ status handling
dmaengine: stm32-dma: fix max items per transfer
dmaengine: stm32-dma: properly mask irq bits

 drivers/dma/stm32-dma.c | 287 +++++++++++++++++++++++++++++++++-------
 1 file changed, 240 insertions(+), 47 deletions(-)
Signature · 1 line
2.19.0.605.g01d371f741-goog