OSDN Git Service

netlink: have length check of rtnl msg before deref
authorHong zhi guo <honkiko@gmail.com>
Mon, 25 Mar 2013 17:36:33 +0000 (17:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2013 16:35:27 +0000 (12:35 -0400)
commitde179c8c12e9e5a292269fa59e7c26ca797dc7bf
treee14c3f431303e9fd538395bd4669fe9255252d7d
parent8dc57da2e23085642cad20d11385e13e079715c4
netlink: have length check of rtnl msg before deref

When the legacy array rtm_min still exists, the length check within
these functions is covered by rtm_min[RTM_NEWTFILTER],
rtm_min[RTM_NEWQDISC] and rtm_min[RTM_NEWTCLASS].

But after Thomas Graf removed rtm_min several days ago, these checks
are missing. Other doit functions should be OK.

Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c
net/sched/sch_api.c