diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-30 11:06:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-30 11:06:01 -0700 |
commit | 190ecde722dd0531d087a9964537560aa35c769b (patch) | |
tree | af46e0f4b847913522536b07d78a62f59ddddeff /kernel | |
parent | a5f24c795513ff098dc8e350e5733aec8796fbf8 (diff) | |
parent | 34820304cc2cd1804ee1f8f3504ec77813d29c8e (diff) | |
download | lwn-190ecde722dd0531d087a9964537560aa35c769b.tar.gz lwn-190ecde722dd0531d087a9964537560aa35c769b.zip |
Merge tag 'probes-fixes-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull probes fix from Masami Hiramatsu:
- uprobes: fix kernel info leak via "[uprobes]" vma
Fix uprobes not to expose the uninitialized page for trampoline
buffer to user space, which can leak kernel info.
* tag 'probes-fixes-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
uprobes: fix kernel info leak via "[uprobes]" vma
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/events/uprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 2ec796e2f055..4b52cb2ae6d6 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -1545,7 +1545,7 @@ static struct xol_area *__create_xol_area(unsigned long vaddr) if (!area->bitmap) goto free_area; - area->page = alloc_page(GFP_HIGHUSER); + area->page = alloc_page(GFP_HIGHUSER | __GFP_ZERO); if (!area->page) goto free_bitmap; |