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  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:   Sun, 22 Nov 2020 09:27:09 +0800
From:   kernel test robot <lkp@...el.com>
To:     Tariq Toukan <tariqt@...lanox.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Saeed Mahameed <saeedm@...lanox.com>,
        Maxim Mikityanskiy <maximmi@...lanox.com>
Subject: include/net/sock.h:379:34: error: 'struct sock_common' has no member
 named 'skc_v6_daddr'; did you mean

Hi Tariq,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a349e4c659609fd20e4beea89e5c4a4038e33a95
commit: 5229a96e59ec32466add5e87b537cc3f244afb06 net/mlx5e: Accel, Expose flow steering API for rules add/del
date:   5 months ago
config: sparc-randconfig-r013-20201122 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5229a96e59ec32466add5e87b537cc3f244afb06
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 5229a96e59ec32466add5e87b537cc3f244afb06
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/string.h:20,
                    from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from include/linux/smp.h:13,
                    from include/linux/percpu.h:7,
                    from include/linux/netdevice.h:32,
                    from drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c:4:
   drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c: In function 'accel_fs_tcp_set_ipv6_flow':
>> include/net/sock.h:379:34: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
     379 | #define sk_v6_daddr  __sk_common.skc_v6_daddr
         |                                  ^~~~~~~~~~~~
   arch/sparc/include/asm/string.h:15:45: note: in definition of macro 'memcpy'
      15 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
         |                                             ^
   drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c:55:14: note: in expansion of macro 'sk_v6_daddr'
      55 |         &sk->sk_v6_daddr, 16);
         |              ^~~~~~~~~~~
   At top level:
   drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c:47:13: warning: 'accel_fs_tcp_set_ipv6_flow' defined but not used [-Wunused-function]
      47 | static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +379 include/net/sock.h

4dc6dc7162c08b9 Eric Dumazet             2009-07-15  359  
68835aba4d9b74e Eric Dumazet             2010-11-30  360  #define sk_dontcopy_begin	__sk_common.skc_dontcopy_begin
68835aba4d9b74e Eric Dumazet             2010-11-30  361  #define sk_dontcopy_end		__sk_common.skc_dontcopy_end
4dc6dc7162c08b9 Eric Dumazet             2009-07-15  362  #define sk_hash			__sk_common.skc_hash
5080546682bae3d Eric Dumazet             2013-10-02  363  #define sk_portpair		__sk_common.skc_portpair
05dbc7b59481ca8 Eric Dumazet             2013-10-03  364  #define sk_num			__sk_common.skc_num
05dbc7b59481ca8 Eric Dumazet             2013-10-03  365  #define sk_dport		__sk_common.skc_dport
5080546682bae3d Eric Dumazet             2013-10-02  366  #define sk_addrpair		__sk_common.skc_addrpair
5080546682bae3d Eric Dumazet             2013-10-02  367  #define sk_daddr		__sk_common.skc_daddr
5080546682bae3d Eric Dumazet             2013-10-02  368  #define sk_rcv_saddr		__sk_common.skc_rcv_saddr
^1da177e4c3f415 Linus Torvalds           2005-04-16  369  #define sk_family		__sk_common.skc_family
^1da177e4c3f415 Linus Torvalds           2005-04-16  370  #define sk_state		__sk_common.skc_state
^1da177e4c3f415 Linus Torvalds           2005-04-16  371  #define sk_reuse		__sk_common.skc_reuse
055dc21a1d1d219 Tom Herbert              2013-01-22  372  #define sk_reuseport		__sk_common.skc_reuseport
9fe516ba3fb29b6 Eric Dumazet             2014-06-27  373  #define sk_ipv6only		__sk_common.skc_ipv6only
26abe14379f8e2f Eric W. Biederman        2015-05-08  374  #define sk_net_refcnt		__sk_common.skc_net_refcnt
^1da177e4c3f415 Linus Torvalds           2005-04-16  375  #define sk_bound_dev_if		__sk_common.skc_bound_dev_if
^1da177e4c3f415 Linus Torvalds           2005-04-16  376  #define sk_bind_node		__sk_common.skc_bind_node
8feaf0c0a5488b3 Arnaldo Carvalho de Melo 2005-08-09  377  #define sk_prot			__sk_common.skc_prot
07feaebfcc10cd3 Eric W. Biederman        2007-09-12  378  #define sk_net			__sk_common.skc_net
efe4208f47f907b Eric Dumazet             2013-10-03 @379  #define sk_v6_daddr		__sk_common.skc_v6_daddr
efe4208f47f907b Eric Dumazet             2013-10-03  380  #define sk_v6_rcv_saddr	__sk_common.skc_v6_rcv_saddr
33cf7c90fe2f97a Eric Dumazet             2015-03-11  381  #define sk_cookie		__sk_common.skc_cookie
70da268b569d32a Eric Dumazet             2015-10-08  382  #define sk_incoming_cpu		__sk_common.skc_incoming_cpu
8e5eb54d303b7cb Eric Dumazet             2015-10-08  383  #define sk_flags		__sk_common.skc_flags
ed53d0ab761f5c7 Eric Dumazet             2015-10-08  384  #define sk_rxhash		__sk_common.skc_rxhash
efe4208f47f907b Eric Dumazet             2013-10-03  385  
^1da177e4c3f415 Linus Torvalds           2005-04-16  386  	socket_lock_t		sk_lock;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  387  	atomic_t		sk_drops;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  388  	int			sk_rcvlowat;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  389  	struct sk_buff_head	sk_error_queue;
8b27dae5a2e89a6 Eric Dumazet             2019-03-22  390  	struct sk_buff		*sk_rx_skb_cache;
b178bb3dfc30d95 Eric Dumazet             2010-11-16  391  	struct sk_buff_head	sk_receive_queue;
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  392  	/*
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  393  	 * The backlog queue is special, it is always used with
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  394  	 * the per-socket spinlock held and requires low latency
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  395  	 * access. Therefore we special case it's implementation.
b178bb3dfc30d95 Eric Dumazet             2010-11-16  396  	 * Note : rmem_alloc is in this structure to fill a hole
b178bb3dfc30d95 Eric Dumazet             2010-11-16  397  	 * on 64bit arches, not because its logically part of
b178bb3dfc30d95 Eric Dumazet             2010-11-16  398  	 * backlog.
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  399  	 */
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  400  	struct {
b178bb3dfc30d95 Eric Dumazet             2010-11-16  401  		atomic_t	rmem_alloc;
b178bb3dfc30d95 Eric Dumazet             2010-11-16  402  		int		len;
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  403  		struct sk_buff	*head;
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  404  		struct sk_buff	*tail;
fa438ccfdfd3f6d Eric Dumazet             2007-03-04  405  	} sk_backlog;
b178bb3dfc30d95 Eric Dumazet             2010-11-16  406  #define sk_rmem_alloc sk_backlog.rmem_alloc
2c8c56e15df3d4c Eric Dumazet             2014-11-11  407  
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  408  	int			sk_forward_alloc;
e0d1095ae340540 Cong Wang                2013-08-01  409  #ifdef CONFIG_NET_RX_BUSY_POLL
dafcc4380deec21 Eliezer Tamir            2013-06-14  410  	unsigned int		sk_ll_usec;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  411  	/* ===== mostly read cache line ===== */
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  412  	unsigned int		sk_napi_id;
b178bb3dfc30d95 Eric Dumazet             2010-11-16  413  #endif
b178bb3dfc30d95 Eric Dumazet             2010-11-16  414  	int			sk_rcvbuf;
b178bb3dfc30d95 Eric Dumazet             2010-11-16  415  
b178bb3dfc30d95 Eric Dumazet             2010-11-16  416  	struct sk_filter __rcu	*sk_filter;
ceb5d58b217098a Eric Dumazet             2015-11-29  417  	union {
eaefd1105bc431e Eric Dumazet             2011-02-18  418  		struct socket_wq __rcu	*sk_wq;
66256e0b15bd72e Randy Dunlap             2020-02-15  419  		/* private: */
ceb5d58b217098a Eric Dumazet             2015-11-29  420  		struct socket_wq	*sk_wq_raw;
66256e0b15bd72e Randy Dunlap             2020-02-15  421  		/* public: */
ceb5d58b217098a Eric Dumazet             2015-11-29  422  	};
def8b4faff5ca34 Alexey Dobriyan          2008-10-28  423  #ifdef CONFIG_XFRM
d188ba86dd07a72 Eric Dumazet             2015-12-08  424  	struct xfrm_policy __rcu *sk_policy[2];
def8b4faff5ca34 Alexey Dobriyan          2008-10-28  425  #endif
deaa58542b21d2b Eric Dumazet             2012-06-24  426  	struct dst_entry	*sk_rx_dst;
0e36cbb344575e4 Cong Wang                2013-01-22  427  	struct dst_entry __rcu	*sk_dst_cache;
^1da177e4c3f415 Linus Torvalds           2005-04-16  428  	atomic_t		sk_omem_alloc;
4e07a91c37c69ec Arnaldo Carvalho de Melo 2007-05-29  429  	int			sk_sndbuf;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  430  
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  431  	/* ===== cache line for TX ===== */
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  432  	int			sk_wmem_queued;
14afee4b6092fde Reshetova, Elena         2017-06-30  433  	refcount_t		sk_wmem_alloc;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  434  	unsigned long		sk_tsq_flags;
75c119afe14f74b Eric Dumazet             2017-10-05  435  	union {
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  436  		struct sk_buff	*sk_send_head;
75c119afe14f74b Eric Dumazet             2017-10-05  437  		struct rb_root	tcp_rtx_queue;
75c119afe14f74b Eric Dumazet             2017-10-05  438  	};
472c2e07eef0451 Eric Dumazet             2019-03-22  439  	struct sk_buff		*sk_tx_skb_cache;
^1da177e4c3f415 Linus Torvalds           2005-04-16  440  	struct sk_buff_head	sk_write_queue;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  441  	__s32			sk_peek_off;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  442  	int			sk_write_pending;
9b8805a325591cf Julian Anastasov         2017-02-06  443  	__u32			sk_dst_pending_confirm;
218af599fa635b1 Eric Dumazet             2017-05-16  444  	u32			sk_pacing_status; /* see enum sk_pacing */
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  445  	long			sk_sndtimeo;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  446  	struct timer_list	sk_timer;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  447  	__u32			sk_priority;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  448  	__u32			sk_mark;
76a9ebe811fb3d0 Eric Dumazet             2018-10-15  449  	unsigned long		sk_pacing_rate; /* bytes per second */
76a9ebe811fb3d0 Eric Dumazet             2018-10-15  450  	unsigned long		sk_max_pacing_rate;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  451  	struct page_frag	sk_frag;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  452  	netdev_features_t	sk_route_caps;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  453  	netdev_features_t	sk_route_nocaps;
0a6b2a1dc2a2105 Eric Dumazet             2018-02-19  454  	netdev_features_t	sk_route_forced_caps;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  455  	int			sk_gso_type;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  456  	unsigned int		sk_gso_max_size;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  457  	gfp_t			sk_allocation;
9115e8cd2a0c6ea Eric Dumazet             2016-12-03  458  	__u32			sk_txhash;
fc64869c48494a4 Andrey Ryabinin          2016-05-18  459  
fc64869c48494a4 Andrey Ryabinin          2016-05-18  460  	/*
fc64869c48494a4 Andrey Ryabinin          2016-05-18  461  	 * Because of non atomicity rules, all
fc64869c48494a4 Andrey Ryabinin          2016-05-18  462  	 * changes are protected by socket lock.
fc64869c48494a4 Andrey Ryabinin          2016-05-18  463  	 */
bf9765145b856fa Mat Martineau            2020-01-09  464  	u8			sk_padding : 1,
cdfbabfb2f0ce98 David Howells            2017-03-09  465  				sk_kern_sock : 1,
28448b80456feaf Tom Herbert              2014-05-23  466  				sk_no_check_tx : 1,
28448b80456feaf Tom Herbert              2014-05-23  467  				sk_no_check_rx : 1,
bf9765145b856fa Mat Martineau            2020-01-09  468  				sk_userlocks : 4;
3a9b76fd0db9f0d Eric Dumazet             2017-11-11  469  	u8			sk_pacing_shift;
bf9765145b856fa Mat Martineau            2020-01-09  470  	u16			sk_type;
bf9765145b856fa Mat Martineau            2020-01-09  471  	u16			sk_protocol;
bf9765145b856fa Mat Martineau            2020-01-09  472  	u16			sk_gso_max_segs;
^1da177e4c3f415 Linus Torvalds           2005-04-16  473  	unsigned long	        sk_lingertime;
476e19cfa131e2b Arnaldo Carvalho de Melo 2005-05-05  474  	struct proto		*sk_prot_creator;
^1da177e4c3f415 Linus Torvalds           2005-04-16  475  	rwlock_t		sk_callback_lock;
^1da177e4c3f415 Linus Torvalds           2005-04-16  476  	int			sk_err,
^1da177e4c3f415 Linus Torvalds           2005-04-16  477  				sk_err_soft;
becb74f0acca19b Eric Dumazet             2015-03-19  478  	u32			sk_ack_backlog;
becb74f0acca19b Eric Dumazet             2015-03-19  479  	u32			sk_max_ack_backlog;
86741ec25462e4c Lorenzo Colitti          2016-11-04  480  	kuid_t			sk_uid;
109f6e39fa07c48 Eric W. Biederman        2010-06-13  481  	struct pid		*sk_peer_pid;
109f6e39fa07c48 Eric W. Biederman        2010-06-13  482  	const struct cred	*sk_peer_cred;
^1da177e4c3f415 Linus Torvalds           2005-04-16  483  	long			sk_rcvtimeo;
b7aa0bf70c4afb9 Eric Dumazet             2007-04-19  484  	ktime_t			sk_stamp;
3a0ed3e96197380 Deepa Dinamani           2018-12-27  485  #if BITS_PER_LONG==32
3a0ed3e96197380 Deepa Dinamani           2018-12-27  486  	seqlock_t		sk_stamp_seq;
3a0ed3e96197380 Deepa Dinamani           2018-12-27  487  #endif
b9f40e21ef42986 Willem de Bruijn         2014-08-04  488  	u16			sk_tsflags;
fc64869c48494a4 Andrey Ryabinin          2016-05-18  489  	u8			sk_shutdown;
09c2d251b707236 Willem de Bruijn         2014-08-04  490  	u32			sk_tskey;
52267790ef52d75 Willem de Bruijn         2017-08-03  491  	atomic_t		sk_zckey;
80b14dee2bea128 Richard Cochran          2018-07-03  492  
80b14dee2bea128 Richard Cochran          2018-07-03  493  	u8			sk_clockid;
80b14dee2bea128 Richard Cochran          2018-07-03  494  	u8			sk_txtime_deadline_mode : 1,
4b15c7075352668 Jesus Sanchez-Palencia   2018-07-03  495  				sk_txtime_report_errors : 1,
4b15c7075352668 Jesus Sanchez-Palencia   2018-07-03  496  				sk_txtime_unused : 6;
80b14dee2bea128 Richard Cochran          2018-07-03  497  
^1da177e4c3f415 Linus Torvalds           2005-04-16  498  	struct socket		*sk_socket;
^1da177e4c3f415 Linus Torvalds           2005-04-16  499  	void			*sk_user_data;
d5f642384e9da75 Alexey Dobriyan          2008-11-04  500  #ifdef CONFIG_SECURITY
^1da177e4c3f415 Linus Torvalds           2005-04-16  501  	void			*sk_security;
d5f642384e9da75 Alexey Dobriyan          2008-11-04  502  #endif
2a56a1fec290bf0 Tejun Heo                2015-12-07  503  	struct sock_cgroup_data	sk_cgrp_data;
baac50bbc3cdfd1 Johannes Weiner          2016-01-14  504  	struct mem_cgroup	*sk_memcg;
^1da177e4c3f415 Linus Torvalds           2005-04-16  505  	void			(*sk_state_change)(struct sock *sk);
676d23690fb62b5 David S. Miller          2014-04-11  506  	void			(*sk_data_ready)(struct sock *sk);
^1da177e4c3f415 Linus Torvalds           2005-04-16  507  	void			(*sk_write_space)(struct sock *sk);
^1da177e4c3f415 Linus Torvalds           2005-04-16  508  	void			(*sk_error_report)(struct sock *sk);
^1da177e4c3f415 Linus Torvalds           2005-04-16  509  	int			(*sk_backlog_rcv)(struct sock *sk,
^1da177e4c3f415 Linus Torvalds           2005-04-16  510  						  struct sk_buff *skb);
ebf4e808fa0b22e Ilya Lesokhin            2018-04-30  511  #ifdef CONFIG_SOCK_VALIDATE_XMIT
ebf4e808fa0b22e Ilya Lesokhin            2018-04-30  512  	struct sk_buff*		(*sk_validate_xmit_skb)(struct sock *sk,
ebf4e808fa0b22e Ilya Lesokhin            2018-04-30  513  							struct net_device *dev,
ebf4e808fa0b22e Ilya Lesokhin            2018-04-30  514  							struct sk_buff *skb);
ebf4e808fa0b22e Ilya Lesokhin            2018-04-30  515  #endif
^1da177e4c3f415 Linus Torvalds           2005-04-16  516  	void                    (*sk_destruct)(struct sock *sk);
ef456144da8ef50 Craig Gallek             2016-01-04  517  	struct sock_reuseport __rcu	*sk_reuseport_cb;
6ac99e8f23d4b10 Martin KaFai Lau         2019-04-26  518  #ifdef CONFIG_BPF_SYSCALL
6ac99e8f23d4b10 Martin KaFai Lau         2019-04-26  519  	struct bpf_sk_storage __rcu	*sk_bpf_storage;
6ac99e8f23d4b10 Martin KaFai Lau         2019-04-26  520  #endif
a4298e4522d687a Eric Dumazet             2016-04-01  521  	struct rcu_head		sk_rcu;
^1da177e4c3f415 Linus Torvalds           2005-04-16  522  };
^1da177e4c3f415 Linus Torvalds           2005-04-16  523  

:::::: The code at line 379 was first introduced by commit
:::::: efe4208f47f907b86f528788da711e8ab9dea44d ipv6: make lookups simpler and faster

:::::: TO: Eric Dumazet <edumazet@...gle.com>
:::::: CC: David S. Miller <davem@...emloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (30666 bytes)

Powered by blists - more mailing lists