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:	Wed, 22 Jul 2015 08:53:58 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Roopa Prabhu <roopa@...ulusnetworks.com>
Cc:	kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 187/208] net/mpls/mpls_iptunnel.c:73:19: sparse:
 incompatible types in comparison expression (different address spaces)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   16040894b26af9f85d9395f072c53d76a44eba21
commit: e3e4712ec0961ed586a8db340bd994c4ad7f5dba [187/208] mpls: ip tunnel support
reproduce:
  # apt-get install sparse
  git checkout e3e4712ec0961ed586a8db340bd994c4ad7f5dba
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> net/mpls/mpls_iptunnel.c:73:19: sparse: incompatible types in comparison expression (different address spaces)

vim +73 net/mpls/mpls_iptunnel.c

    57		/* Obtain the ttl */
    58		if (skb->protocol == htons(ETH_P_IP)) {
    59			ttl = ip_hdr(skb)->ttl;
    60			rt = (struct rtable *)dst;
    61			lwtstate = rt->rt_lwtstate;
    62		} else if (skb->protocol == htons(ETH_P_IPV6)) {
    63			ttl = ipv6_hdr(skb)->hop_limit;
    64			rt6 = (struct rt6_info *)dst;
    65			lwtstate = rt6->rt6i_lwtstate;
    66		} else {
    67			goto drop;
    68		}
    69	
    70		skb_orphan(skb);
    71	
    72		/* Find the output device */
  > 73		out_dev = rcu_dereference(dst->dev);
    74		if (!mpls_output_possible(out_dev) ||
    75		    !lwtstate || skb_warn_if_lro(skb))
    76			goto drop;
    77	
    78		skb_forward_csum(skb);
    79	
    80		tun_encap_info = mpls_lwtunnel_encap(lwtstate);
    81	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   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