1. 17 Feb, 2022 1 commit
  2. 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
  3. 31 Jan, 2022 1 commit
  4. 28 Jan, 2022 2 commits
  5. 26 Jan, 2022 4 commits
  6. 24 Jan, 2022 1 commit
  7. 19 Jan, 2022 3 commits
  8. 07 Jan, 2022 3 commits
  9. 06 Jan, 2022 4 commits
  10. 04 Jan, 2022 1 commit
  11. 23 Dec, 2021 3 commits
  12. 22 Dec, 2021 1 commit
  13. 20 Dec, 2021 1 commit
  14. 15 Dec, 2021 2 commits
  15. 13 Dec, 2021 1 commit
  16. 01 Dec, 2021 3 commits
  17. 29 Nov, 2021 3 commits
  18. 26 Nov, 2021 3 commits
  19. 25 Nov, 2021 2 commits