summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2013-11-18 07:07:45 +0100
committerLorenzo Colitti <lorenzo@google.com>2014-01-30 11:39:33 -0800
commit5a0312add72620b4bd67ccb7cde887ef2b95cd6d (patch)
treee4f18870436cfe464e0262b8ca3e4ac2d1b7a44b /security/selinux/hooks.c
parentb918c72ce27090051ac9681bfd162abcec0abceb (diff)
downloadolio-linux-3.10-5a0312add72620b4bd67ccb7cde887ef2b95cd6d.tar.xz
olio-linux-3.10-5a0312add72620b4bd67ccb7cde887ef2b95cd6d.zip
ping: prevent NULL pointer dereference on write to msg_name
A plain read() on a socket does set msg->msg_name to NULL. So check for NULL pointer first. [Backport of net-next cf970c002d270c36202bd5b9c2804d3097a52da0] Bug: 12780426 Change-Id: I3df76aca2fa56478b9a33c404f7b1f0940475ef7 Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions