Skip to content

Lockdown patches for 5.2

Matthew Garrett bpf kexec linux-acpi linux-api linux-integrity linux-pci linux-pm linux-security-module linux-serial linuxppc-dev lkml netdev platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v32 Latest27 patches 17 repliesIn review
  2. v3125 patches 32 repliesSuperseded
  3. v127 patches 22 repliesSuperseded

Patches in v32 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27Add the ability to lock down access to the running kernel imageDocumentation/ABI/testing/lockdown Documentation/admin-guide/kernel-parameters.txt Documentation/admin-guide/lockdown.rst +6 more+314 -111 replies
2/27Enforce module signatures if the kernel is locked downkernel/module.c+32 -70 replies
3/27Restrict /dev/{mem,kmem,port} when the kernel is locked downdrivers/char/mem.c+2 -00 replies
4/27kexec_load: Disable at runtime if the kernel is locked downkernel/kexec.c+8 -00 replies
5/27Copy secure_boot flag in boot params across kexec rebootarch/x86/kernel/kexec-bzimage64.c+1 -00 replies
6/27kexec_file: split KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCEarch/x86/Kconfig crypto/asymmetric_keys/verify_pefile.c include/linux/kexec.h +1 more+61 -150 replies
7/27kexec_file: Restrict at runtime if the kernel is locked downkernel/kexec_file.c+6 -00 replies
8/27hibernate: Disable when the kernel is locked downkernel/power/hibernate.c+2 -10 replies
9/27uswsusp: Disable when the kernel is locked downkernel/power/user.c+3 -00 replies
10/27PCI: Lock down BAR access when the kernel is locked downdrivers/pci/pci-sysfs.c drivers/pci/proc.c drivers/pci/syscall.c+19 -20 replies
11/27x86: Lock down IO port access when the kernel is locked downarch/x86/kernel/ioport.c+4 -21 reply
12/27x86/msr: Restrict MSR access when the kernel is locked downarch/x86/kernel/msr.c+8 -00 replies
13/27ACPI: Limit access to custom_method when the kernel is locked downdrivers/acpi/custom_method.c+3 -00 replies
14/27acpi: Ignore acpi_rsdp kernel param when the kernel has been locked downdrivers/acpi/osl.c+2 -10 replies
15/27acpi: Disable ACPI table override if the kernel is locked downdrivers/acpi/tables.c+5 -00 replies
16/27Prohibit PCMCIA CIS storage when the kernel is locked downdrivers/pcmcia/cistpl.c+4 -00 replies
17/27Lock down TIOCSSERIALdrivers/tty/serial/serial_core.c+6 -00 replies
18/27Lock down module params that specify hardware parameters (eg. ioport)kernel/params.c+21 -50 replies
19/27x86/mmiotrace: Lock down the testmmiotrace modulearch/x86/mm/testmmiotrace.c+3 -02 replies
20/27Lock down /proc/kcorefs/proc/kcore.c+2 -00 replies
21/27Lock down tracing and perf kprobes when in confidentiality modekernel/trace/trace_kprobe.c+3 -00 replies
22/27bpf: Restrict bpf when kernel lockdown is in confidentiality modekernel/trace/bpf_trace.c+11 -01 reply
23/27Lock down perf when in confidentiality modekernel/events/core.c+6 -00 replies
24/27kexec: Allow kexec_file() with appropriate IMA policy when locked downinclude/linux/ima.h kernel/kexec_file.c security/integrity/ima/ima.h +2 more+68 -20 replies
25/27lockdown: Print current->comm in restriction messagessecurity/lock_down.c+2 -20 replies
26/27debugfs: Restrict debugfs when the kernel is locked downfs/debugfs/file.c fs/debugfs/inode.c+56 -20 replies
27/27tracefs: Restrict tracefs when the kernel is locked downfs/tracefs/inode.c+39 -12 replies

Reviews trailers per patch

9 of 27 patches have a Reviewed-by or Acked-by.

PatchDave YoungJiri BohacBjorn HelgaasKees CookThomas GleixnerMimi ZoharSteven Rostedt (VMware)
1/27
2/27
3/27
4/27A-b
5/27
6/27R-b
7/27R-b
8/27
9/27
10/27A-b
11/27R-b
12/27A-b R-b
13/27
14/27
15/27
16/27
17/27
18/27
19/27R-b A-b
20/27
21/27
22/27
23/27
24/27A-b
25/27
26/27
27/27R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v32 thread

Cover letter [PATCH V32 0/27] Lockdown patches for 5.2

Fairly minimal changes since the last set: tracefs is restricted at Steven's suggestion (but could do with a once-over, I'm very much not a vfs person), debugfs is back to Dave's original implementation. I've also fixed up a malformed patch that resulted from me getting confused during rebase, and added some further documentation to the initial patch in order to give a reference for the design goals.