pmaports/device/linux-samsung-klte
Alexey Min 2fb18b5d30
samsung-klte: backport memfd_create() syscall (!479)
This brings in several patches needed to add support for a
memfd_create() syscall into kernel version 3.4 from kernel
version 3.17. This is required for running lxc >= 3.1.0-r1
with security patch that fixes CVE-2019-5736.

In short, security issue was: in a privileged container root
process could overwrite lxc-start executable by opening its
file descriptor and rewriting executable contents. This is
where memfd comes to help: you can create an in-memory file,
copy your executable there, and place a set of SEALS to protect
it from modifying at a deep level. Then you fexecve() that fd
and you're safe.

For example, pulseaudio also can benefit from having
memfd_create() implemented.

This backports the following commits from upstream linux:
 - dd37978c50bc8b354e5c4633f69387f16572fdac: cache the value
   of file_inode() in struct file

   commit from linux-3.10 to have an f_inode member inside
   struct file and a helper function file_inode() that is
   used in some of the following commits

 - 40e041a2c858b3caefc757e26cb85bfceae5062b shm: add sealing API

   from 3.17: security measure called SEALS, that you can put
   on memfd file to restrict operations on it

 - 9183df25fe7b194563db3fec6dc3202a5855839c shm: add memfd_create()
   syscall

   also from 3.17

 - 503e6636b6f96056210062be703356f4253b6db9 asm-generic: add
   memfd_create system call to unistd.h

 - e57e41931134e09fc6c03c8d4eb19d516cc6e59b ARM: wire up
   memfd_create syscall

The last two are needed to make the syscall visible/usable from
userspace, one in generic context, other for ARM arch.

The test program (https://github.com/minlexx/test_memfd/) was
written to verify that this works.

[ci:skip-build]: already built successfully in CI
2019-07-09 21:17:33 +02:00
..
0001_fix_return_address.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0002_gpu-msm-fix-gcc5-compile.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0003-Reduce-battery-and-touchscreen-log-spam.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0004-fix-video-argb-setting.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0005-mdss_fb-Always-allow-to-allocate-map-framebuffer-mem.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0006-Fix-xt_connbytes-compile-warning.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0007-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0008-Backport-vfs-make-O_PATH-file-descriptors-usable-for.patch linux-samsung-klte: tidy up patches and add new: (!321) 2019-04-18 23:19:03 +02:00
0009-Backport-cache-the-value-of-file_inode-in-struct-file.patch samsung-klte: backport memfd_create() syscall (!479) 2019-07-09 21:17:33 +02:00
0010-Backport-shm-add-sealing-API.patch samsung-klte: backport memfd_create() syscall (!479) 2019-07-09 21:17:33 +02:00
0011-Backport-shm-add-memfd_create-syscall.patch samsung-klte: backport memfd_create() syscall (!479) 2019-07-09 21:17:33 +02:00
0012-Backport-asm-generic-add-memfd_create-system-call-to-unistd.h.patch samsung-klte: backport memfd_create() syscall (!479) 2019-07-09 21:17:33 +02:00
0013-Backport-ARM-wire-up-memfd_create-syscall.patch samsung-klte: backport memfd_create() syscall (!479) 2019-07-09 21:17:33 +02:00
APKBUILD samsung-klte: backport memfd_create() syscall (!479) 2019-07-09 21:17:33 +02:00
compiler-gcc6.h
config-samsung-klte.armv7 linux-samsung-klte: base downstream kernel source on lineage-14.1 branch (!321) 2019-04-18 23:17:53 +02:00