OSDN Git Service

tipc: Prevent invalid memory access when sending to configuration service
authorAllan Stephens <Allan.Stephens@windriver.com>
Tue, 18 Jan 2011 18:09:29 +0000 (13:09 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 23 Feb 2011 23:05:07 +0000 (18:05 -0500)
commit3f8dd9446e66f2a982ddcff38e4705cfe93eeec6
tree2ed15933e1e6825c208113eac4605ac2850117df
parent4132facae1df653b5a78e0e32956218199026812
tipc: Prevent invalid memory access when sending to configuration service

Reject TIPC configuration service messages without a full message
header.  Previously, an application that sent a message to the
configuration service that was too short could cause the validation
code to access an uninitialized field in the msghdr structure,
resulting in a memory access exception.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c