twx-linux/include
Dmitry Torokhov b1ae6dc41e module: add in-kernel support for decompressing
Current scheme of having userspace decompress kernel modules before
loading them into the kernel runs afoul of LoadPin security policy, as
it loses link between the source of kernel module on the disk and binary
blob that is being loaded into the kernel. To solve this issue let's
implement decompression in kernel, so that we can pass a file descriptor
of compressed module file into finit_module() which will keep LoadPin
happy.

To let userspace know what compression/decompression scheme kernel
supports it will create /sys/module/compression attribute. kmod can read
this attribute and decide if it can pass compressed file to
finit_module(). New MODULE_INIT_COMPRESSED_DATA flag indicates that the
kernel should attempt to decompress the data read from file descriptor
prior to trying load the module.

To simplify things kernel will only implement single decompression
method matching compression method selected when generating modules.
This patch implements gzip and xz; more can be added later,

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2022-01-11 18:45:02 -08:00
..
acpi Power management updates for 5.17-rc1 2022-01-10 20:34:00 -08:00
asm-generic Peter Zijlstra says: 2022-01-11 17:24:45 -08:00
clocksource
crypto tpmdd updates for Linux v5.17 2022-01-11 12:58:41 -08:00
drm
dt-bindings gpio updates for v5.17 2022-01-11 12:31:35 -08:00
keys keys: X.509 public key issuer lookup without AKID 2022-01-09 00:18:42 +02:00
kunit
kvm
linux Peter Zijlstra says: 2022-01-11 17:24:45 -08:00
math-emu
media
memory
misc
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-01-09 17:00:17 -08:00
pcmcia
ras
rdma
scsi
soc Networking changes for 5.17. 2022-01-10 19:06:09 -08:00
sound
target
trace dlm for 5.17 2022-01-11 15:21:54 -08:00
uapi module: add in-kernel support for decompressing 2022-01-11 18:45:02 -08:00
vdso
video
xen