-
Kirill Tkhai authored
Do not ask kernel to transfer more opts than we really need. When we're sending fds with flags, we ask kernel to copy the whole struct scm_fdset::opts array, like we'd send CR_SCM_MAX_FD fds, even if really we're transmitting only one fd. send_fds() does not initializes the rest of array memory, but kernel transmits this garbage. Also, recv_msg() does not return it to userspace. This patch makes kernel do not transmit uninitialized garbage. travis-ci: success for pie: Optimize send_fds() and recv_fds() with opts Signed-off-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
26162cac
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| piegen | ||
| Makefile | ||
| Makefile.library | ||
| log-simple.c | ||
| parasite-vdso.c | ||
| parasite.c | ||
| pie-reloc.lds.S.in | ||
| pie-relocs.c | ||
| pie-relocs.h | ||
| pie.lds.S.in | ||
| restorer.c | ||
| util-fd.c | ||
| util-vdso.c | ||
| util.c |