lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 1 Oct 2014 00:55:48 -0700 From: Andy Zhou <azhou@...ira.com> To: davem@...emloft.net Cc: netdev@...r.kernel.org, Andy Zhou <azhou@...ira.com> Subject: [datapath minor fixes 3/3] datapath: serializing GENEVE options based on flow key's tun_flags TUNNEL_OPTIONS_PRESENT should always be checked against the tun_flgs bits in a flow key, for both flow and mask serialization. Signed-off-by: Andy Zhou <azhou@...ira.com> --- datapath/flow_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index a3f34f1..35feedc 100644 --- a/datapath/flow_netlink.c +++ b/datapath/flow_netlink.c @@ -1122,7 +1122,7 @@ int ovs_nla_put_flow(const struct sw_flow_key *swkey, if ((swkey->tun_key.ipv4_dst || is_mask)) { const struct geneve_opt *opts = NULL; - if (output->tun_key.tun_flags & TUNNEL_OPTIONS_PRESENT) + if (swkey->tun_key.tun_flags & TUNNEL_OPTIONS_PRESENT) opts = GENEVE_OPTS(output, swkey->tun_opts_len); if (ipv4_tun_to_nlattr(skb, &output->tun_key, opts, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists