]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm: /proc/pid/smaps_rollup: fix no vma's null-deref
authorSeth Jenkins <sethjenkins@google.com>
Thu, 27 Oct 2022 15:36:52 +0000 (11:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2022 08:41:19 +0000 (09:41 +0100)
commita50ed2d28727ff605d95fb9a53be8ff94e8eaaf4
tree582a5d35c7c69df262502970bd7f637fa06fe2fe
parent31b1570677e8bf85f48be8eb95e21804399b8295
mm: /proc/pid/smaps_rollup: fix no vma's null-deref

Commit 258f669e7e88 ("mm: /proc/pid/smaps_rollup: convert to single value
seq_file") introduced a null-deref if there are no vma's in the task in
show_smaps_rollup.

Fixes: 258f669e7e88 ("mm: /proc/pid/smaps_rollup: convert to single value seq_file")
Signed-off-by: Seth Jenkins <sethjenkins@google.com>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Tested-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/proc/task_mmu.c