The patch titled From: Stanislav Kinsbursky <skinsbursky@xxxxxxxxxxxxx> has been added to the -mm tree. Its filename is proc-check-vma-vm_file-before-dereferencing.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Stanislav Kinsbursky <skinsbursky@xxxxxxxxxxxxx> Subject: proc: check vma->vm_file before dereferencing Needs a changelog Signed-off-by: Stanislav Kinsbursky <skinsbursky@xxxxxxxxxxxxx> Acked-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/base.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN fs/proc/base.c~proc-check-vma-vm_file-before-dereferencing fs/proc/base.c --- a/fs/proc/base.c~proc-check-vma-vm_file-before-dereferencing +++ a/fs/proc/base.c @@ -1770,8 +1770,9 @@ static struct dentry *proc_map_files_loo if (!vma) goto out_no_vma; - result = proc_map_files_instantiate(dir, dentry, task, - (void *)(unsigned long)vma->vm_file->f_mode); + if (vma->vm_file) + result = proc_map_files_instantiate(dir, dentry, task, + (void *)(unsigned long)vma->vm_file->f_mode); out_no_vma: up_read(&mm->mmap_sem); _ Patches currently in -mm which might be from skinsbursky@xxxxxxxxxxxxx are proc-check-vma-vm_file-before-dereferencing.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html