1. 08 Feb, 2022 1 commit
    • Zhou Qingyang's avatar
      spi: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op() · ab382442
      Zhou Qingyang authored
      In zynq_qspi_exec_mem_op(), kzalloc() is directly used in memset(),
      which could lead to a NULL pointer dereference on failure of
      kzalloc().
      
      Fix this bug by adding a check of tmpbuf.
      
      This bug was found by a static analyzer. The analysis employs
      differential checking to identify inconsistent security operations
      (e.g., checks or kfrees) between two code paths and confirms that the
      inconsistent operations are not recovered in the current function or
      the callers, so they constitute bugs.
      
      Note that, as a bug found by static analysis, it can be a false
      positive or hard to trigger. Multiple researchers have cross-reviewed
      the bug.
      
      Builds with CONFIG_SPI_ZYNQ_QSPI=m show no new warnings,
      and our static analyzer no longer warns about this code.
      
      Fixes: 67dca5e5 ("spi: spi-mem: Add support for Zynq QSPI controller")
      Signed-off-by: default avatarZhou Qingyang <zhou1615@umn.edu>
      Link: https://lore.kernel.org/r/20211130172253.203700-1-zhou1615@umn.eduSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      ab382442
  2. 31 Jan, 2022 1 commit
  3. 28 Jan, 2022 2 commits
  4. 26 Jan, 2022 4 commits
  5. 24 Jan, 2022 1 commit
  6. 19 Jan, 2022 3 commits
  7. 07 Jan, 2022 3 commits
  8. 06 Jan, 2022 4 commits
  9. 04 Jan, 2022 1 commit
  10. 23 Dec, 2021 3 commits
  11. 22 Dec, 2021 1 commit
  12. 20 Dec, 2021 1 commit
  13. 15 Dec, 2021 2 commits
  14. 13 Dec, 2021 1 commit
  15. 01 Dec, 2021 3 commits
  16. 29 Nov, 2021 3 commits
  17. 26 Nov, 2021 3 commits
  18. 25 Nov, 2021 2 commits
  19. 24 Nov, 2021 1 commit