From d18008de78323087a7e8cd49811fe11ea2376bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wcis=C5=82o?= Date: Thu, 15 May 2025 21:45:03 +0200 Subject: [PATCH 1/2] Tests availability matrix --- kselftests/tests-availability-matrix.rst | 678 +++++++++++++++++++++++ 1 file changed, 678 insertions(+) create mode 100644 kselftests/tests-availability-matrix.rst diff --git a/kselftests/tests-availability-matrix.rst b/kselftests/tests-availability-matrix.rst new file mode 100644 index 0000000000000..3c56324e1824a --- /dev/null +++ b/kselftests/tests-availability-matrix.rst @@ -0,0 +1,678 @@ +The following table provides an overview of the testing domains of +different Rocky versions. All the tests marked as "available" (the ``#`` +character) are confirmed to be present in the Linux repo tree for the +particular version and possible to run on the given machine platform. + +=== ======= ============= +Col Arch Version +=== ======= ============= +A x86_64 Rocky LTS 8.6 +B x86_64 Rocky LTS 8.8 +C x86_64 Rocky LTS 9.2 +D x86_64 Rocky LTS 9.4 +U aarch64 Rocky LTS 8.6 +V aarch64 Rocky LTS 8.8 +W aarch64 Rocky LTS 9.2 +X aarch64 Rocky LTS 9.4 +=== ======= ============= + +===================================================== = = = = = = = = = +Test name A B C D . U V W X +===================================================== = = = = = = = = = +android:run.sh # # . . # # . . +arm64/bti:btitest . . . . . . # # +arm64/bti:nobtitest . . . . . . # # +arm64/fp:sve-probe-vls . . . . . . # # +arm64/fp:sve-ptrace . . . . . . # # +arm64/fp:vec-syscfg . . . . . . # # +arm64/mte:check_buffer_fill . . . . . . # # +arm64/mte:check_child_memory . . . . . . # # +arm64/mte:check_gcr_el1_cswitch . . . . . . # # +arm64/mte:check_ksm_options . . . . . . # # +arm64/mte:check_mmap_options . . . . . . # # +arm64/mte:check_tags_inclusion . . . . . . # # +arm64/mte:check_user_mem . . . . . . # # +arm64/pauth:pac . . . . . . # # +arm64/signal:fake_sigreturn_bad_magic . . . . . . # # +arm64/signal:fake_sigreturn_bad_size . . . . . . # # +arm64/signal:fake_sigreturn_bad_size_for_magic0 . . . . . . # # +arm64/signal:fake_sigreturn_duplicated_fpsimd . . . . . . # # +arm64/signal:fake_sigreturn_misaligned_sp . . . . . . # # +arm64/signal:fake_sigreturn_missing_fpsimd . . . . . . # # +arm64/signal:fake_sigreturn_sve_change_vl . . . . . . # # +arm64/signal:mangle_pstate_invalid_compat_toggle . . . . . . # # +arm64/signal:mangle_pstate_invalid_daif_bits . . . . . . # # +arm64/signal:mangle_pstate_invalid_mode_el1h . . . . . . # # +arm64/signal:mangle_pstate_invalid_mode_el1t . . . . . . # # +arm64/signal:mangle_pstate_invalid_mode_el2h . . . . . . # # +arm64/signal:mangle_pstate_invalid_mode_el2t . . . . . . # # +arm64/signal:mangle_pstate_invalid_mode_el3h . . . . . . # # +arm64/signal:mangle_pstate_invalid_mode_el3t . . . . . . # # +arm64/signal:sve_regs . . . . . . # # +arm64/signal:sve_vl . . . . . . # # +arm64/tags:run_tags_test.sh . . . . . . # # +arm64/tags:tags_test . . . . . . # # +bpf:get_cgroup_id_user # # # # # # # # +bpf:test_bpftool.sh # # # # # # # # +bpf:test_bpftool_build.sh # # # # # # # # +bpf:test_bpftool_metadata.sh # # # # # # # # +bpf:test_cgroup_storage # # # # # # # # +bpf:test_dev_cgroup # # # # # # # # +bpf:test_doc_build.sh # # # # # # # # +bpf:test_flow_dissector.sh # # # # # # # # +bpf:test_kmod.sh # # # # # # # # +bpf:test_lirc_mode2.sh # # # # # # # # +bpf:test_lpm_map # # # # # # # # +bpf:test_lru_map # # # # # # # # +bpf:test_lwt_ip_encap.sh # # # # # # # # +bpf:test_lwt_seg6local.sh # # # # # # # # +bpf:test_maps # # # # # # # # +bpf:test_netcnt # # . . # # . . +bpf:test_offload.py # # # # # # # # +bpf:test_progs # # # # # # # # +bpf:test_progs-cpuv4 . . . # . . . . +bpf:test_progs-no_alu32 # # # # # # # # +bpf:test_skb_cgroup_id.sh # # # # # # # # +bpf:test_sock # # # # # # # # +bpf:test_sock_addr.sh # # # # # # # # +bpf:test_sockmap # # # # # # # # +bpf:test_sysctl # # # # # # # # +bpf:test_tag # # # # # # # # +bpf:test_tc_edt.sh # # # # # # # # +bpf:test_tc_tunnel.sh # # # # # # # # +bpf:test_tcp_check_syncookie.sh # # # # # # # # +bpf:test_tcpnotify_user # # # # # # # # +bpf:test_tunnel.sh # # # # # # # # +bpf:test_verifier # # # # # # # # +bpf:test_verifier_log # # # . # # # . +bpf:test_xdp_features.sh . . . # . . . # +bpf:test_xdp_meta.sh # # # # # # # # +bpf:test_xdp_redirect.sh # # # # # # # # +bpf:test_xdp_redirect_multi.sh . # # # . # # # +bpf:test_xdp_veth.sh # # # # # # # # +bpf:test_xdp_vlan_mode_generic.sh # # # # # # # # +bpf:test_xdp_vlan_mode_native.sh # # # # # # # # +bpf:test_xdping.sh # # # # # # # # +bpf:test_xsk.sh # # # # # # # # +bpf:urandom_read # # # . # # # . +breakpoints:breakpoint_test # # # # . . . . +breakpoints:breakpoint_test_arm64 . . . . # # # # +breakpoints:step_after_suspend_test # # # # # # # # +capabilities:test_execve # # # # # # # # +cgroup:test_core . # # # . # # # +cgroup:test_cpuset_prs.sh . . # # . . # # +cgroup:test_freezer . # # # . # # # +cgroup:test_kill . . # # . . # # +cgroup:test_kmem # # # # # # # # +cgroup:test_memcontrol # # # # # # # # +cgroup:test_stress.sh . # # # . # # # +clone3:clone3 . . # # . . # # +clone3:clone3_cap_checkpoint_restore . . # # . . # # +clone3:clone3_clear_sighand . . # # . . # # +clone3:clone3_set_tid . . # # . . # # +core:close_range_test # # # # # # # # +cpu-hotplug:cpu-on-off-test.sh # # # # # # # # +cpufreq:main.sh # # # # # # # # +drivers/dma-buf:udmabuf . . # # . . # # +drivers/net/bonding:bond-arp-interval-causes-panic.sh . # # # . # # # +drivers/net/bonding:bond-break-lacpdu-tx.sh . # # # . # # # +drivers/net/bonding:bond-eth-type-change.sh . . . # . . . # +drivers/net/bonding:bond-lladdr-target.sh . # # # . # # # +drivers/net/bonding:bond_macvlan.sh . . . # . . . # +drivers/net/bonding:bond_options.sh . . . # . . . # +drivers/net/bonding:dev_addr_lists.sh . # # # . # # # +drivers/net/bonding:mode-1-recovery-updelay.sh . # # # . # # # +drivers/net/bonding:mode-2-recovery-updelay.sh . # # # . # # # +drivers/net/team:dev_addr_lists.sh . # # # . # # # +efivarfs:efivarfs.sh # # # # # # # # +exec:binfmt_script . . # # . . # # +exec:execveat # # # # # # # # +exec:load_address_16777216 . . # # . . # # +exec:load_address_2097152 . . # # . . # # +exec:load_address_4096 . . # # . . # # +exec:non-regular . . # # . . # # +exec:recursion-depth . . # # . . # # +filesystems/binderfs:binderfs_test . . # # . . # # +filesystems/epoll:epoll_wakeup_test . . # # . . # # +filesystems:devpts_pts # # # # # # # # +firmware:fw_run_tests.sh # # # # # # # # +fpu:run_test_fpu.sh # # # # # # # # +fpu:test_fpu # # # # # # # # +ftrace:ftracetest # # # # # # # # +futex:run.sh # # # # # # # # +gpio:gpio-mockup.sh # # # # # # # # +hid:hid-apple.sh . . . # . . . # +hid:hid-core.sh . . . # . . . # +hid:hid-gamepad.sh . . . # . . . # +hid:hid-ite.sh . . . # . . . # +hid:hid-keyboard.sh . . . # . . . # +hid:hid-mouse.sh . . . # . . . # +hid:hid-multitouch.sh . . . # . . . # +hid:hid-sony.sh . . . # . . . # +hid:hid-tablet.sh . . . # . . . # +hid:hid-usb_crash.sh . . . # . . . # +hid:hid-wacom.sh . . . # . . . # +hid:hid_bpf . . . # . . . # +intel_pstate:run.sh # # # # # # # # +iommu:iommufd . . . # . . . # +iommu:iommufd_fail_nth . . . # . . . # +ipc:msgque # # # # # # # # +ir:ir_loopback.sh . . # # . . # # +kcmp:kcmp_test # # # # # # # # +kexec:test_kexec_file_load.sh # # # # . . . . +kexec:test_kexec_load.sh # # # # . . . . +kvm:aarch32_id_regs . . . . . . . # +kvm:access_tracking_perf_test # # # # . . . # +kvm:amx_test # # # # . . . . +kvm:arch_timer . . . . # # # # +kvm:cpuid_test . # # # . . . . +kvm:cr4_cpuid_sync_test # # # # . . . . +kvm:debug-exceptions . . . . # # # # +kvm:debug_regs # # # # . . . . +kvm:demand_paging_test # # # # # # # # +kvm:dirty_log_page_splitting_test . . . # . . . . +kvm:dirty_log_perf_test # # # # # # # # +kvm:dirty_log_test # # # # # # # # +kvm:emulator_error_test # # # . . . . . +kvm:evmcs_test # # # . . . . . +kvm:exit_on_emulation_failure_test . . . # . . . . +kvm:fix_hypercall_test . . # # . . . . +kvm:get-reg-list . . . . # # # # +kvm:get_cpuid_test # . . . . . . . +kvm:get_msr_index_features # # # # . . . . +kvm:guest_memfd_test . . . # . . . . +kvm:guest_print_test . . . # . . . # +kvm:hardware_disable_test # # # # . . . . +kvm:hypercalls . . . . . . # # +kvm:hyperv_clock # # # # . . . . +kvm:hyperv_cpuid # # # # . . . . +kvm:hyperv_evmcs . . . # . . . . +kvm:hyperv_extended_hypercalls . . . # . . . . +kvm:hyperv_features # # # # . . . . +kvm:hyperv_ipi . . . # . . . . +kvm:hyperv_svm_test . # # # . . . . +kvm:hyperv_tlb_flush . . . # . . . . +kvm:kvm_binary_stats_test # # # # # # # # +kvm:kvm_clock_test . # # # . . . . +kvm:kvm_create_max_vcpus # # # # # # # # +kvm:kvm_page_table_test # # # # # # # # +kvm:kvm_pv_test # # # # . . . . +kvm:max_guest_memory_test . # # # . . . . +kvm:max_vcpuid_cap_test . . # # . . . . +kvm:memslot_modification_stress_test # # # # . # # # +kvm:memslot_perf_test # # # # . # # # +kvm:mmio_warning_test # # # # . . . . +kvm:mmu_role_test # # . . . . . . +kvm:monitor_mwait_test . . # # . . . . +kvm:nested_exceptions_test . . . # . . . . +kvm:nx_huge_pages_test.sh . . # # . . . . +kvm:page_fault_test . . . . . . . # +kvm:platform_info_test # # # # . . . . +kvm:pmu_event_filter_test . # # # . . . . +kvm:private_mem_conversions_test . . . # . . . . +kvm:private_mem_kvm_exits_test . . . # . . . . +kvm:psci_cpu_on_test . . . . # # . . +kvm:psci_test . . . . . . # # +kvm:recalc_apic_map_test . . . # . . . . +kvm:rseq_test # # # # # # # # +kvm:set_boot_cpu_id # # # # . . . . +kvm:set_memory_region_test # # # # # # # # +kvm:set_sregs_test # # # # . . . . +kvm:sev_migrate_tests . # # # . . . . +kvm:smaller_maxphyaddr_emulation_test . . . # . . . . +kvm:smccc_filter . . . . . . . # +kvm:smm_test # # # # . . . . +kvm:state_test # # # # . . . . +kvm:steal_time # # # # # # # # +kvm:svm_int_ctl_test # # # # . . . . +kvm:svm_nested_shutdown_test . . . # . . . . +kvm:svm_nested_soft_inject_test . . # # . . . . +kvm:svm_vmcall_test # # # # . . . . +kvm:sync_regs_test # # # # . . . . +kvm:system_counter_offset_test . # # # . . . . +kvm:triple_fault_event_test . . # # . . . . +kvm:tsc_msrs_test # # # # . . . . +kvm:tsc_scaling_sync . . # # . . . . +kvm:ucna_injection_test . . # # . . . . +kvm:userspace_io_test . # # # . . . . +kvm:userspace_msr_exit_test # # # # . . . . +kvm:vcpu_width_config . . . . . # # # +kvm:vgic_init . . . . # # # # +kvm:vgic_irq . . . . . # # # +kvm:vmx_apic_access_test # # # # . . . . +kvm:vmx_close_while_nested_test # # # # . . . . +kvm:vmx_dirty_log_test # # # # . . . . +kvm:vmx_exception_with_invalid_guest_state . # # # . . . . +kvm:vmx_invalid_nested_guest_state . # # # . . . . +kvm:vmx_msrs_test . . # # . . . . +kvm:vmx_nested_tsc_scaling_test # # # # . . . . +kvm:vmx_pmu_caps_test . . # # . . . . +kvm:vmx_pmu_msrs_test # # . . . . . . +kvm:vmx_preemption_timer_test # # # # . . . . +kvm:vmx_set_nested_state_test # # # # . . . . +kvm:vmx_tsc_adjust_test # # # # . . . . +kvm:xapic_ipi_test # # # # . . . . +kvm:xapic_state_test . # # # . . . . +kvm:xcr0_cpuid_test . . . # . . . . +kvm:xen_shinfo_test # # # # . . . . +kvm:xen_vmcall_test # # # # . . . . +kvm:xss_msr_test # # # # . . . . +landlock:base_test . . # # . . # # +landlock:fs_test . . # # . . # # +landlock:ptrace_test . . # # . . # # +lib:bitmap.sh # # # # # # # # +lib:prime_numbers.sh # # # # # # # # +lib:printf.sh # # # # # # # # +lib:scanf.sh # # # # # # # # +lib:strscpy.sh . . # # . . # # +livepatch:test-callbacks.sh # # # # # # # # +livepatch:test-ftrace.sh # # # # # # # # +livepatch:test-livepatch.sh # # # # # # # # +livepatch:test-shadow-vars.sh # # # # # # # # +livepatch:test-state.sh # # # # # # # # +livepatch:test-sysfs.sh . . . # . . . # +lkdtm:ACCESS_NULL.sh . . # # . . # # +lkdtm:ACCESS_USERSPACE.sh . . # # . . # # +lkdtm:ATOMIC_TIMING.sh . . # # . . # # +lkdtm:BUDDY_INIT_ON_ALLOC.sh . . # # . . # # +lkdtm:BUG.sh . . # # . . # # +lkdtm:CFI_FORWARD_PROTO.sh . . # # . . # # +lkdtm:CORRUPT_LIST_ADD.sh . . # # . . # # +lkdtm:CORRUPT_LIST_DEL.sh . . # # . . # # +lkdtm:CORRUPT_PAC.sh . . # # . . # # +lkdtm:CORRUPT_STACK.sh . . # # . . # # +lkdtm:CORRUPT_STACK_STRONG.sh . . # # . . # # +lkdtm:DOUBLE_FAULT.sh . . # # . . # # +lkdtm:EXCEPTION.sh . . # # . . # # +lkdtm:EXEC_DATA.sh . . # # . . # # +lkdtm:EXEC_KMALLOC.sh . . # # . . # # +lkdtm:EXEC_NULL.sh . . # # . . # # +lkdtm:EXEC_RODATA.sh . . # # . . # # +lkdtm:EXEC_STACK.sh . . # # . . # # +lkdtm:EXEC_USERSPACE.sh . . # # . . # # +lkdtm:EXEC_VMALLOC.sh . . # # . . # # +lkdtm:EXHAUST_STACK.sh . . # # . . # # +lkdtm:FORTIFIED_STRSCPY.sh . . # # . . # # +lkdtm:HARDLOCKUP.sh . . # # . . # # +lkdtm:HUNG_TASK.sh . . # # . . # # +lkdtm:LOOP.sh . . # # . . # # +lkdtm:PANIC.sh . . # # . . # # +lkdtm:PPC_SLB_MULTIHIT.sh . . # # . . # # +lkdtm:READ_AFTER_FREE.sh . . # # . . # # +lkdtm:READ_BUDDY_AFTER_FREE.sh . . # # . . # # +lkdtm:REFCOUNT_ADD_NOT_ZERO_OVERFLOW.sh . . # # . . # # +lkdtm:REFCOUNT_ADD_NOT_ZERO_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_ADD_OVERFLOW.sh . . # # . . # # +lkdtm:REFCOUNT_ADD_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_ADD_ZERO.sh . . # # . . # # +lkdtm:REFCOUNT_DEC_AND_TEST_NEGATIVE.sh . . # # . . # # +lkdtm:REFCOUNT_DEC_AND_TEST_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_DEC_NEGATIVE.sh . . # # . . # # +lkdtm:REFCOUNT_DEC_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_DEC_ZERO.sh . . # # . . # # +lkdtm:REFCOUNT_INC_NOT_ZERO_OVERFLOW.sh . . # # . . # # +lkdtm:REFCOUNT_INC_NOT_ZERO_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_INC_OVERFLOW.sh . . # # . . # # +lkdtm:REFCOUNT_INC_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_INC_ZERO.sh . . # # . . # # +lkdtm:REFCOUNT_SUB_AND_TEST_NEGATIVE.sh . . # # . . # # +lkdtm:REFCOUNT_SUB_AND_TEST_SATURATED.sh . . # # . . # # +lkdtm:REFCOUNT_TIMING.sh . . # # . . # # +lkdtm:SLAB_FREE_CROSS.sh . . # # . . # # +lkdtm:SLAB_FREE_DOUBLE.sh . . # # . . # # +lkdtm:SLAB_FREE_PAGE.sh . . # # . . # # +lkdtm:SLAB_INIT_ON_ALLOC.sh . . # # . . # # +lkdtm:SLAB_LINEAR_OVERFLOW.sh . . # # . . # # +lkdtm:SOFTLOCKUP.sh . . # # . . # # +lkdtm:SPINLOCKUP.sh . . # # . . # # +lkdtm:STACKLEAK_ERASING.sh . . # # . . # # +lkdtm:STACK_GUARD_PAGE_LEADING.sh . . # # . . # # +lkdtm:STACK_GUARD_PAGE_TRAILING.sh . . # # . . # # +lkdtm:UNALIGNED_LOAD_STORE_WRITE.sh . . # # . . # # +lkdtm:UNSET_SMEP.sh . . # # . . # # +lkdtm:USERCOPY_HEAP_SIZE_FROM.sh . . # # . . # # +lkdtm:USERCOPY_HEAP_SIZE_TO.sh . . # # . . # # +lkdtm:USERCOPY_HEAP_WHITELIST_FROM.sh . . # # . . # # +lkdtm:USERCOPY_HEAP_WHITELIST_TO.sh . . # # . . # # +lkdtm:USERCOPY_KERNEL.sh . . # # . . # # +lkdtm:USERCOPY_STACK_BEYOND.sh . . # # . . # # +lkdtm:USERCOPY_STACK_FRAME_FROM.sh . . # # . . # # +lkdtm:USERCOPY_STACK_FRAME_TO.sh . . # # . . # # +lkdtm:VMALLOC_LINEAR_OVERFLOW.sh . . # # . . # # +lkdtm:WARNING.sh . . # # . . # # +lkdtm:WARNING_MESSAGE.sh . . # # . . # # +lkdtm:WRITE_AFTER_FREE.sh . . # # . . # # +lkdtm:WRITE_BUDDY_AFTER_FREE.sh . . # # . . # # +lkdtm:WRITE_KERN.sh . . # # . . # # +lkdtm:WRITE_RO.sh . . # # . . # # +lkdtm:WRITE_RO_AFTER_INIT.sh . . # # . . # # +lkdtm:stack-entropy.sh . . # # . . # # +membarrier:membarrier_test_multi_thread # # # # # # # # +membarrier:membarrier_test_single_thread # # # # # # # # +memfd:memfd_test # # # # # # # # +memfd:run_fuse_test.sh # # # # # # # # +memfd:run_hugetlbfs_test.sh # # # # # # # # +memory-hotplug:mem-on-off-test.sh # # # # # # # # +mincore:mincore_selftest . . # # . . # # +mm:run_vmtests.sh . . . # . . . # +mount:run_nosymfollow.sh . . # # . . # # +mount:run_tests.sh # # . . # # . . +mount:run_unprivileged_remount.sh . . # # . . # # +mqueue:mq_open_tests # # # # # # # # +mqueue:mq_perf_tests # # # # # # # # +nci:nci_dev . . # # . . # # +net/forwarding:bridge_igmp.sh # # # # # # # # +net/forwarding:bridge_locked_port.sh . # # # . # # # +net/forwarding:bridge_mdb.sh . . . # . . . # +net/forwarding:bridge_mdb_host.sh . . . # . . . # +net/forwarding:bridge_mdb_max.sh . . . # . . . # +net/forwarding:bridge_mdb_port_down.sh . . . # . . . # +net/forwarding:bridge_mld.sh . . # # . . # # +net/forwarding:bridge_port_isolation.sh # # # # # # # # +net/forwarding:bridge_sticky_fdb.sh # # # # # # # # +net/forwarding:bridge_vlan_aware.sh # # # # # # # # +net/forwarding:bridge_vlan_mcast.sh . . # # . . # # +net/forwarding:bridge_vlan_unaware.sh # # # # # # # # +net/forwarding:custom_multipath_hash.sh . . # # . . # # +net/forwarding:dual_vxlan_bridge.sh . . # # . . # # +net/forwarding:ethtool.sh # # # # # # # # +net/forwarding:ethtool_extended_state.sh . . # # . . # # +net/forwarding:gre_custom_multipath_hash.sh . . # # . . # # +net/forwarding:gre_inner_v4_multipath.sh . . # # . . # # +net/forwarding:gre_inner_v6_multipath.sh . . # # . . # # +net/forwarding:gre_multipath.sh # # # # # # # # +net/forwarding:gre_multipath_nh.sh . . # # . . # # +net/forwarding:gre_multipath_nh_res.sh . . # # . . # # +net/forwarding:hw_stats_l3.sh . . # # . . # # +net/forwarding:hw_stats_l3_gre.sh . . # # . . # # +net/forwarding:ip6_forward_instats_vrf.sh # # # # # # # # +net/forwarding:ip6gre_custom_multipath_hash.sh . . # # . . # # +net/forwarding:ip6gre_flat.sh . . # # . . # # +net/forwarding:ip6gre_flat_key.sh . . # # . . # # +net/forwarding:ip6gre_flat_keys.sh . . # # . . # # +net/forwarding:ip6gre_hier.sh . . # # . . # # +net/forwarding:ip6gre_hier_key.sh . . # # . . # # +net/forwarding:ip6gre_hier_keys.sh . . # # . . # # +net/forwarding:ip6gre_inner_v4_multipath.sh . . # # . . # # +net/forwarding:ip6gre_inner_v6_multipath.sh . . # # . . # # +net/forwarding:ipip_flat_gre.sh # # # # # # # # +net/forwarding:ipip_flat_gre_key.sh # # # # # # # # +net/forwarding:ipip_flat_gre_keys.sh # # # # # # # # +net/forwarding:ipip_hier_gre.sh # # # # # # # # +net/forwarding:ipip_hier_gre_key.sh # # # # # # # # +net/forwarding:ipip_hier_gre_keys.sh # # # # # # # # +net/forwarding:local_termination.sh . . . # . . . # +net/forwarding:loopback.sh # # # # # # # # +net/forwarding:mirror_gre.sh # # # # # # # # +net/forwarding:mirror_gre_bound.sh # # # # # # # # +net/forwarding:mirror_gre_bridge_1d.sh # # # # # # # # +net/forwarding:mirror_gre_bridge_1d_vlan.sh # # # # # # # # +net/forwarding:mirror_gre_bridge_1q.sh # # # # # # # # +net/forwarding:mirror_gre_bridge_1q_lag.sh # # # # # # # # +net/forwarding:mirror_gre_changes.sh # # # # # # # # +net/forwarding:mirror_gre_flower.sh # # # # # # # # +net/forwarding:mirror_gre_lag_lacp.sh # # # # # # # # +net/forwarding:mirror_gre_neigh.sh # # # # # # # # +net/forwarding:mirror_gre_nh.sh # # # # # # # # +net/forwarding:mirror_gre_vlan.sh # # # # # # # # +net/forwarding:mirror_gre_vlan_bridge_1q.sh # # # # # # # # +net/forwarding:mirror_vlan.sh # # # # # # # # +net/forwarding:no_forwarding.sh . . . # . . . # +net/forwarding:pedit_dsfield.sh . . # # . . # # +net/forwarding:pedit_ip.sh . . # # . . # # +net/forwarding:pedit_l4port.sh . . # # . . # # +net/forwarding:q_in_vni.sh . . # # . . # # +net/forwarding:q_in_vni_ipv6.sh . . # # . . # # +net/forwarding:router.sh # # # # # # # # +net/forwarding:router_bridge.sh # # # # # # # # +net/forwarding:router_bridge_1d.sh . . . # . . . # +net/forwarding:router_bridge_1d_lag.sh . . . # . . . # +net/forwarding:router_bridge_lag.sh . . . # . . . # +net/forwarding:router_bridge_pvid_vlan_upper.sh . . . # . . . # +net/forwarding:router_bridge_vlan.sh # # # # # # # # +net/forwarding:router_bridge_vlan_upper.sh . . . # . . . # +net/forwarding:router_bridge_vlan_upper_pvid.sh . . . # . . . # +net/forwarding:router_broadcast.sh # # # # # # # # +net/forwarding:router_mpath_nh.sh . . # # . . # # +net/forwarding:router_mpath_nh_res.sh . . # # . . # # +net/forwarding:router_multicast.sh # # # # # # # # +net/forwarding:router_multipath.sh # # # # # # # # +net/forwarding:router_nh.sh . . # # . . # # +net/forwarding:router_vid_1.sh # # # # # # # # +net/forwarding:sch_ets.sh # # # # # # # # +net/forwarding:sch_red.sh . . # # . . # # +net/forwarding:sch_tbf_ets.sh # # # # # # # # +net/forwarding:sch_tbf_prio.sh # # # # # # # # +net/forwarding:sch_tbf_root.sh # # # # # # # # +net/forwarding:skbedit_priority.sh . . # # . . # # +net/forwarding:tc_actions.sh # # # # # # # # +net/forwarding:tc_chains.sh # # # # # # # # +net/forwarding:tc_flower.sh # # # # # # # # +net/forwarding:tc_flower_cfm.sh . . . # . . . # +net/forwarding:tc_flower_l2_miss.sh . . . # . . . # +net/forwarding:tc_flower_router.sh # # # # # # # # +net/forwarding:tc_mpls_l2vpn.sh # # # # # # # # +net/forwarding:tc_police.sh . . # # . . # # +net/forwarding:tc_shblocks.sh # # # # # # # # +net/forwarding:tc_tunnel_key.sh . . . # . . . # +net/forwarding:tc_vlan_modify.sh # # # # # # # # +net/forwarding:vxlan_asymmetric.sh # # # # # # # # +net/forwarding:vxlan_asymmetric_ipv6.sh . . # # . . # # +net/forwarding:vxlan_bridge_1d.sh # # # # # # # # +net/forwarding:vxlan_bridge_1d_ipv6.sh . . # # . . # # +net/forwarding:vxlan_bridge_1d_port_8472.sh # # # # # # # # +net/forwarding:vxlan_bridge_1d_port_8472_ipv6.sh . . # # . . # # +net/forwarding:vxlan_bridge_1q.sh # # # # # # # # +net/forwarding:vxlan_bridge_1q_ipv6.sh . . # # . . # # +net/forwarding:vxlan_bridge_1q_port_8472.sh # # # # # # # # +net/forwarding:vxlan_bridge_1q_port_8472_ipv6.sh . . # # . . # # +net/forwarding:vxlan_symmetric.sh # # # # # # # # +net/forwarding:vxlan_symmetric_ipv6.sh . . # # . . # # +net/hsr:hsr_ping.sh . . . # . . . # +net/mptcp:diag.sh # # # # # # # # +net/mptcp:mptcp_connect.sh # # # # # # # # +net/mptcp:mptcp_join.sh # # # # # # # # +net/mptcp:mptcp_sockopt.sh # # # # # # # # +net/mptcp:pm_netlink.sh # # # # # # # # +net/mptcp:simult_flows.sh # # # # # # # # +net/mptcp:userspace_pm.sh . . # # . . # # +net:altnames.sh . . # # . . # # +net:bareudp.sh # # # # # # # # +net:big_tcp.sh . . . # . . . # +net:cmsg_so_mark.sh . . # # . . # # +net:devlink_port_split.py # # # # # # # # +net:drop_monitor_tests.sh # # # # # # # # +net:fcnal-test.sh # # # # # # # # +net:fib-onlink-tests.sh # # # # # # # # +net:fib_nexthop_multiprefix.sh . . # # . . # # +net:fib_nexthop_nongw.sh . . . # . . . # +net:fib_nexthops.sh . . # # . . # # +net:fib_rule_tests.sh # # # # # # # # +net:fib_tests.sh # # # # # # # # +net:fin_ack_lat.sh . . # # . . # # +net:gre_gso.sh # # # # # # # # +net:gro.sh # # # # # # # # +net:icmp.sh . . # # . . # # +net:icmp_redirect.sh # # # # # # # # +net:io_uring_zerocopy_tx.sh . . . # . . . # +net:ip6_gre_headroom.sh # # # # # # # # +net:ip_defrag.sh # # # # # # # # +net:ipv6_flowlabel.sh # # # # # # # # +net:l2_tos_ttl_inherit.sh . . . # . . . # +net:l2tp.sh # # # # # # # # +net:msg_zerocopy.sh # # # # # # # # +net:netdevice.sh # # # # # # # # +net:pmtu.sh # # # # # # # # +net:psock_snd.sh # # # # # # # # +net:reuseaddr_conflict # # # # # # # # +net:reuseaddr_ports_exhausted.sh . . # # . . # # +net:reuseport_addr_any.sh # # # # # # # # +net:reuseport_bpf # # # # # # # # +net:reuseport_bpf_cpu # # # # # # # # +net:reuseport_bpf_numa # # # # # # # # +net:reuseport_dualstack # # # # # # # # +net:route_localnet.sh . . # # . . # # +net:rps_default_mask.sh . # # # . # # # +net:rtnetlink.sh # # # # # # # # +net:run_afpackettests # # # # # # # # +net:run_netsocktests # # # # # # # # +net:rxtimestamp.sh # # # # # # # # +net:so_txtime.sh # # # # # # # # +net:srv6_end_dt46_l3vpn_test.sh . . . # . . . # +net:srv6_end_dt4_l3vpn_test.sh . . . # . . . # +net:srv6_end_dt6_l3vpn_test.sh . . . # . . . # +net:srv6_end_flavors_test.sh . . . # . . . # +net:srv6_end_next_csid_l3vpn_test.sh . . . # . . . # +net:srv6_hencap_red_l3vpn_test.sh . . . # . . . # +net:srv6_hl2encap_red_l2vpn_test.sh . . . # . . . # +net:stress_reuseport_listen.sh . . # # . . # # +net:tcp_fastopen_backup_key.sh . . # # . . # # +net:test_blackhole_dev.sh . . # # . . # # +net:test_bpf.sh # # # # # # # # +net:test_bridge_neigh_suppress.sh . . . # . . . # +net:test_vxlan_fdb_changelink.sh # # # # # # # # +net:test_vxlan_under_vrf.sh . . # # . . # # +net:tls # # # # # # # # +net:traceroute.sh # # # # # # # # +net:txtimestamp.sh # # # # # # # # +net:udpgro.sh # # # # # # # # +net:udpgro_bench.sh # # # # # # # # +net:udpgro_fwd.sh # # # # # # # # +net:udpgso.sh # # # # # # # # +net:udpgso_bench.sh # # # # # # # # +net:unicast_extensions.sh . . # # . . # # +net:veth.sh # # # # # # # # +net:vrf-xfrm-tests.sh # # # # # # # # +net:vrf_route_leaking.sh . . # # . . # # +net:vrf_strict_mode_test.sh . . # # . . # # +net:xfrm_policy.sh # # # # # # # # +netfilter:bridge_brouter.sh . . # # . . # # +netfilter:conntrack_icmp_related.sh # # # # # # # # +netfilter:conntrack_tcp_unreplied.sh # # # # # # # # +netfilter:conntrack_vrf.sh . . # # . . # # +netfilter:ipip-conntrack-mtu.sh . . # # . . # # +netfilter:ipvs.sh # # # # # # # # +netfilter:nf_nat_edemux.sh . . # # . . # # +netfilter:nft_audit.sh . . . # . . . # +netfilter:nft_concat_range.sh . . # # . . # # +netfilter:nft_conntrack_helper.sh . . # # . . # # +netfilter:nft_fib.sh . . # # . . # # +netfilter:nft_flowtable.sh # # # # # # # # +netfilter:nft_meta.sh # # # # # # # # +netfilter:nft_nat.sh # # # # # # # # +netfilter:nft_queue.sh # # # # # # # # +netfilter:nft_trans_stress.sh # # # # # # # # +netfilter:rpath.sh . # # # . # # # +nsfs:owner # # # # # # # # +nsfs:pidns # # # # # # # # +openat2:openat2_test . . # # . . # # +openat2:rename_attack_test . . # # . . # # +openat2:resolve_test . . # # . . # # +pid_namespace:regression_enomem . . # # . . # # +pidfd:pidfd_fdinfo_test . . # # . . # # +pidfd:pidfd_getfd_test . . # # . . # # +pidfd:pidfd_open_test . . # # . . # # +pidfd:pidfd_poll_test . . # # . . # # +pidfd:pidfd_setns_test . . # # . . # # +pidfd:pidfd_test . . # # . . # # +pidfd:pidfd_wait . . # # . . # # +proc:fd-001-lookup # # # # # # # # +proc:fd-002-posix-eq # # # # # # # # +proc:fd-003-kthread # # # # # # # # +proc:proc-fsconfig-hidepid . . # # . . # # +proc:proc-loadavg-001 # # # # # # # # +proc:proc-multiple-procfs . . # # . . # # +proc:proc-pid-vm . . # # . . # # +proc:proc-self-map-files-001 # # # # # # # # +proc:proc-self-map-files-002 # # # # # # # # +proc:proc-self-syscall # # # # # # # # +proc:proc-self-wchan # # # # # # # # +proc:proc-subset-pid . . # # . . # # +proc:proc-uptime-001 # # # # # # # # +proc:proc-uptime-002 # # # # # # # # +proc:read # # # # # # # # +proc:self . . # # . . # # +proc:setns-dcache # # # # # # # # +proc:setns-sysvipc . . # # . . # # +proc:thread-self . . # # . . # # +pstore:pstore_post_reboot_tests # # # # # # # # +pstore:pstore_tests # # # # # # # # +ptrace:get_syscall_info . . # # . . # # +ptrace:peeksiginfo # # # # # # # # +ptrace:vmaccess # # # # # # # # +rlimits:rlimits-per-userns . . # # . . # # +rseq:basic_percpu_ops_test # # # # # # # # +rseq:basic_test # # # # # # # # +rseq:param_test # # # # # # # # +rseq:param_test_benchmark # # # # # # # # +rseq:param_test_compare_twice # # # # # # # # +rseq:run_param_test.sh # # # # # # # # +rtc:rtctest # # # # # # # # +seccomp:seccomp_benchmark # # # # # # # # +seccomp:seccomp_bpf # # # # # # # # +sgx:test_sgx # # # # # # # # +sigaltstack:sas # # # # # # # # +size:get_size # # # # # # # # +splice:default_file_splice_read.sh # # # # # # # # +splice:short_splice_read.sh . . # # . . # # +static_keys:test_static_keys.sh # # # # # # # # +sync:sync_test # # # # # # # # +syscall_user_dispatch:sud_benchmark . . # # . . # # +syscall_user_dispatch:sud_test . . # # . . # # +sysctl:sysctl.sh # # # # # # # # +tc-testing:tdc.sh # # # # # # # # +tdx:tdx_guest_test . # # # . # # # +timens:clock_nanosleep # # # # # # # # +timens:exec # # # # # # # # +timens:futex . . # # . . # # +timens:procfs # # # # # # # # +timens:timens # # # # # # # # +timens:timer # # # # # # # # +timens:timerfd # # # # # # # # +timens:vfork_exec . # # # . # # # +timers:inconsistency-check # # # # # # # # +timers:mqueue-lat # # # # # # # # +timers:nanosleep # # # # # # # # +timers:nsleep-lat # # # # # # # # +timers:posix_timers # # # # # # # # +timers:raw_skew # # # # # # # # +timers:rtcpie # # # # # # # # +timers:set-timer-lat # # # # # # # # +timers:threadtest # # # # # # # # +tmpfs:bug-link-o-tmpfile . . # # . . # # +tpm2:test_smoke.sh # # # # # # # # +tpm2:test_space.sh # # # # # # # # +tty:tty_tstamp_update . . . # . . . # +user:test_user_copy.sh # # # # # # # # +vDSO:vdso_standalone_test_x86 . . # # . . . . +vDSO:vdso_test_abi . . # # . . # # +vDSO:vdso_test_clock_getres . . # # . . # # +vDSO:vdso_test_correctness . . # # . . # # +vDSO:vdso_test_getcpu . . # # . . # # +vDSO:vdso_test_gettimeofday . . # # . . # # +vm:run_vmtests # . . . # . . . +vm:run_vmtests.sh . # # . . # # . +x86:amx_64 # # # # . . . . +x86:check_initial_reg_state_64 # # # # . . . . +x86:corrupt_xstate_header_64 # # # # . . . . +x86:fsgsbase_64 # # # # . . . . +x86:fsgsbase_restore_64 # # # # . . . . +x86:ioperm_64 # # # # . . . . +x86:iopl_64 # # # # . . . . +x86:lam_64 . . . # . . . . +x86:mov_ss_trap_64 # # # # . . . . +x86:mpx-mini-test_64 # # . . . . . . +x86:protection_keys_64 # . . . . . . . +x86:sigaltstack_64 # # # # . . . . +x86:sigreturn_64 # # # # . . . . +x86:single_step_syscall_64 # # # # . . . . +x86:syscall_arg_fault_64 . . # # . . . . +x86:syscall_nt_64 # # # # . . . . +x86:syscall_numbering_64 . . # # . . . . +x86:sysret_rip_64 # # # # . . . . +x86:sysret_ss_attrs_64 # # # # . . . . +x86:test_mremap_vdso_64 # # # # . . . . +x86:test_vdso_64 # # . . . . . . +x86:test_vsyscall_64 # # # # . . . . +zram:zram.sh # # # # # # # # +===================================================== = = = = = = = = = From 88bebba6099856f88f8445eef47358728566b194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wcis=C5=82o?= Date: Fri, 16 May 2025 00:29:48 +0200 Subject: [PATCH 2/2] efivarfs: basic description --- kselftests/efivarfs/README.rst | 187 +++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 kselftests/efivarfs/README.rst diff --git a/kselftests/efivarfs/README.rst b/kselftests/efivarfs/README.rst new file mode 100644 index 0000000000000..7181f864911ff --- /dev/null +++ b/kselftests/efivarfs/README.rst @@ -0,0 +1,187 @@ +About +===== + +The ``efivarfs`` is a file system allowing for displaying, modifying, +creating and removing the UEFI (Unified Extensible Firmware Interface) +variables. + +https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface + +:: + + UEFI defines variables through which an operating system can interact with the + firmware. UEFI boot variables are used by the boot loader and used by the + operating system only for early system start-up. UEFI runtime variables allow an + operating system to manage certain settings of the firmware like the UEFI boot + manager or managing the keys for UEFI Secure Boot protocol etc. + +The collection defines a single test: ``efivarfs:efivarfs.sh``. + +Requirements and applicability +============================== + +The test requires ``CONFIG_EFIVAR_FS`` option to be enabled in the +Kernel. It's ``y`` in all Rocky versions: + +.. code:: shell + + grep CONFIG_EFIVAR_FS kernel-src-tree-{ciqlts8_6,ciqlts8_8,ciqlts9_2,ciqlts9_4}/configs/* + +:: + + kernel-src-tree-ciqlts8_6/configs/kernel-aarch64-debug.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_6/configs/kernel-aarch64.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_6/configs/kernel-x86_64-debug.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_6/configs/kernel-x86_64.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_8/configs/kernel-aarch64-debug.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_8/configs/kernel-aarch64.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_8/configs/kernel-x86_64-debug.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts8_8/configs/kernel-x86_64.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_2/configs/kernel-aarch64-64k-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_2/configs/kernel-aarch64-64k-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_2/configs/kernel-aarch64-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_2/configs/kernel-aarch64-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_2/configs/kernel-x86_64-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_2/configs/kernel-x86_64-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-aarch64-64k-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-aarch64-64k-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-aarch64-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-aarch64-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-aarch64-rt-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-aarch64-rt-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-x86_64-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-x86_64-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-x86_64-rt-debug-rhel.config:CONFIG_EFIVAR_FS=y + kernel-src-tree-ciqlts9_4/configs/kernel-x86_64-rt-rhel.config:CONFIG_EFIVAR_FS=y + +However, because the base cloud images for the ``x86_64`` architecture +all use BIOS by default, the ``efivarfs`` can't really be tested on +these systems without some serious booting reconfiguration. The +``/sys/firmware/efi/efivars`` path where the ``efivarfs`` is typically +mounted (and where ``efivarfs:efivarfs.sh`` test *expects* it to be +mounted) is missing, and the test is skipped: + +:: + + # selftests: efivarfs: efivarfs.sh + # skip all tests: efivarfs is not mounted on /sys/firmware/efi/efivars + ok 1 selftests: efivarfs: efivarfs.sh # SKIP + +In contrast, the cloud base images for ``aarch64`` use UEFI and +``efivarfs`` is mounted at ``/sys/firmware/efi/efivars`` on startup by +default. + +.. code:: shell + + mount + +:: + + … + efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) + … + +.. code:: shell + + ls -l /sys/firmware/efi/efivars + +:: + + -rw-r--r--. 1 root root 66 May 15 21:40 Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 85 May 15 21:40 Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 92 May 15 21:40 Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 92 May 15 21:40 Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 132 May 15 21:40 Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 6 May 15 21:40 BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 8 May 15 21:40 BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 14 May 15 21:40 BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 8 May 15 21:40 certdb-d9bee56e-75dc-49d9-b4d7-b534210f637a + -rw-r--r--. 1 root root 8 May 15 21:40 certdbv-d9bee56e-75dc-49d9-b4d7-b534210f637a + -rw-r--r--. 1 root root 82 May 15 21:40 ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 571 May 15 21:40 ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 67 May 15 21:40 ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 571 May 15 21:40 ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 67 May 15 21:40 ErrOut-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 571 May 15 21:40 ErrOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 18 May 15 21:40 Key0000-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 18 May 15 21:40 Key0001-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 8 May 15 21:40 Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 17 May 15 21:40 LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 1729 May 15 21:40 MokListRT-605dab50-e046-4300-abb6-3dd810dd8b23 + -rw-r--r--. 1 root root 5 May 15 21:40 MokListTrustedRT-605dab50-e046-4300-abb6-3dd810dd8b23 + -rw-r--r--. 1 root root 80 May 15 21:40 MokListXRT-605dab50-e046-4300-abb6-3dd810dd8b23 + -rw-r--r--. 1 root root 8 May 15 21:40 MTC-eb704011-1402-11d3-8e77-00a0c969723b + -rw-r--r--. 1 root root 12 May 15 21:40 OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 7 May 15 21:40 PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 22 May 15 21:40 PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 114 May 15 21:40 PlatformRecovery0000-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 22 May 15 21:40 SbatLevelRT-605dab50-e046-4300-abb6-3dd810dd8b23 + -rw-r--r--. 1 root root 5 May 15 21:40 SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 5 May 15 21:40 SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 68 May 15 21:40 SignatureSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 6 May 15 21:40 Timeout-8be4df61-93ca-11d2-aa0d-00e098032b8c + -rw-r--r--. 1 root root 5 May 15 21:40 VarErrorFlag-04b37fe8-f6ae-480b-bdd5-37d98c5e89aa + -rw-r--r--. 1 root root 5 May 15 21:40 VendorKeys-8be4df61-93ca-11d2-aa0d-00e098032b8c + +The ``efivarfs:efivarfs.sh`` test should run fine, with a message +similar to this: + +:: + + # selftests: efivarfs: efivarfs.sh + # -------------------- + # running test_create + # -------------------- + # ./efivarfs.sh: line 52: /sys/firmware/efi/efivars/test_create-210be57c-9849-4fc7-a635-e6382d1aec27: Operation not permitted + # [PASS] + # -------------------- + # running test_create_empty + # -------------------- + # [PASS] + # -------------------- + # running test_create_read + # -------------------- + # [PASS] + # -------------------- + # running test_delete + # -------------------- + # [PASS] + # -------------------- + # running test_zero_size_delete + # -------------------- + # [PASS] + # -------------------- + # running test_open_unlink + # -------------------- + # [PASS] + # -------------------- + # running test_valid_filenames + # -------------------- + # [PASS] + # -------------------- + # running test_invalid_filenames + # -------------------- + # [PASS] + ok 1 selftests: efivarfs: efivarfs.sh + +No variability of the test's results was observed across the history of +around 80 runs in total, on all versions {``ciqlts8_6``, ``ciqlts8_8``, +``ciqlts9_2``, ``ciqlts9_4``}; the test is stable. + +Related files +============= + +``Documentation/filesystems/efivarfs.rst`` +------------------------------------------ + +Official, short documentation of the ``efivarfs`` filesystem. + +``tools/testing/selftests/efivarfs/efivarfs.sh`` +------------------------------------------------ + +The script realizing the collection's only test. Each of the subtests +(eg. ``test_open_unlink``) have its corresponding bash function with the +same name defined there. The ``test_create_read`` subtest requires the +compiled ``create-read`` binary and ``test_open_unlink`` requires +``open-unlink``. The rest is realized using standard shell file +operations.