zephyr/drivers/spi
Leandro Pereira 845ac3ef46 drivers: spi: Fix TOCTOU while transceiving SPI messages
To avoid another thread from modifying the spi_buf_set and spi_config
structures passed to the spi_transceive() syscall, copy those to the
kernel stack before validating.

Fixes #7378.

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2018-05-17 07:45:15 +03:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig spi: Fix missing "depends on !HAS_DTS_SPI" 2018-05-10 15:43:42 -05:00
Kconfig.dw drivers/spi: Enable port 3 and 4 on DW driver 2018-04-04 19:02:35 +02:00
Kconfig.mcux_dspi spi: Refactor mcux dspi shim driver to use clock control interface 2018-05-10 15:43:42 -05:00
Kconfig.nrfx drivers: spi: Add missing periods in Kconfig.nrfx 2018-04-13 17:04:16 +02:00
Kconfig.sam0
Kconfig.stm32
spi_context.h drivers/spi: Slave async calls require recv frames as successful status 2018-04-13 16:02:03 +02:00
spi_dw.c drivers: spi: fix the bug of slave selection in spi_dw 2018-05-14 17:23:03 -04:00
spi_dw.h drivers/spi: Fix tmod update on DW driver 2018-04-05 12:04:56 +03:00
spi_dw_quark_se_ss_regs.h drivers/spi: Fix typo on parameters type in DW arc regs definitions 2018-04-04 19:02:35 +02:00
spi_dw_regs.h drivers/spi: Add slave mode support to the DesignWare driver 2018-04-04 19:02:35 +02:00
spi_handlers.c drivers: spi: Fix TOCTOU while transceiving SPI messages 2018-05-17 07:45:15 +03:00
spi_intel.c drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_intel.h drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_intel_regs.h drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_ll_stm32.c
spi_ll_stm32.h
spi_mcux_dspi.c spi: Refactor mcux dspi shim driver to use clock control interface 2018-05-10 15:43:42 -05:00
spi_nrfx_spi.c drivers: spi: Correct a typo in spi_nrfx_spi.c 2018-04-13 10:26:28 +02:00
spi_nrfx_spim.c drivers: spi: Add shim for nrfx SPIM driver 2018-04-12 14:19:53 -04:00
spi_nrfx_spis.c drivers: spi: Add shim for nrfx SPIS driver 2018-04-13 17:04:16 +02:00
spi_sam0.c spi: Remove SPI legacy API 2018-04-04 19:02:35 +02:00