linux/Documentation/arch/x86
Vegard Nossum f7f4ff54c4 docs: kernel_feat.py: fix potential command injection
commit c48a7c44a1 upstream.

The kernel-feat directive passes its argument straight to the shell.
This is unfortunate and unnecessary.

Let's always use paths relative to $srctree/Documentation/ and use
subprocess.check_call() instead of subprocess.Popen(shell=True).

This also makes the code shorter.

This is analogous to commit 3231dd5862 ("docs: kernel_abi.py: fix
command injection") where we did exactly the same thing for
kernel_abi.py, somehow I completely missed this one.

Link: https://fosstodon.org/@jani/111676532203641247
Reported-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240110174758.3680506-1-vegard.nossum@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-01-20 11:53:02 +01:00
..
i386 docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
x86_64 docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
amd-memory-encryption.rst x86/sev/docs: Update document URL in amd-memory-encryption.rst 2023-09-22 11:29:23 +02:00
amd_hsmp.rst platform/x86/amd/hsmp: add support for metrics tbl 2023-10-12 16:29:58 +03:00
boot.rst x86/Documentation: Indent 'note::' directive for protocol version number note 2023-11-06 12:53:57 +01:00
booting-dt.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
buslock.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
cpuinfo.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
earlyprintk.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
elf_auxvec.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
entry_64.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
exception-tables.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-20 11:53:02 +01:00
ifs.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
index.rst Documentation/x86: Add CET shadow stack description 2023-08-02 15:01:50 -07:00
intel-hfi.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
intel_txt.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
iommu.rst x86/iommu/docs: Update AMD IOMMU specification document URL 2023-09-24 10:47:35 +02:00
kernel-stacks.rst Documentation: update kernel stack for x86_64 2023-05-02 10:59:47 -06:00
mds.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
microcode.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
mtrr.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
orc-unwinder.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
pat.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
pti.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
resctrl.rst x86/resctrl: Display RMID of resource group 2023-10-17 14:05:40 +02:00
sgx.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
shstk.rst x86/shstk: Add ARCH_SHSTK_STATUS 2023-08-02 15:01:51 -07:00
sva.rst IOMMU Updates for Linux 6.4 2023-04-30 13:00:38 -07:00
tdx.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
tlb.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
topology.rst x86/cpu: Move cpu_l[l2]c_id into topology info 2023-10-10 14:38:18 +02:00
tsx_async_abort.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
usb-legacy-support.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00
xstate.rst * Improve AMX documentation along with example code 2023-04-28 09:32:34 -07:00
zero-page.rst docs: move x86 documentation into Documentation/arch/ 2023-03-30 12:58:51 -06:00