The patch titled Subject: proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix has been added to the -mm tree. Its filename is proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix fix proc_map_files_lookup() return value, per Andrei Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Cc: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx> Cc: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Michal Koutný <mkoutny@xxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Roman Gushchin <guro@xxxxxx> Cc: Andrei Vagin <avagin@xxxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/base.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/proc/base.c~proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix +++ a/fs/proc/base.c @@ -2117,6 +2117,7 @@ static struct dentry *proc_map_files_loo if (down_read_killable(&mm->mmap_sem)) goto out_put_mm; + result = ERR_PTR(-ENOENT); vma = find_exact_vma(mm, vm_start, vm_end); if (!vma) goto out_no_vma; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-mmu_gather-remove-__tlb_reset_range-for-force-flush-checkpatch-fixes.patch scripts-spellingtxt-drop-sepc-from-the-misspelling-list-fix.patch ocfs2-clear-zero-in-unaligned-direct-io-checkpatch-fixes.patch mm.patch include-linux-pfn_th-remove-pfn_t_to_virt.patch mm-swap-use-rbtree-for-swap_extent-fix.patch proc-use-down_read_killable-mmap_sem-for-proc-pid-map_files-fix.patch vmcore-add-a-kernel-parameter-novmcoredd-fix.patch vmcore-add-a-kernel-parameter-novmcoredd-fix-fix.patch byteorder-sanity-check-toolchain-vs-kernel-endianess-checkpatch-fixes.patch selftests-ptrace-add-a-test-case-for-ptrace_get_syscall_info-checkpatch-fixes.patch linux-next-rejects.patch proc-sysctl-add-shared-variables-for-range-check-fix.patch proc-sysctl-add-shared-variables-for-range-check-fix-2-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch