]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit992abbb051c0b866c36e23673ea6e0d219979220
treee14c3f431303e9fd538395bd4669fe9255252d7d
parent6924b5555d0dca54ca59e8a4d10f60fe08d5b206
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