Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc5243d9 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

[S390] arch_setup_additional_pages arguments



arch_setup_additional_pages currently gets two arguments, the binary
format descripton and an indication if the process uses an executable
stack or not. The second argument is not used by anybody, it could
be removed without replacement.

What actually does make sense is to pass an indication if the process
uses the elf interpreter or not. The glibc code will not use anything
from the vdso if the process does not use the dynamic linker, so for
statically linked binaries the architecture backend can choose not
to map the vdso.

Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent a114a9d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -267,7 +267,7 @@ extern int ucache_bsize;
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
struct linux_binprm;
struct linux_binprm;
extern int arch_setup_additional_pages(struct linux_binprm *bprm,
extern int arch_setup_additional_pages(struct linux_binprm *bprm,
				       int executable_stack);
				       int uses_interp);
#define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b);
#define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b);


#endif /* __KERNEL__ */
#endif /* __KERNEL__ */
+1 −2
Original line number Original line Diff line number Diff line
@@ -184,8 +184,7 @@ static void dump_vdso_pages(struct vm_area_struct * vma)
 * This is called from binfmt_elf, we create the special vma for the
 * This is called from binfmt_elf, we create the special vma for the
 * vDSO and insert it into the mm struct tree
 * vDSO and insert it into the mm struct tree
 */
 */
int arch_setup_additional_pages(struct linux_binprm *bprm,
int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
				int executable_stack)
{
{
	struct mm_struct *mm = current->mm;
	struct mm_struct *mm = current->mm;
	struct page **vdso_pagelist;
	struct page **vdso_pagelist;
+1 −1
Original line number Original line Diff line number Diff line
@@ -204,7 +204,7 @@ do { \
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES
struct linux_binprm;
struct linux_binprm;
extern int arch_setup_additional_pages(struct linux_binprm *bprm,
extern int arch_setup_additional_pages(struct linux_binprm *bprm,
				       int executable_stack);
				       int uses_interp);


extern unsigned int vdso_enabled;
extern unsigned int vdso_enabled;
extern void __kernel_vsyscall;
extern void __kernel_vsyscall;
+1 −2
Original line number Original line Diff line number Diff line
@@ -59,8 +59,7 @@ int __init vsyscall_init(void)
}
}


/* Setup a VMA at program startup for the vsyscall page */
/* Setup a VMA at program startup for the vsyscall page */
int arch_setup_additional_pages(struct linux_binprm *bprm,
int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
				int executable_stack)
{
{
	struct mm_struct *mm = current->mm;
	struct mm_struct *mm = current->mm;
	unsigned long addr;
	unsigned long addr;
+1 −1
Original line number Original line Diff line number Diff line
@@ -325,7 +325,7 @@ struct linux_binprm;


#define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
extern int arch_setup_additional_pages(struct linux_binprm *bprm,
extern int arch_setup_additional_pages(struct linux_binprm *bprm,
				       int executable_stack);
				       int uses_interp);


extern int syscall32_setup_pages(struct linux_binprm *, int exstack);
extern int syscall32_setup_pages(struct linux_binprm *, int exstack);
#define compat_arch_setup_additional_pages	syscall32_setup_pages
#define compat_arch_setup_additional_pages	syscall32_setup_pages
Loading