mm/memory-failure: poison read receives SIGKILL instead of SIGBUS if mmaped more...
[sfrench/cifs-2.6.git] / mm / mincore.c
index f9a9dbe8cd330107b312aef9764dbc74b8f6a766..49b6fa2f6aa1d6ef84eddfddbbf9754ae7858893 100644 (file)
@@ -256,6 +256,8 @@ SYSCALL_DEFINE3(mincore, unsigned long, start, size_t, len,
        unsigned long pages;
        unsigned char *tmp;
 
+       start = untagged_addr(start);
+
        /* Check the start address: needs to be page-aligned.. */
        if (start & ~PAGE_MASK)
                return -EINVAL;