Re: [Patch net v4] cls_flower: call nla_ok() before nla_next()

2021-01-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Fri, 15 Jan 2021 10:50:24 -0800 you wrote: > From: Cong Wang > > fl_set_enc_opt() simply checks if there are still bytes left to parse, > but this is not sufficent as syzbot seems to be able to generate > malformatted netli

[Patch net v4] cls_flower: call nla_ok() before nla_next()

2021-01-15 Thread Cong Wang
From: Cong Wang fl_set_enc_opt() simply checks if there are still bytes left to parse, but this is not sufficent as syzbot seems to be able to generate malformatted netlink messages. nla_ok() is more strict so should be used to validate the next nlattr here. And nla_validate_nested_deprecated()