TO: Wenyu Zhang <[email protected]>
CC: Pravin B Shelar <[email protected]>

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d7e5a72b951a4ef6d97b2aa43cad37f237ba8030
commit: 8f0aad6f35f7e8b3118b7b8a65e8e76b135cc4cb [5149/6788] openvswitch: 
Extend packet attribute for egress tunnel info
:::::: branch date: 15 hours ago
:::::: commit date: 5 days ago

New smatch warnings:
net/openvswitch/flow_netlink.c:1505 ovs_match_init() error: __builtin_memset() 
'key' too small (388 vs 392)

Old smatch warnings:
net/openvswitch/flow_netlink.c:650 metadata_from_nlattrs() warn: 'in_port' 
4294967295 can't fit into 65535 '(match)->mask->key.phy.in_port'

git remote add next 
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update next
git checkout 8f0aad6f35f7e8b3118b7b8a65e8e76b135cc4cb
vim +/key +1505 net/openvswitch/flow_netlink.c

e6445719 Pravin B Shelar 2013-10-03  1489  {
25cd9ba0 Simon Horman    2014-10-06  1490       if ((eth_type == 
htons(ETH_P_IP) || eth_type == htons(ETH_P_IPV6)) &&
1139e241 Jarno Rajahalme 2014-05-05  1491           (flow_key->tp.src || 
flow_key->tp.dst))
e6445719 Pravin B Shelar 2013-10-03  1492               return 0;
e6445719 Pravin B Shelar 2013-10-03  1493  
e6445719 Pravin B Shelar 2013-10-03  1494       return -EINVAL;
e6445719 Pravin B Shelar 2013-10-03  1495  }
e6445719 Pravin B Shelar 2013-10-03  1496  
e6445719 Pravin B Shelar 2013-10-03  1497  void ovs_match_init(struct 
sw_flow_match *match,
e6445719 Pravin B Shelar 2013-10-03  1498                   struct sw_flow_key 
*key,
e6445719 Pravin B Shelar 2013-10-03  1499                   struct sw_flow_mask 
*mask)
e6445719 Pravin B Shelar 2013-10-03  1500  {
e6445719 Pravin B Shelar 2013-10-03  1501       memset(match, 0, 
sizeof(*match));
e6445719 Pravin B Shelar 2013-10-03  1502       match->key = key;
e6445719 Pravin B Shelar 2013-10-03  1503       match->mask = mask;
e6445719 Pravin B Shelar 2013-10-03  1504  
e6445719 Pravin B Shelar 2013-10-03 @1505       memset(key, 0, sizeof(*key));
e6445719 Pravin B Shelar 2013-10-03  1506  
e6445719 Pravin B Shelar 2013-10-03  1507       if (mask) {
e6445719 Pravin B Shelar 2013-10-03  1508               memset(&mask->key, 0, 
sizeof(mask->key));
e6445719 Pravin B Shelar 2013-10-03  1509               mask->range.start = 
mask->range.end = 0;
e6445719 Pravin B Shelar 2013-10-03  1510       }
e6445719 Pravin B Shelar 2013-10-03  1511  }
e6445719 Pravin B Shelar 2013-10-03  1512  
e6445719 Pravin B Shelar 2013-10-03  1513  static int 
validate_and_copy_set_tun(const struct nlattr *attr,

:::::: The code at line 1505 was first introduced by commit
:::::: e64457191a259537bbbfaebeba9a8043786af96f openvswitch: Restructure 
datapath.c and flow.c

:::::: TO: Pravin B Shelar <[email protected]>
:::::: CC: Jesse Gross <[email protected]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
[email protected]
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to