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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 15 Nov 2012 12:53:27 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc:	netdev@...r.kernel.org
Subject: [net-next:master 30/50] net/ipv6/ip6_tunnel.c:1571:33: sparse:
 incorrect type in assignment (different base types)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   702ed3c1a9dfe4dfe112f13542d0c9d689f5008b
commit: 0b112457229d8a17198a02f3cca32922d2e374f1 [30/50] ip6tnl: add support of link creation via rtnl


sparse warnings:

+ net/ipv6/ip6_tunnel.c:1571:33: sparse: incorrect type in assignment (different base types)
net/ipv6/ip6_tunnel.c:1571:33:    expected restricted __be32 [usertype] flowinfo
net/ipv6/ip6_tunnel.c:1571:33:    got unsigned int

vim +1571 net/ipv6/ip6_tunnel.c

0b112457 Nicolas Dichtel 2012-11-14  1555  
0b112457 Nicolas Dichtel 2012-11-14  1556  	if (data[IFLA_IPTUN_LOCAL])
0b112457 Nicolas Dichtel 2012-11-14  1557  		nla_memcpy(&parms->laddr, data[IFLA_IPTUN_LOCAL],
0b112457 Nicolas Dichtel 2012-11-14  1558  			   sizeof(struct in6_addr));
0b112457 Nicolas Dichtel 2012-11-14  1559  
0b112457 Nicolas Dichtel 2012-11-14  1560  	if (data[IFLA_IPTUN_REMOTE])
0b112457 Nicolas Dichtel 2012-11-14  1561  		nla_memcpy(&parms->raddr, data[IFLA_IPTUN_REMOTE],
0b112457 Nicolas Dichtel 2012-11-14  1562  			   sizeof(struct in6_addr));
0b112457 Nicolas Dichtel 2012-11-14  1563  
0b112457 Nicolas Dichtel 2012-11-14  1564  	if (data[IFLA_IPTUN_TTL])
0b112457 Nicolas Dichtel 2012-11-14  1565  		parms->hop_limit = nla_get_u8(data[IFLA_IPTUN_TTL]);
0b112457 Nicolas Dichtel 2012-11-14  1566  
0b112457 Nicolas Dichtel 2012-11-14  1567  	if (data[IFLA_IPTUN_ENCAP_LIMIT])
0b112457 Nicolas Dichtel 2012-11-14  1568  		parms->encap_limit = nla_get_u8(data[IFLA_IPTUN_ENCAP_LIMIT]);
0b112457 Nicolas Dichtel 2012-11-14  1569  
0b112457 Nicolas Dichtel 2012-11-14  1570  	if (data[IFLA_IPTUN_FLOWINFO])
0b112457 Nicolas Dichtel 2012-11-14 @1571  		parms->flowinfo = nla_get_u32(data[IFLA_IPTUN_FLOWINFO]);
0b112457 Nicolas Dichtel 2012-11-14  1572  
0b112457 Nicolas Dichtel 2012-11-14  1573  	if (data[IFLA_IPTUN_FLAGS])
0b112457 Nicolas Dichtel 2012-11-14  1574  		parms->flags = nla_get_u32(data[IFLA_IPTUN_FLAGS]);
0b112457 Nicolas Dichtel 2012-11-14  1575  
0b112457 Nicolas Dichtel 2012-11-14  1576  	if (data[IFLA_IPTUN_PROTO])
0b112457 Nicolas Dichtel 2012-11-14  1577  		parms->proto = nla_get_u8(data[IFLA_IPTUN_PROTO]);
0b112457 Nicolas Dichtel 2012-11-14  1578  }
0b112457 Nicolas Dichtel 2012-11-14  1579  

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ