Skip to content

Commit

Permalink
um: vdso: fix vdso page executable, only happened with mem=512m, not …
Browse files Browse the repository at this point in the history
…in mem=1G

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
  • Loading branch information
thehajime committed Oct 11, 2024
1 parent 4fcbec5 commit d4b9128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/um/vdso/vma.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <asm/page.h>
#include <asm/elf.h>
#include <linux/init.h>
#include <os.h>

static unsigned int __read_mostly vdso_enabled = 1;
unsigned long um_vdso_addr;
Expand Down Expand Up @@ -45,6 +46,7 @@ static int __init init_vdso(void)
#ifndef CONFIG_MMU
/* this is fine with NOMMU as everything is accessible */
um_vdso_addr = (unsigned long)page_address(um_vdso);
os_protect_memory((void *)um_vdso_addr, vdso_end - vdso_start, 1, 1, 1);
pr_debug("vdso_start=%lx um_vdso_addr=%lx pg_um_vdso=%lx",
(unsigned long)vdso_start, um_vdso_addr,
(unsigned long)page_address(um_vdso));
Expand Down

0 comments on commit d4b9128

Please sign in to comment.