From: Greg Kroah-Hartman Date: Mon, 22 Aug 2022 09:14:56 +0000 (+0200) Subject: 5.15-stable patches X-Git-Tag: v4.9.326~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=557204743c4b5293b4beb7db3b84e26349802d4d;p=thirdparty%2Fkernel%2Fstable-queue.git 5.15-stable patches added patches: ceph-don-t-leak-snap_rwsem-in-handle_cap_grant.patch ceph-use-correct-index-when-encoding-client-supported-features.patch dt-bindings-arm-qcom-fix-longcheer-l8150-compatibles.patch dt-bindings-arm-qcom-fix-msm8916-mtp-compatibles.patch dt-bindings-arm-qcom-fix-msm8994-boards-compatibles.patch dt-bindings-clock-qcom-gcc-msm8996-add-more-gcc-clock-sources.patch dt-bindings-gpio-zynq-add-missing-compatible-strings.patch kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-gcc.patch spi-dt-bindings-cadence-add-missing-required.patch spi-dt-bindings-zynqmp-qspi-add-missing-required.patch tools-build-switch-to-new-openssl-api-for-test-libcrypto.patch tools-vm-slabinfo-use-alphabetic-order-when-two-values-are-equal.patch --- diff --git a/queue-5.15/ceph-don-t-leak-snap_rwsem-in-handle_cap_grant.patch b/queue-5.15/ceph-don-t-leak-snap_rwsem-in-handle_cap_grant.patch new file mode 100644 index 00000000000..86cbb251a81 --- /dev/null +++ b/queue-5.15/ceph-don-t-leak-snap_rwsem-in-handle_cap_grant.patch @@ -0,0 +1,66 @@ +From 58dd4385577ed7969b80cdc9e2a31575aba6c712 Mon Sep 17 00:00:00 2001 +From: Jeff Layton +Date: Fri, 3 Jun 2022 16:39:57 -0400 +Subject: ceph: don't leak snap_rwsem in handle_cap_grant +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Jeff Layton + +commit 58dd4385577ed7969b80cdc9e2a31575aba6c712 upstream. + +When handle_cap_grant is called on an IMPORT op, then the snap_rwsem is +held and the function is expected to release it before returning. It +currently fails to do that in all cases which could lead to a deadlock. + +Fixes: 6f05b30ea063 ("ceph: reset i_requested_max_size if file write is not wanted") +Link: https://tracker.ceph.com/issues/55857 +Signed-off-by: Jeff Layton +Reviewed-by: Luís Henriques +Signed-off-by: Ilya Dryomov +Signed-off-by: Greg Kroah-Hartman +--- + fs/ceph/caps.c | 27 +++++++++++++-------------- + 1 file changed, 13 insertions(+), 14 deletions(-) + +--- a/fs/ceph/caps.c ++++ b/fs/ceph/caps.c +@@ -3543,24 +3543,23 @@ static void handle_cap_grant(struct inod + fill_inline = true; + } + +- if (ci->i_auth_cap == cap && +- le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) { +- if (newcaps & ~extra_info->issued) +- wake = true; ++ if (le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) { ++ if (ci->i_auth_cap == cap) { ++ if (newcaps & ~extra_info->issued) ++ wake = true; + +- if (ci->i_requested_max_size > max_size || +- !(le32_to_cpu(grant->wanted) & CEPH_CAP_ANY_FILE_WR)) { +- /* re-request max_size if necessary */ +- ci->i_requested_max_size = 0; +- wake = true; +- } ++ if (ci->i_requested_max_size > max_size || ++ !(le32_to_cpu(grant->wanted) & CEPH_CAP_ANY_FILE_WR)) { ++ /* re-request max_size if necessary */ ++ ci->i_requested_max_size = 0; ++ wake = true; ++ } + +- ceph_kick_flushing_inode_caps(session, ci); +- spin_unlock(&ci->i_ceph_lock); ++ ceph_kick_flushing_inode_caps(session, ci); ++ } + up_read(&session->s_mdsc->snap_rwsem); +- } else { +- spin_unlock(&ci->i_ceph_lock); + } ++ spin_unlock(&ci->i_ceph_lock); + + if (fill_inline) + ceph_fill_inline_data(inode, NULL, extra_info->inline_data, diff --git a/queue-5.15/ceph-use-correct-index-when-encoding-client-supported-features.patch b/queue-5.15/ceph-use-correct-index-when-encoding-client-supported-features.patch new file mode 100644 index 00000000000..3e416c8f489 --- /dev/null +++ b/queue-5.15/ceph-use-correct-index-when-encoding-client-supported-features.patch @@ -0,0 +1,74 @@ +From fea013e020e6ecc7be75bea0d61697b7e916b44d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lu=C3=ADs=20Henriques?= +Date: Tue, 24 May 2022 17:06:27 +0100 +Subject: ceph: use correct index when encoding client supported features +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Luís Henriques + +commit fea013e020e6ecc7be75bea0d61697b7e916b44d upstream. + +Feature bits have to be encoded into the correct locations. This hasn't +been an issue so far because the only hole in the feature bits was in bit +10 (CEPHFS_FEATURE_RECLAIM_CLIENT), which is located in the 2nd byte. When +adding more bits that go beyond the this 2nd byte, the bug will show up. + +[xiubli: remove incorrect comment for CEPHFS_FEATURES_CLIENT_SUPPORTED] + +Fixes: 9ba1e224538a ("ceph: allocate the correct amount of extra bytes for the session features") +Signed-off-by: Luís Henriques +Reviewed-by: Jeff Layton +Signed-off-by: Xiubo Li +Signed-off-by: Ilya Dryomov +Signed-off-by: Greg Kroah-Hartman +--- + fs/ceph/mds_client.c | 7 +++++-- + fs/ceph/mds_client.h | 6 ------ + 2 files changed, 5 insertions(+), 8 deletions(-) + +--- a/fs/ceph/mds_client.c ++++ b/fs/ceph/mds_client.c +@@ -1196,14 +1196,17 @@ static int encode_supported_features(voi + if (count > 0) { + size_t i; + size_t size = FEATURE_BYTES(count); ++ unsigned long bit; + + if (WARN_ON_ONCE(*p + 4 + size > end)) + return -ERANGE; + + ceph_encode_32(p, size); + memset(*p, 0, size); +- for (i = 0; i < count; i++) +- ((unsigned char*)(*p))[i / 8] |= BIT(feature_bits[i] % 8); ++ for (i = 0; i < count; i++) { ++ bit = feature_bits[i]; ++ ((unsigned char *)(*p))[bit / 8] |= BIT(bit % 8); ++ } + *p += size; + } else { + if (WARN_ON_ONCE(*p + 4 > end)) +--- a/fs/ceph/mds_client.h ++++ b/fs/ceph/mds_client.h +@@ -33,10 +33,6 @@ enum ceph_feature_type { + CEPHFS_FEATURE_MAX = CEPHFS_FEATURE_METRIC_COLLECT, + }; + +-/* +- * This will always have the highest feature bit value +- * as the last element of the array. +- */ + #define CEPHFS_FEATURES_CLIENT_SUPPORTED { \ + 0, 1, 2, 3, 4, 5, 6, 7, \ + CEPHFS_FEATURE_MIMIC, \ +@@ -45,8 +41,6 @@ enum ceph_feature_type { + CEPHFS_FEATURE_MULTI_RECONNECT, \ + CEPHFS_FEATURE_DELEG_INO, \ + CEPHFS_FEATURE_METRIC_COLLECT, \ +- \ +- CEPHFS_FEATURE_MAX, \ + } + #define CEPHFS_FEATURES_CLIENT_REQUIRED {} + diff --git a/queue-5.15/dt-bindings-arm-qcom-fix-longcheer-l8150-compatibles.patch b/queue-5.15/dt-bindings-arm-qcom-fix-longcheer-l8150-compatibles.patch new file mode 100644 index 00000000000..84df039a046 --- /dev/null +++ b/queue-5.15/dt-bindings-arm-qcom-fix-longcheer-l8150-compatibles.patch @@ -0,0 +1,45 @@ +From 25d203d0751ca191301bc578ba5d59fa401f1fbf Mon Sep 17 00:00:00 2001 +From: Krzysztof Kozlowski +Date: Fri, 20 May 2022 14:32:45 +0200 +Subject: dt-bindings: arm: qcom: fix Longcheer L8150 compatibles + +From: Krzysztof Kozlowski + +commit 25d203d0751ca191301bc578ba5d59fa401f1fbf upstream. + +The MSM8916 Longcheer L8150 uses a fallback in compatible: + + msm8916-longcheer-l8150.dtb: /: compatible: 'oneOf' conditional failed, one must be fixed: + ['longcheer,l8150', 'qcom,msm8916-v1-qrd/9-v1', 'qcom,msm8916'] is too long + +Fixes: b72160fa886d ("dt-bindings: qcom: Document bindings for new MSM8916 devices") +Signed-off-by: Krzysztof Kozlowski +Acked-by: Rob Herring +Reviewed-by: Stephan Gerhold +Link: https://lore.kernel.org/r/20220520123252.365762-2-krzysztof.kozlowski@linaro.org +Signed-off-by: Bjorn Andersson +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/arm/qcom.yaml | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +--- a/Documentation/devicetree/bindings/arm/qcom.yaml ++++ b/Documentation/devicetree/bindings/arm/qcom.yaml +@@ -142,12 +142,16 @@ properties: + - items: + - enum: + - alcatel,idol347 +- - longcheer,l8150 + - samsung,a3u-eur + - samsung,a5u-eur + - const: qcom,msm8916 + + - items: ++ - const: longcheer,l8150 ++ - const: qcom,msm8916-v1-qrd/9-v1 ++ - const: qcom,msm8916 ++ ++ - items: + - enum: + - sony,karin_windy + - sony,karin-row diff --git a/queue-5.15/dt-bindings-arm-qcom-fix-msm8916-mtp-compatibles.patch b/queue-5.15/dt-bindings-arm-qcom-fix-msm8916-mtp-compatibles.patch new file mode 100644 index 00000000000..3712f01af34 --- /dev/null +++ b/queue-5.15/dt-bindings-arm-qcom-fix-msm8916-mtp-compatibles.patch @@ -0,0 +1,36 @@ +From bb35fe1efbae4114bd288fae0f56070f563adcfc Mon Sep 17 00:00:00 2001 +From: Krzysztof Kozlowski +Date: Fri, 20 May 2022 14:32:46 +0200 +Subject: dt-bindings: arm: qcom: fix MSM8916 MTP compatibles + +From: Krzysztof Kozlowski + +commit bb35fe1efbae4114bd288fae0f56070f563adcfc upstream. + +The order of compatibles for MSM8916 MTP board is different: + + msm8916-mtp.dtb: /: compatible: 'oneOf' conditional failed, one must be fixed: + ['qcom,msm8916-mtp', 'qcom,msm8916-mtp/1', 'qcom,msm8916'] is too long + +Fixes: 9d3ef77fe568 ("dt-bindings: arm: Convert QCom board/soc bindings to json-schema") +Signed-off-by: Krzysztof Kozlowski +Acked-by: Rob Herring +Link: https://lore.kernel.org/r/20220520123252.365762-3-krzysztof.kozlowski@linaro.org +Signed-off-by: Bjorn Andersson +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/arm/qcom.yaml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/Documentation/devicetree/bindings/arm/qcom.yaml ++++ b/Documentation/devicetree/bindings/arm/qcom.yaml +@@ -135,8 +135,8 @@ properties: + - const: qcom,msm8974 + + - items: +- - const: qcom,msm8916-mtp/1 + - const: qcom,msm8916-mtp ++ - const: qcom,msm8916-mtp/1 + - const: qcom,msm8916 + + - items: diff --git a/queue-5.15/dt-bindings-arm-qcom-fix-msm8994-boards-compatibles.patch b/queue-5.15/dt-bindings-arm-qcom-fix-msm8994-boards-compatibles.patch new file mode 100644 index 00000000000..f7f6ea71e36 --- /dev/null +++ b/queue-5.15/dt-bindings-arm-qcom-fix-msm8994-boards-compatibles.patch @@ -0,0 +1,42 @@ +From c704bd373f58a84193eebe40bd271d6b73c138b0 Mon Sep 17 00:00:00 2001 +From: Krzysztof Kozlowski +Date: Fri, 20 May 2022 14:32:47 +0200 +Subject: dt-bindings: arm: qcom: fix MSM8994 boards compatibles + +From: Krzysztof Kozlowski + +commit c704bd373f58a84193eebe40bd271d6b73c138b0 upstream. + +The compatibles for APQ8094/MSM8994 boards are different than specified +in bindings. None of them use fallback to other SoC variant. + +Fixes: 9ad3c08f6f1b ("dt-bindings: arm: qcom: Document sony boards for apq8094") +Signed-off-by: Krzysztof Kozlowski +Acked-by: Rob Herring +Link: https://lore.kernel.org/r/20220520123252.365762-4-krzysztof.kozlowski@linaro.org +Signed-off-by: Bjorn Andersson +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/arm/qcom.yaml | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +--- a/Documentation/devicetree/bindings/arm/qcom.yaml ++++ b/Documentation/devicetree/bindings/arm/qcom.yaml +@@ -154,12 +154,15 @@ properties: + - items: + - enum: + - sony,karin_windy ++ - const: qcom,apq8094 ++ ++ - items: ++ - enum: + - sony,karin-row + - sony,satsuki-row + - sony,sumire-row + - sony,suzuran-row +- - qcom,msm8994 +- - const: qcom,apq8094 ++ - const: qcom,msm8994 + + - items: + - const: qcom,msm8996-mtp diff --git a/queue-5.15/dt-bindings-clock-qcom-gcc-msm8996-add-more-gcc-clock-sources.patch b/queue-5.15/dt-bindings-clock-qcom-gcc-msm8996-add-more-gcc-clock-sources.patch new file mode 100644 index 00000000000..d77ea34c7d6 --- /dev/null +++ b/queue-5.15/dt-bindings-clock-qcom-gcc-msm8996-add-more-gcc-clock-sources.patch @@ -0,0 +1,57 @@ +From 2b4e75a7a7c8d3531a40ebb103b92f88ff693f79 Mon Sep 17 00:00:00 2001 +From: Dmitry Baryshkov +Date: Mon, 20 Jun 2022 10:19:33 +0300 +Subject: dt-bindings: clock: qcom,gcc-msm8996: add more GCC clock sources + +From: Dmitry Baryshkov + +commit 2b4e75a7a7c8d3531a40ebb103b92f88ff693f79 upstream. + +Add additional GCC clock sources. This includes PCIe and USB PIPE and +UFS symbol clocks. + +Fixes: 2a8aa18c1131 ("dt-bindings: clk: qcom: Fix self-validation, split, and clean cruft") +Signed-off-by: Dmitry Baryshkov +Reviewed-by: Krzysztof Kozlowski +Signed-off-by: Bjorn Andersson +Link: https://lore.kernel.org/r/20220620071936.1558906-2-dmitry.baryshkov@linaro.org +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/clock/qcom,gcc-msm8996.yaml | 16 ++++++++++ + 1 file changed, 16 insertions(+) + +--- a/Documentation/devicetree/bindings/clock/qcom,gcc-msm8996.yaml ++++ b/Documentation/devicetree/bindings/clock/qcom,gcc-msm8996.yaml +@@ -22,16 +22,32 @@ properties: + const: qcom,gcc-msm8996 + + clocks: ++ minItems: 3 + items: + - description: XO source + - description: Second XO source + - description: Sleep clock source ++ - description: PCIe 0 PIPE clock (optional) ++ - description: PCIe 1 PIPE clock (optional) ++ - description: PCIe 2 PIPE clock (optional) ++ - description: USB3 PIPE clock (optional) ++ - description: UFS RX symbol 0 clock (optional) ++ - description: UFS RX symbol 1 clock (optional) ++ - description: UFS TX symbol 0 clock (optional) + + clock-names: ++ minItems: 3 + items: + - const: cxo + - const: cxo2 + - const: sleep_clk ++ - const: pcie_0_pipe_clk_src ++ - const: pcie_1_pipe_clk_src ++ - const: pcie_2_pipe_clk_src ++ - const: usb3_phy_pipe_clk_src ++ - const: ufs_rx_symbol_0_clk_src ++ - const: ufs_rx_symbol_1_clk_src ++ - const: ufs_tx_symbol_0_clk_src + + '#clock-cells': + const: 1 diff --git a/queue-5.15/dt-bindings-gpio-zynq-add-missing-compatible-strings.patch b/queue-5.15/dt-bindings-gpio-zynq-add-missing-compatible-strings.patch new file mode 100644 index 00000000000..1bafd67efe5 --- /dev/null +++ b/queue-5.15/dt-bindings-gpio-zynq-add-missing-compatible-strings.patch @@ -0,0 +1,44 @@ +From 7668048e5c697a9493ffc0e6001c322b2efe90ae Mon Sep 17 00:00:00 2001 +From: Michal Simek +Date: Thu, 14 Oct 2021 12:14:18 +0200 +Subject: dt-bindings: gpio: zynq: Add missing compatible strings + +From: Michal Simek + +commit 7668048e5c697a9493ffc0e6001c322b2efe90ae upstream. + +"xlnx,zynqmp-gpio-1.0", "xlnx,versal-gpio-1.0" and "xlnx,pmc-gpio-1.0" +compatible strings were not moved to yaml format. But they were in origin +text file. + +Fixes: 45ca16072b70 ("dt-bindings: gpio: zynq: convert bindings to YAML") +Signed-off-by: Michal Simek +Reviewed-by: Linus Walleij +Acked-by: Rob Herring +Link: https://lore.kernel.org/r/72c973da5670b5ae81d050c582948894ee4174f8.1634206453.git.michal.simek@xilinx.com +Signed-off-by: Michal Simek +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/gpio/gpio-zynq.yaml | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml +index 378da2649e66..980f92ad9eba 100644 +--- a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml ++++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml +@@ -11,7 +11,11 @@ maintainers: + + properties: + compatible: +- const: xlnx,zynq-gpio-1.0 ++ enum: ++ - xlnx,zynq-gpio-1.0 ++ - xlnx,zynqmp-gpio-1.0 ++ - xlnx,versal-gpio-1.0 ++ - xlnx,pmc-gpio-1.0 + + reg: + maxItems: 1 +-- +2.37.2 + diff --git a/queue-5.15/kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-gcc.patch b/queue-5.15/kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-gcc.patch new file mode 100644 index 00000000000..1bdc4750cf7 --- /dev/null +++ b/queue-5.15/kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-gcc.patch @@ -0,0 +1,48 @@ +From aac289653fa5adf9e9985e4912c1d24a3e8cbab2 Mon Sep 17 00:00:00 2001 +From: Ondrej Mosnacek +Date: Mon, 11 Jul 2022 14:09:23 +0200 +Subject: kbuild: dummy-tools: avoid tmpdir leak in dummy gcc + +From: Ondrej Mosnacek + +commit aac289653fa5adf9e9985e4912c1d24a3e8cbab2 upstream. + +When passed -print-file-name=plugin, the dummy gcc script creates a +temporary directory that is never cleaned up. To avoid cluttering +$TMPDIR, instead use a static directory included in the source tree. + +Fixes: 76426e238834 ("kbuild: add dummy toolchains to enable all cc-option etc. in Kconfig") +Signed-off-by: Ondrej Mosnacek +Signed-off-by: Masahiro Yamada +Signed-off-by: Greg Kroah-Hartman +--- + .../dummy-tools/dummy-plugin-dir/include/plugin-version.h | 0 + scripts/dummy-tools/gcc | 8 ++------ + 2 files changed, 2 insertions(+), 6 deletions(-) + create mode 100644 scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h + +diff --git a/scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h b/scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h +new file mode 100644 +index 000000000000..e69de29bb2d1 +diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc +index b2483149bbe5..7db825843435 100755 +--- a/scripts/dummy-tools/gcc ++++ b/scripts/dummy-tools/gcc +@@ -96,12 +96,8 @@ fi + + # To set GCC_PLUGINS + if arg_contain -print-file-name=plugin "$@"; then +- plugin_dir=$(mktemp -d) +- +- mkdir -p $plugin_dir/include +- touch $plugin_dir/include/plugin-version.h +- +- echo $plugin_dir ++ # Use $0 to find the in-tree dummy directory ++ echo "$(dirname "$(readlink -f "$0")")/dummy-plugin-dir" + exit 0 + fi + +-- +2.37.2 + diff --git a/queue-5.15/series b/queue-5.15/series index 4088729e49a..2356a39916f 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -79,3 +79,15 @@ ipv6-do-not-use-rt_tos-for-ipv6-flowlabel.patch plip-avoid-rcu-debug-splat.patch vsock-fix-memory-leak-in-vsock_connect.patch vsock-set-socket-state-back-to-ss_unconnected-in-vsock_connect_timeout.patch +dt-bindings-gpio-zynq-add-missing-compatible-strings.patch +dt-bindings-arm-qcom-fix-longcheer-l8150-compatibles.patch +dt-bindings-arm-qcom-fix-msm8916-mtp-compatibles.patch +dt-bindings-arm-qcom-fix-msm8994-boards-compatibles.patch +dt-bindings-clock-qcom-gcc-msm8996-add-more-gcc-clock-sources.patch +spi-dt-bindings-cadence-add-missing-required.patch +spi-dt-bindings-zynqmp-qspi-add-missing-required.patch +ceph-use-correct-index-when-encoding-client-supported-features.patch +tools-vm-slabinfo-use-alphabetic-order-when-two-values-are-equal.patch +ceph-don-t-leak-snap_rwsem-in-handle_cap_grant.patch +kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-gcc.patch +tools-build-switch-to-new-openssl-api-for-test-libcrypto.patch diff --git a/queue-5.15/spi-dt-bindings-cadence-add-missing-required.patch b/queue-5.15/spi-dt-bindings-cadence-add-missing-required.patch new file mode 100644 index 00000000000..d2bea18d76e --- /dev/null +++ b/queue-5.15/spi-dt-bindings-cadence-add-missing-required.patch @@ -0,0 +1,42 @@ +From 6eee27c598fde65988723b785a9c9192d5ffb93a Mon Sep 17 00:00:00 2001 +From: Krzysztof Kozlowski +Date: Mon, 4 Jul 2022 15:06:17 +0200 +Subject: spi: dt-bindings: cadence: add missing 'required' + +From: Krzysztof Kozlowski + +commit 6eee27c598fde65988723b785a9c9192d5ffb93a upstream. + +During the conversion the bindings lost list of required properties. + +Fixes: aa7968682a2b ("spi: convert Cadence SPI bindings to YAML") +Signed-off-by: Krzysztof Kozlowski +Reviewed-by: Michal Simek +Link: https://lore.kernel.org/r/20220704130618.199231-1-krzysztof.kozlowski@linaro.org +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/spi/spi-cadence.yaml | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.yaml b/Documentation/devicetree/bindings/spi/spi-cadence.yaml +index 9787be21318e..82d0ca5c00f3 100644 +--- a/Documentation/devicetree/bindings/spi/spi-cadence.yaml ++++ b/Documentation/devicetree/bindings/spi/spi-cadence.yaml +@@ -49,6 +49,13 @@ properties: + enum: [ 0, 1 ] + default: 0 + ++required: ++ - compatible ++ - reg ++ - interrupts ++ - clock-names ++ - clocks ++ + unevaluatedProperties: false + + examples: +-- +2.37.2 + diff --git a/queue-5.15/spi-dt-bindings-zynqmp-qspi-add-missing-required.patch b/queue-5.15/spi-dt-bindings-zynqmp-qspi-add-missing-required.patch new file mode 100644 index 00000000000..a00e892ee76 --- /dev/null +++ b/queue-5.15/spi-dt-bindings-zynqmp-qspi-add-missing-required.patch @@ -0,0 +1,42 @@ +From acfc34f008c3e66bbcb7b9162c80c8327b6e800f Mon Sep 17 00:00:00 2001 +From: Krzysztof Kozlowski +Date: Mon, 4 Jul 2022 15:06:18 +0200 +Subject: spi: dt-bindings: zynqmp-qspi: add missing 'required' + +From: Krzysztof Kozlowski + +commit acfc34f008c3e66bbcb7b9162c80c8327b6e800f upstream. + +During the conversion the bindings lost list of required properties. + +Fixes: c58db2abb19f ("spi: convert Xilinx Zynq UltraScale+ MPSoC GQSPI bindings to YAML") +Signed-off-by: Krzysztof Kozlowski +Reviewed-by: Michal Simek +Link: https://lore.kernel.org/r/20220704130618.199231-2-krzysztof.kozlowski@linaro.org +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman +--- + Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml +index ea72c8001256..fafde1c06be6 100644 +--- a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml ++++ b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml +@@ -30,6 +30,13 @@ properties: + clocks: + maxItems: 2 + ++required: ++ - compatible ++ - reg ++ - interrupts ++ - clock-names ++ - clocks ++ + unevaluatedProperties: false + + examples: +-- +2.37.2 + diff --git a/queue-5.15/tools-build-switch-to-new-openssl-api-for-test-libcrypto.patch b/queue-5.15/tools-build-switch-to-new-openssl-api-for-test-libcrypto.patch new file mode 100644 index 00000000000..2e3c3fde2d7 --- /dev/null +++ b/queue-5.15/tools-build-switch-to-new-openssl-api-for-test-libcrypto.patch @@ -0,0 +1,70 @@ +From 5b245985a6de5ac18b5088c37068816d413fb8ed Mon Sep 17 00:00:00 2001 +From: Roberto Sassu +Date: Tue, 19 Jul 2022 19:05:55 +0200 +Subject: tools build: Switch to new openssl API for test-libcrypto + +From: Roberto Sassu + +commit 5b245985a6de5ac18b5088c37068816d413fb8ed upstream. + +Switch to new EVP API for detecting libcrypto, as Fedora 36 returns an +error when it encounters the deprecated function MD5_Init() and the others. + +The error would be interpreted as missing libcrypto, while in reality it is +not. + +Fixes: 6e8ccb4f624a73c5 ("tools/bpf: properly account for libbfd variations") +Signed-off-by: Roberto Sassu +Cc: Alexei Starovoitov +Cc: Andrii Nakryiko +Cc: bpf@vger.kernel.org +Cc: Daniel Borkmann +Cc: Ingo Molnar +Cc: John Fastabend +Cc: KP Singh +Cc: llvm@lists.linux.dev +Cc: Martin KaFai Lau +Cc: Nathan Chancellor +Cc: Nick Desaulniers +Cc: Nick Terrell +Cc: Peter Zijlstra +Cc: Quentin Monnet +Cc: Song Liu +Cc: Stanislav Fomichev +Link: https://lore.kernel.org/r/20220719170555.2576993-4-roberto.sassu@huawei.com +Signed-off-by: Arnaldo Carvalho de Melo +Signed-off-by: Greg Kroah-Hartman +--- + tools/build/feature/test-libcrypto.c | 15 +++++++++++---- + 1 file changed, 11 insertions(+), 4 deletions(-) + +--- a/tools/build/feature/test-libcrypto.c ++++ b/tools/build/feature/test-libcrypto.c +@@ -1,16 +1,23 @@ + // SPDX-License-Identifier: GPL-2.0 ++#include + #include + #include + + int main(void) + { +- MD5_CTX context; ++ EVP_MD_CTX *mdctx; + unsigned char md[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH]; + unsigned char dat[] = "12345"; ++ unsigned int digest_len; + +- MD5_Init(&context); +- MD5_Update(&context, &dat[0], sizeof(dat)); +- MD5_Final(&md[0], &context); ++ mdctx = EVP_MD_CTX_new(); ++ if (!mdctx) ++ return 0; ++ ++ EVP_DigestInit_ex(mdctx, EVP_md5(), NULL); ++ EVP_DigestUpdate(mdctx, &dat[0], sizeof(dat)); ++ EVP_DigestFinal_ex(mdctx, &md[0], &digest_len); ++ EVP_MD_CTX_free(mdctx); + + SHA1(&dat[0], sizeof(dat), &md[0]); + diff --git a/queue-5.15/tools-vm-slabinfo-use-alphabetic-order-when-two-values-are-equal.patch b/queue-5.15/tools-vm-slabinfo-use-alphabetic-order-when-two-values-are-equal.patch new file mode 100644 index 00000000000..5f258f26890 --- /dev/null +++ b/queue-5.15/tools-vm-slabinfo-use-alphabetic-order-when-two-values-are-equal.patch @@ -0,0 +1,100 @@ +From 4f5ceb8851f0081af54313abbf56de1615911faf Mon Sep 17 00:00:00 2001 +From: Yuanzheng Song +Date: Sat, 28 May 2022 06:31:17 +0000 +Subject: tools/vm/slabinfo: use alphabetic order when two values are equal + +From: Yuanzheng Song + +commit 4f5ceb8851f0081af54313abbf56de1615911faf upstream. + +When the number of partial slabs in each cache is the same (e.g., the +value are 0), the results of the `slabinfo -X -N5` and `slabinfo -P -N5` +are different. + +/ # slabinfo -X -N5 +... +Slabs sorted by number of partial slabs +--------------------------------------- +Name Objects Objsize Space Slabs/Part/Cpu O/S O %Fr %Ef Flg +inode_cache 15180 392 6217728 758/0/1 20 1 0 95 a +kernfs_node_cache 22494 88 2002944 488/0/1 46 0 0 98 +shmem_inode_cache 663 464 319488 38/0/1 17 1 0 96 +biovec-max 50 3072 163840 4/0/1 10 3 0 93 A +dentry 19050 136 2600960 633/0/2 30 0 0 99 a + +/ # slabinfo -P -N5 +Name Objects Objsize Space Slabs/Part/Cpu O/S O %Fr %Ef Flg +bdev_cache 32 984 32.7K 1/0/1 16 2 0 96 Aa +ext4_inode_cache 42 752 32.7K 1/0/1 21 2 0 96 a +dentry 19050 136 2.6M 633/0/2 30 0 0 99 a +TCPv6 17 1840 32.7K 0/0/1 17 3 0 95 A +RAWv6 18 856 16.3K 0/0/1 18 2 0 94 A + +This problem is caused by the sort_slabs(). So let's use alphabetic order +when two values are equal in the sort_slabs(). + +By the way, the content of the `slabinfo -h` is not aligned because the + +`-P|--partial Sort by number of partial slabs` + +uses tabs instead of spaces. So let's use spaces instead of tabs to fix +it. + +Link: https://lkml.kernel.org/r/20220528063117.935158-1-songyuanzheng@huawei.com +Fixes: 1106b205a3fe ("tools/vm/slabinfo: add partial slab listing to -X") +Signed-off-by: Yuanzheng Song +Cc: "Tobin C. Harding" +Signed-off-by: Andrew Morton +Signed-off-by: Greg Kroah-Hartman +--- + tools/vm/slabinfo.c | 32 ++++++++++++++++++++++---------- + 1 file changed, 22 insertions(+), 10 deletions(-) + +--- a/tools/vm/slabinfo.c ++++ b/tools/vm/slabinfo.c +@@ -125,7 +125,7 @@ static void usage(void) + "-n|--numa Show NUMA information\n" + "-N|--lines=K Show the first K slabs\n" + "-o|--ops Show kmem_cache_ops\n" +- "-P|--partial Sort by number of partial slabs\n" ++ "-P|--partial Sort by number of partial slabs\n" + "-r|--report Detailed report on single slabs\n" + "-s|--shrink Shrink slabs\n" + "-S|--Size Sort by size\n" +@@ -1067,15 +1067,27 @@ static void sort_slabs(void) + for (s2 = s1 + 1; s2 < slabinfo + slabs; s2++) { + int result; + +- if (sort_size) +- result = slab_size(s1) < slab_size(s2); +- else if (sort_active) +- result = slab_activity(s1) < slab_activity(s2); +- else if (sort_loss) +- result = slab_waste(s1) < slab_waste(s2); +- else if (sort_partial) +- result = s1->partial < s2->partial; +- else ++ if (sort_size) { ++ if (slab_size(s1) == slab_size(s2)) ++ result = strcasecmp(s1->name, s2->name); ++ else ++ result = slab_size(s1) < slab_size(s2); ++ } else if (sort_active) { ++ if (slab_activity(s1) == slab_activity(s2)) ++ result = strcasecmp(s1->name, s2->name); ++ else ++ result = slab_activity(s1) < slab_activity(s2); ++ } else if (sort_loss) { ++ if (slab_waste(s1) == slab_waste(s2)) ++ result = strcasecmp(s1->name, s2->name); ++ else ++ result = slab_waste(s1) < slab_waste(s2); ++ } else if (sort_partial) { ++ if (s1->partial == s2->partial) ++ result = strcasecmp(s1->name, s2->name); ++ else ++ result = s1->partial < s2->partial; ++ } else + result = strcasecmp(s1->name, s2->name); + + if (show_inverted)