]> git.baikalelectronics.ru Git - kernel.git/commit
ife: error out when nla attributes are empty
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 23 Jul 2019 04:43:00 +0000 (21:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2019 18:21:39 +0000 (11:21 -0700)
commit8e761b8e4b0b42033b762196a50d46c2c75fa180
treec74a1286f66589e6e7b5fe0c82982b91cdf47bc8
parente4d2cf26e878f9454d768294faabcbdf8179f373
ife: error out when nla attributes are empty

act_ife at least requires TCA_IFE_PARMS, so we have to bail out
when there is no attribute passed in.

Reported-by: syzbot+fbb5b288c9cb6a2eeac4@syzkaller.appspotmail.com
Fixes: b2e88d736799 ("introduce IFE action")
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ife.c