docs: kernel_feat.py: fix potential command injection[ Upstream commit c48a7c44a1d02516309015b6134c9bb982e17008 ]The kernel-feat directive passes its argument straight to the shell.This is unfor
docs: kernel_feat.py: fix potential command injection[ Upstream commit c48a7c44a1d02516309015b6134c9bb982e17008 ]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 usesubprocess.check_call() instead of subprocess.Popen(shell=True).This also makes the code shorter.This is analogous to commit 3231dd586277 ("docs: kernel_abi.py: fixcommand injection") where we did exactly the same thing forkernel_abi.py, somehow I completely missed this one.Link: https://fosstodon.org/@jani/111676532203641247Reported-by: Jani Nikula <jani.nikula@intel.com>Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>Cc: stable@vger.kernel.orgSigned-off-by: Jonathan Corbet <corbet@lwn.net>Link: https://lore.kernel.org/r/20240110174758.3680506-1-vegard.nossum@oracle.comSigned-off-by: Sasha Levin <sashal@kernel.org>
show more ...
Merge tag 'docs-6.6' of git://git.lwn.net/linuxPull documentation updates from Jonathan Corbet: "Documentation work keeps chugging along; this includes: - Work from Carlos Bilbao to integrate
Merge tag 'docs-6.6' of git://git.lwn.net/linuxPull documentation updates from Jonathan Corbet: "Documentation work keeps chugging along; this includes: - Work from Carlos Bilbao to integrate rustdoc output into the generated HTML documentation. This took some work to figure out how to do it without slowing the docs build and without creating people who don't have Rust installed, but Carlos got there - Move the loongarch and mips architecture documentation under Documentation/arch/ - Some more maintainer documentation from Jakub ... plus the usual assortment of updates, translations, and fixes"* tag 'docs-6.6' of git://git.lwn.net/linux: (56 commits) Docu: genericirq.rst: fix irq-example input: docs: pxrc: remove reference to phoenix-sim Documentation: serial-console: Fix literal block marker docs/mm: remove references to hmm_mirror ops and clean typos docs/zh_CN: correct regi_chg(),regi_add() to region_chg(),region_add() Documentation: Fix typos Documentation/ABI: Fix typos scripts: kernel-doc: fix macro handling in enums scripts: kernel-doc: parse DEFINE_DMA_UNMAP_[ADDR|LEN] Documentation: riscv: Update boot image header since EFI stub is supported Documentation: riscv: Add early boot document Documentation: arm: Add bootargs to the table of added DT parameters docs: kernel-parameters: Refer to the correct bitmap function doc: update params of memhp_default_state= docs: Add book to process/kernel-docs.rst docs: sparse: fix invalid link addresses docs: vfs: clean up after the iterate() removal docs: Add a section on surveys to the researcher guidelines docs: move mips under arch docs: move loongarch under arch ...
docs: move s390 under archand fix all in-tree references.Architecture-specific documentation is being moved into Documentation/arch/as a way of cleaning up the top-level documentation directory
docs: move s390 under archand fix all in-tree references.Architecture-specific documentation is being moved into Documentation/arch/as a way of cleaning up the top-level documentation directory and makingthe docs hierarchy more closely match the source hierarchy.Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>Acked-by: Jonathan Corbet <corbet@lwn.net>Acked-by: Heiko Carstens <hca@linux.ibm.com>Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>Reviewed-by: Randy Dunlap <rdunlap@infradead.org>Link: https://lore.kernel.org/r/20230718045550.495428-1-costa.shul@redhat.comSigned-off-by: Heiko Carstens <hca@linux.ibm.com>