Merge tag 'pull-old-dio' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / fs / binfmt_elf.c
index 9a780fa..8a884e7 100644 (file)
@@ -46,6 +46,7 @@
 #include <linux/cred.h>
 #include <linux/dax.h>
 #include <linux/uaccess.h>
+#include <linux/rseq.h>
 #include <asm/param.h>
 #include <asm/page.h>
 
@@ -288,6 +289,10 @@ create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
        if (bprm->have_execfd) {
                NEW_AUX_ENT(AT_EXECFD, bprm->execfd);
        }
+#ifdef CONFIG_RSEQ
+       NEW_AUX_ENT(AT_RSEQ_FEATURE_SIZE, offsetof(struct rseq, end));
+       NEW_AUX_ENT(AT_RSEQ_ALIGN, __alignof__(struct rseq));
+#endif
 #undef NEW_AUX_ENT
        /* AT_NULL is zero; clear the rest too */
        memset(elf_info, 0, (char *)mm->saved_auxv +