linux/drivers/interconnect/qcom
Sami Tolvanen 4f0f586bf0 treewide: Change list_sort to use const pointers
list_sort() internally casts the comparison function passed to it
to a different type with constant struct list_head pointers, and
uses this pointer to call the functions, which trips indirect call
Control-Flow Integrity (CFI) checking.

Instead of removing the consts, this change defines the
list_cmp_func_t type and changes the comparison function types of
all list_sort() callers to use const pointers, thus avoiding type
mismatches.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210408182843.1754385-10-samitolvanen@google.com
2021-04-08 16:04:22 -07:00
..
bcm-voter.c treewide: Change list_sort to use const pointers 2021-04-08 16:04:22 -07:00
bcm-voter.h interconnect: qcom: Consolidate interconnect RPMh support 2020-02-28 12:11:40 +02:00
icc-rpm.c interconnect: qcom: Consolidate interconnect RPM support 2021-01-05 13:09:58 +02:00
icc-rpm.h interconnect: qcom: Consolidate interconnect RPM support 2021-01-05 13:09:58 +02:00
icc-rpmh.c interconnect: qcom: Ensure that the floor bandwidth value is enforced 2020-10-22 13:26:26 +03:00
icc-rpmh.h interconnect: qcom: Implement xlate_extended() to parse tags 2020-09-08 16:29:00 +03:00
Kconfig Merge branch 'icc-sdx55' into icc-next 2021-02-01 14:26:57 +02:00
Makefile Merge branch 'icc-sdx55' into icc-next 2021-02-01 14:26:57 +02:00
msm8916.c interconnect: qcom: Consolidate interconnect RPM support 2021-01-05 13:09:58 +02:00
msm8939.c interconnect: qcom: msm8939: remove rpm-ids from non-RPM nodes 2021-03-08 15:09:15 +02:00
msm8974.c interconnect: qcom: msm8974: Don't boost the NoC rate during boot 2020-11-18 00:21:47 +02:00
osm-l3.c Merge branch 'icc-syncstate' into icc-next 2020-09-18 09:13:40 +03:00
qcs404.c interconnect: qcom: qcs404: use shared code 2021-01-05 13:10:12 +02:00
sc7180.c interconnect: qcom: sc7180: Init BCMs before creating the nodes 2020-10-15 09:24:00 +03:00
sc7180.h interconnect: qcom: Add OSM L3 support on SC7180 2020-03-03 19:02:52 +02:00
sdm845.c Qualcomm ARM64 DT updates for 5.11 2020-12-08 23:50:08 +01:00
sdm845.h interconnect: qcom: Add OSM L3 interconnect provider support 2020-03-03 19:02:52 +02:00
sdx55.c interconnect: qcom: Add SDX55 interconnect provider driver 2021-01-27 13:11:33 +02:00
sdx55.h interconnect: qcom: Add SDX55 interconnect provider driver 2021-01-27 13:11:33 +02:00
sm8150.c interconnect: qcom: use icc_sync state for sm8[12]50 2020-10-27 16:01:22 +02:00
sm8150.h interconnect: qcom: Add OSM L3 support on SM8150 2020-09-08 16:29:01 +03:00
sm8250.c interconnect: qcom: use icc_sync state for sm8[12]50 2020-10-27 16:01:22 +02:00
sm8250.h interconnect: qcom: Add EPSS L3 support on SM8250 2020-09-08 16:29:01 +03:00
smd-rpm.c interconnect: qcom: Add interconnect RPM over SMD driver 2019-08-13 23:06:40 +03:00
smd-rpm.h interconnect: qcom: Add interconnect RPM over SMD driver 2019-08-13 23:06:40 +03:00