summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi-ng/Kconfig
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2026-09-04 10:43:19 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-09-04 07:58:36 -0700
commit6668ed271eaefaa63e686bdfbedaeb7b8e492722 (patch)
tree58e8288fead484f6755ad0815fc74c3742663761 /drivers/clk/sunxi-ng/Kconfig
downloadlinux-stable-6668ed271eaefaa63e686bdfbedaeb7b8e492722.tar.gz
linux-stable-6668ed271eaefaa63e686bdfbedaeb7b8e492722.zip
selftests/bpf: Reject graph kptr use after RCU unlockgrafted
Add a sleepable verifier test that loads a graph-node local kptr in an explicit RCU read-side critical section, then passes its node to bpf_rbtree_remove() after the section ends. Before the verifier fix, the stale NON_OWN_REF flag makes the node look like a live borrowed reference and the program is accepted. After the fix, the pointer is demoted without NON_OWN_REF and the graph kfunc argument is rejected. Also exercise a graph kptr loaded while a spin lock provides implicit RCU protection. The pointer must be invalidated when the lock is released, which guards the required ordering between non-owning-reference invalidation and RCU demotion. Update the existing fault-protected load test state description. The post-unlock pointer no longer carries NON_OWN_REF, but remains readable because the load is rewritten to use BPF_PROBE_MEM. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20260904084325.52250-7-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/clk/sunxi-ng/Kconfig')
-rw-r--r--drivers/clk/sunxi-ng/Kconfig136
1 files changed, 136 insertions, 0 deletions
diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig
new file mode 100644
index 000000000..6af2d020e
--- /dev/null
+++ b/drivers/clk/sunxi-ng/Kconfig
@@ -0,0 +1,136 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config SUNXI_CCU
+ tristate "Clock support for Allwinner SoCs"
+ depends on ARCH_SUNXI || COMPILE_TEST
+ select RESET_CONTROLLER
+ default ARCH_SUNXI
+
+if SUNXI_CCU
+
+config SUNIV_F1C100S_CCU
+ tristate "Support for the Allwinner newer F1C100s CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUNIV || COMPILE_TEST
+
+config SUN20I_D1_CCU
+ tristate "Support for the Allwinner D1/R528/T113 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || RISCV || COMPILE_TEST
+
+config SUN20I_D1_R_CCU
+ tristate "Support for the Allwinner D1/R528/T113 PRCM CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || RISCV || COMPILE_TEST
+
+config SUN50I_A64_CCU
+ tristate "Support for the Allwinner A64 CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN50I_A100_CCU
+ tristate "Support for the Allwinner A100 CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN50I_A100_R_CCU
+ tristate "Support for the Allwinner A100 PRCM CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN50I_H6_CCU
+ tristate "Support for the Allwinner H6 CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN50I_H616_CCU
+ tristate "Support for the Allwinner H616 CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN50I_H6_R_CCU
+ tristate "Support for the Allwinner H6 and H616 PRCM CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN55I_A523_CCU
+ tristate "Support for the Allwinner A523/T527 CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN55I_A523_MCU_CCU
+ tristate "Support for the Allwinner A523/T527 MCU CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN55I_A523_R_CCU
+ tristate "Support for the Allwinner A523/T527 PRCM CCU"
+ default ARCH_SUNXI
+ depends on ARM64 || COMPILE_TEST
+
+config SUN4I_A10_CCU
+ tristate "Support for the Allwinner A10/A20 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN4I || MACH_SUN7I || COMPILE_TEST
+
+config SUN5I_CCU
+ bool "Support for the Allwinner sun5i family CCM"
+ default ARCH_SUNXI
+ depends on MACH_SUN5I || COMPILE_TEST
+ depends on SUNXI_CCU=y
+
+config SUN6I_A31_CCU
+ tristate "Support for the Allwinner A31/A31s CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN6I || COMPILE_TEST
+
+config SUN6I_RTC_CCU
+ tristate "Support for the Allwinner H616/R329 RTC CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || ARM64 || RISCV || COMPILE_TEST
+
+config SUN8I_A23_CCU
+ tristate "Support for the Allwinner A23 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || COMPILE_TEST
+
+config SUN8I_A33_CCU
+ tristate "Support for the Allwinner A33 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || COMPILE_TEST
+
+config SUN8I_A83T_CCU
+ tristate "Support for the Allwinner A83T CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || COMPILE_TEST
+
+config SUN8I_H3_CCU
+ tristate "Support for the Allwinner H3 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || ARM64 || COMPILE_TEST
+
+config SUN8I_V3S_CCU
+ tristate "Support for the Allwinner V3s CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || COMPILE_TEST
+
+config SUN8I_DE2_CCU
+ tristate "Support for the Allwinner SoCs DE2 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || ARM64 || RISCV || COMPILE_TEST
+
+config SUN8I_R40_CCU
+ tristate "Support for the Allwinner R40 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || COMPILE_TEST
+
+config SUN9I_A80_CCU
+ tristate "Support for the Allwinner A80 CCU"
+ default ARCH_SUNXI
+ depends on MACH_SUN9I || COMPILE_TEST
+
+config SUN8I_R_CCU
+ tristate "Support for Allwinner SoCs' PRCM CCUs"
+ default ARCH_SUNXI
+ depends on MACH_SUN8I || ARM64 || COMPILE_TEST
+
+endif