9p: fix multiple NULL-pointer-dereferences
authorTomas Bortoli <tomasbortoli@gmail.com>
Fri, 27 Jul 2018 11:05:58 +0000 (13:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 18:01:22 +0000 (20:01 +0200)
commit3ac733eb641d974b6072c9817bd382838139979d
tree981f23f20182c8e79be4bf4ebd8f1993617bce59
parent262f38faadc43e844d849b65337c535023ccd388
9p: fix multiple NULL-pointer-dereferences

commit 10aa14527f458e9867cf3d2cc6b8cb0f6704448b upstream.

Added checks to prevent GPFs from raising.

Link: http://lkml.kernel.org/r/20180727110558.5479-1-tomasbortoli@gmail.com
Signed-off-by: Tomas Bortoli <tomasbortoli@gmail.com>
Reported-by: syzbot+1a262da37d3bead15c39@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/9p/trans_fd.c
net/9p/trans_rdma.c
net/9p/trans_virtio.c