1
0
Fork 0
alistair23-linux/drivers/firmware/imx
Leonard Crestez 30eb1ea78a firmware: imx: Align imx_sc_msg_req_cpu_start to 4
commit f5bfeff446 upstream.

The imx SC api strongly assumes that messages are composed out of
4-bytes words but some of our message structs have odd sizeofs.

This produces many oopses with CONFIG_KASAN=y.

Fix by marking with __aligned(4).

Fixes: d90bf296ae ("firmware: imx: Add support to start/stop a CPU")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 13:00:28 +01:00
..
Kconfig firmware: imx: Add DSP IPC protocol interface 2019-08-12 15:19:25 +02:00
Makefile firmware: imx: Add DSP IPC protocol interface 2019-08-12 15:19:25 +02:00
imx-dsp.c firmware: imx: Remove call to devm_of_platform_populate 2020-01-26 10:01:05 +01:00
imx-scu-irq.c firmware: imx: SCU irq should ONLY be enabled after SCU IPC is ready 2019-05-20 09:12:20 +08:00
imx-scu.c firmware: imx: scu: Ensure sequential TX 2020-03-12 13:00:17 +01:00
misc.c firmware: imx: Align imx_sc_msg_req_cpu_start to 4 2020-03-12 13:00:28 +01:00
scu-pd.c firmware: imx: scu-pd: Align imx sc msg structs to 4 2020-03-12 13:00:28 +01:00