History

Merge branch 'akpm' (patches from Andrew)

Merge updates from Andrew Morton: "Incoming: - a small number of updates to scripts/, ocfs2 and fs/buffer.c - most of MM I still have quite a lot of material (mostly not MM) staged after linux-next due to -next dependencies. I'll send those across next week as the preprequisites get merged up" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (135 commits) mm/page_io.c: annotate refault stalls from swap_readpage mm/Kconfig: fix trivial help text punctuation mm/Kconfig: fix indentation mm/memory_hotplug.c: remove __online_page_set_limits() mm: fix typos in comments when calling __SetPageUptodate() mm: fix struct member name in function comments mm/shmem.c: cast the type of unmap_start to u64 mm: shmem: use proper gfp flags for shmem_writepage() mm/shmem.c: make array 'values' static const, makes object smaller userfaultfd: require CAP_SYS_PTRACE for UFFD_FEATURE_EVENT_FORK fs/userfaultfd.c: wp: clear VM_UFFD_MISSING or VM_UFFD_WP during userfaultfd_register() userfaultfd: wrap the common dst_vma check into an inlined function userfaultfd: remove unnecessary WARN_ON() in __mcopy_atomic_hugetlb() userfaultfd: use vma_pagesize for all huge page size calculation mm/madvise.c: use PAGE_ALIGN[ED] for range checking mm/madvise.c: replace with page_size() in madvise_inject_error() mm/mmap.c: make vma_merge() comment more easy to understand mm/hwpoison-inject: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops autonuma: reduce cache footprint when scanning page tables autonuma: fix watermark checking in migrate_balanced_pgdat() ...

Linus Torvalds committed 6 years ago

Commit 596cf452 parents c3bfc5d 937790695 files · +2661 −1506Browse files

Showing the changes to kernel (3 of 95 files). Show all

Unified · Split

3 files
  1. kernel/events/uprobes.c +1 −1
  2. kernel/fork.c +4 −0
  3. kernel/sysctl.c +1 −1
kernel/events/uprobes.c+1−1
@@ -1457,7 +1457,7 @@ static int xol_add_vma(struct mm_struct *mm, struct xol_area *area) · 1456 unmodified lines
14571457 /* Try to map as high as possible, this is only a hint. */
14581458 area->vaddr = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE,
14591459 PAGE_SIZE, 0, 0);
1460− if (area->vaddr & ~PAGE_MASK) {
1460+ if (IS_ERR_VALUE(area->vaddr)) {
14611461 ret = area->vaddr;
14621462 goto fail;
14631463 }
kernel/fork.c+4−0
@@ -93,6 +93,7 @@ · 92 unmodified lines
9393 #include <linux/livepatch.h>
9494 #include <linux/thread_info.h>
9595 #include <linux/stackleak.h>
96+#include <linux/kasan.h>
9697
9798 #include <asm/pgtable.h>
9899 #include <asm/pgalloc.h>
@@ -223,6 +224,9 @@ static unsigned long *alloc_thread_stack_node(struct task_struct *tsk, int node) · 124 unmodified lines
223224 if (!s)
224225 continue;
225226
227+ /* Clear the KASAN shadow of the stack. */
228+ kasan_unpoison_shadow(s->addr, THREAD_SIZE);
229+
226230 /* Clear stale pointers from reused stack. */
227231 memset(s->addr, 0, THREAD_SIZE);
228232
kernel/sysctl.c+1−1
@@ -1466,7 +1466,7 @@ static struct ctl_table vm_table[] = { · 1465 unmodified lines
14661466 .procname = "drop_caches",
14671467 .data = &sysctl_drop_caches,
14681468 .maxlen = sizeof(int),
1469− .mode = 0644,
1469+ .mode = 0200,
14701470 .proc_handler = drop_caches_sysctl_handler,
14711471 .extra1 = SYSCTL_ONE,
14721472 .extra2 = &four,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t