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]
Message-ID: <201506160612.ZDOvKwVp%fengguang.wu@intel.com>
Date:	Tue, 16 Jun 2015 06:46:15 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Bernhard Thaler <bernhard.thaler@...et.at>
Cc:	kbuild-all@...org, Pablo Neira Ayuso <pablo@...filter.org>,
	netdev@...r.kernel.org
Subject: [net-next:master 1371/1406] net/bridge/br_netfilter.c:920:12:
 warning: 'br_nf_ip_fragment' defined but not used

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   ada6c1de9ecabcfc5619479bcd29a208f2e248a0
commit: efb6de9b4ba0092b2c55f6a52d16294a8a698edd [1371/1406] netfilter: bridge: forward IPv6 fragmented packets
config: sh-titan_defconfig (attached as .config)
reproduce:
  wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
  chmod +x ~/bin/make.cross
  git checkout efb6de9b4ba0092b2c55f6a52d16294a8a698edd
  # save the attached .config to linux build tree
  make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

>> net/bridge/br_netfilter.c:920:12: warning: 'br_nf_ip_fragment' defined but not used [-Wunused-function]

vim +/br_nf_ip_fragment +920 net/bridge/br_netfilter.c

e70deecb Florian Westphal 2015-04-02  904  	data = this_cpu_ptr(&brnf_frag_data_storage);
e70deecb Florian Westphal 2015-04-02  905  	err = skb_cow_head(skb, data->size);
8bd63cf1 Florian Westphal 2015-03-05  906  
e70deecb Florian Westphal 2015-04-02  907  	if (err) {
8bd63cf1 Florian Westphal 2015-03-05  908  		kfree_skb(skb);
8bd63cf1 Florian Westphal 2015-03-05  909  		return 0;
8bd63cf1 Florian Westphal 2015-03-05  910  	}
8bd63cf1 Florian Westphal 2015-03-05  911  
e70deecb Florian Westphal 2015-04-02  912  	skb_copy_to_linear_data_offset(skb, -data->size, data->mac, data->size);
e70deecb Florian Westphal 2015-04-02  913  	__skb_push(skb, data->encap_size);
e70deecb Florian Westphal 2015-04-02  914  
a9fcc6a4 Florian Westphal 2015-05-03  915  	nf_bridge_info_free(skb);
7026b1dd David Miller     2015-04-05  916  	return br_dev_queue_push_xmit(sk, skb);
8bd63cf1 Florian Westphal 2015-03-05  917  }
efb6de9b Bernhard Thaler  2015-05-30  918  #endif
8bd63cf1 Florian Westphal 2015-03-05  919  
49d16b23 Andy Zhou        2015-05-15 @920  static int br_nf_ip_fragment(struct sock *sk, struct sk_buff *skb,
49d16b23 Andy Zhou        2015-05-15  921  			     int (*output)(struct sock *, struct sk_buff *))
49d16b23 Andy Zhou        2015-05-15  922  {
49d16b23 Andy Zhou        2015-05-15  923  	unsigned int mtu = ip_skb_dst_mtu(skb);
49d16b23 Andy Zhou        2015-05-15  924  	struct iphdr *iph = ip_hdr(skb);
49d16b23 Andy Zhou        2015-05-15  925  	struct rtable *rt = skb_rtable(skb);
49d16b23 Andy Zhou        2015-05-15  926  	struct net_device *dev = rt->dst.dev;
49d16b23 Andy Zhou        2015-05-15  927  
49d16b23 Andy Zhou        2015-05-15  928  	if (unlikely(((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) ||

:::::: The code at line 920 was first introduced by commit
:::::: 49d16b23cd1e61c028ee088c5a64e9ac6a9c6147 bridge_netfilter: No ICMP packet on IPv4 fragmentation error

:::::: TO: Andy Zhou <azhou@...ira.com>
:::::: CC: David S. Miller <davem@...emloft.net>

---
0-DAY kernel test infrastructure                Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

View attachment ".config" of type "text/plain" (61728 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ