]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: Fix GRE header error path
authorJiri Pirko <jiri@mellanox.com>
Mon, 6 Mar 2017 15:39:53 +0000 (16:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 07:08:57 +0000 (23:08 -0800)
commitd29f6a9f791da26dab888c93d92d1a94d7cb5607
treec4c2895201f91f0cb5cfb5d78cc96501bd468007
parentddea1c7d43c20d6ec9b43efcb23f1dcbc3c7e89d
flow_dissector: Fix GRE header error path

Now, when an unexpected element in the GRE header appears, we break so
the l4 ports are processed. But since the ports are processed
unconditionally, there will be certainly random values dissected. Fix
this by just bailing out in such situations.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c