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:   Sat, 20 Nov 2021 11:04:35 +0800
From:   kernel test robot <lkp@...el.com>
To:     WingMan Kwok <w-kwok2@...com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Vignesh Raghavendra <vigneshr@...com>,
        Murali Karicheri <m-karicheri2@...com>,
        Lokesh Vutla <lokeshvutla@...com>,
        Kishon Vijay Abraham I <kishon@...com>
Subject: [ti:ti-rt-linux-5.10.y 7473/10206] include/net/sock.h:2523:43:
 error: 'SCM_REDUNDANT' undeclared

Hi WingMan,

FYI, the error/warning still remains.

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head:   0c67d996db8f3c9149598bc98657ae28fee22208
commit: e355bf097bb11257afeadf6665e51f224eeb93a7 [7473/10206] net: packet: Pass on redundant net info in packet_recvmsg
config: alpha-randconfig-r011-20211115 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.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
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-rt-linux-5.10.y
        git checkout e355bf097bb11257afeadf6665e51f224eeb93a7
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash

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/tcp.h:19,
                    from include/linux/ipv6.h:87,
                    from include/net/ipv6.h:12,
                    from include/linux/sunrpc/clnt.h:28,
                    from include/linux/nfs_fs.h:32,
                    from init/do_mounts.c:23:
   include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
    2523 |                 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
         |                                           ^~~~~~~~~~~~~
   include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from fs/io_uring.c:64:
   include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
    2523 |                 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
         |                                           ^~~~~~~~~~~~~
   include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
   fs/io_uring.c: In function 'io_prep_async_work':
   fs/io_uring.c:1431:29: warning: variable 'id' set but not used [-Wunused-but-set-variable]
    1431 |         struct io_identity *id;
         |                             ^~
--
   In file included from include/linux/tcp.h:19,
                    from include/linux/ipv6.h:87,
                    from include/net/addrconf.h:50,
                    from lib/vsprintf.c:40:
   include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
    2523 |                 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
         |                                           ^~~~~~~~~~~~~
   include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
   lib/vsprintf.c: In function 'va_format':
   lib/vsprintf.c:1663:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    1663 |         buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
         |         ^~~
--
   In file included from include/linux/skmsg.h:12,
                    from kernel/bpf/btf.c:22:
   include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
    2523 |                 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
         |                                           ^~~~~~~~~~~~~
   include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
   kernel/bpf/btf.c: In function 'btf_seq_show':
   kernel/bpf/btf.c:5328:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    5328 |         seq_vprintf((struct seq_file *)show->target, fmt, args);
         |                             ^~~~~~~~
   kernel/bpf/btf.c: In function 'btf_snprintf_show':
   kernel/bpf/btf.c:5365:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    5365 |         len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
         |         ^~~


vim +/SCM_REDUNDANT +2523 include/net/sock.h

  2514	
  2515	DECLARE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
  2516	static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
  2517						    struct sk_buff *skb)
  2518	{
  2519		struct skb_redundant_info *sred;
  2520	
  2521		sred = skb_redinfo(skb);
  2522		if (sred->lsdu_size)
> 2523			put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
  2524	}
  2525	

---
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" (28868 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ