remoteproc: mediatek: Check the SCP image format
Subsystems (2)
PATCH 1/1 remoteproc: mediatek: Check the SCP image format
Do a sanity check on the SCP image before loading it to avoid driver crashes.
Signed-off-by Tinghan Shen <[email protected]>
--- drivers/remoteproc/mtk_scp.c | 1 + 1 file changed, 1 insertion(+)
drivers/remoteproc/mtk_scp.c +1 -0
@@ -649,6 +649,7 @@ static const struct rproc_ops scp_ops = { .load = scp_load, .da_to_va = scp_da_to_va, .parse_fw = scp_parse_fw, + .sanity_check = rproc_elf_sanity_check, };/**
Signature · 1 line
2.18.0
Quoted 4 lines · Tinghan Shen
Do a sanity check on the SCP image before loading it to avoid driver crashes.
Signed-off-by Tinghan Shen <[email protected]>
Reviewed-by Matthias Brugger <[email protected]>
Quoted 16 lines
--- drivers/remoteproc/mtk_scp.c | 1 + 1 file changed, 1 insertion(+)drivers/remoteproc/mtk_scp.c +1
-0@@ -649,6 +649,7 @@ static const struct rproc_ops scp_ops = { .load = scp_load, .da_to_va = scp_da_to_va, .parse_fw = scp_parse_fw, + .sanity_check = rproc_elf_sanity_check, };/**
Il 10/02/23 12:32, Matthias Brugger ha scritto:
Quoted 9 lines · Tinghan Shen
Quoted 4 lines
Do a sanity check on the SCP image before loading it to avoid driver crashes.
Signed-off-by Tinghan Shen <[email protected]>Reviewed-by Matthias Brugger <[email protected]>
Reviewed-by AngeloGioacchino Del Regno <[email protected]>
Mathieu Poirier
maintainerQuoted 8 lines · Tinghan Shen
Do a sanity check on the SCP image before loading it to avoid driver crashes.
Signed-off-by Tinghan Shen <[email protected]>--- drivers/remoteproc/mtk_scp.c | 1 + 1 file changed, 1 insertion(+)
I have applied this patch.
Thanks,
Mathieu
Quoted 15 lines
drivers/remoteproc/mtk_scp.c +1
-0@@ -649,6 +649,7 @@ static const struct rproc_ops scp_ops = { .load = scp_load, .da_to_va = scp_da_to_va, .parse_fw = scp_parse_fw, + .sanity_check = rproc_elf_sanity_check, };/** Signature · 1 line
2.18.0