Skip to content
Commit 845ac3ef authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

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: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 7588680a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment