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: <201707021133.WuCJ1NgS%fengguang.wu@intel.com>
Date:   Sun, 2 Jul 2017 11:46:38 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     "Reshetova, Elena" <elena.reshetova@...el.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        Hans Liljestrand <ishkamiel@...il.com>,
        Kees Cook <keescook@...omium.org>,
        David Windsor <dave@...lcore.net>
Subject: [net-next:master 1849/1910] net/iucv/af_iucv.c:405:22: error:
 passing argument 1 of 'atomic_read' from incompatible pointer type

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   bcdb239b456265b927a809c4078f0a1f433a6e18
commit: 14afee4b6092fde451ee17604e5f5c89da33e71e [1849/1910] net: convert sock.sk_wmem_alloc from atomic_t to refcount_t
config: s390-default_defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 14afee4b6092fde451ee17604e5f5c89da33e71e
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   In file included from include/linux/bug.h:4:0,
                    from include/linux/thread_info.h:11,
                    from arch/s390/include/asm/preempt.h:5,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from net/iucv/af_iucv.c:15:
   net/iucv/af_iucv.c: In function 'iucv_sock_destruct':
>> net/iucv/af_iucv.c:405:22: error: passing argument 1 of 'atomic_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
     WARN_ON(atomic_read(&sk->sk_wmem_alloc));
                         ^
   arch/s390/include/asm/bug.h:54:25: note: in definition of macro 'WARN_ON'
     int __ret_warn_on = !!(x);   \
                            ^
   In file included from include/linux/atomic.h:4:0,
                    from include/linux/debug_locks.h:5,
                    from include/linux/lockdep.h:25,
                    from include/linux/spinlock_types.h:18,
                    from include/linux/spinlock.h:81,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from net/iucv/af_iucv.c:15:
   arch/s390/include/asm/atomic.h:19:19: note: expected 'const atomic_t * {aka const struct <anonymous> *}' but argument is of type 'refcount_t * {aka struct refcount_struct *}'
    static inline int atomic_read(const atomic_t *v)
                      ^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/atomic_read +405 net/iucv/af_iucv.c

82492a35 Ursula Braun  2012-03-07  399  	if (!sock_flag(sk, SOCK_DEAD)) {
82492a35 Ursula Braun  2012-03-07  400  		pr_err("Attempt to release alive iucv socket %p\n", sk);
82492a35 Ursula Braun  2012-03-07  401  		return;
82492a35 Ursula Braun  2012-03-07  402  	}
82492a35 Ursula Braun  2012-03-07  403  
82492a35 Ursula Braun  2012-03-07  404  	WARN_ON(atomic_read(&sk->sk_rmem_alloc));
82492a35 Ursula Braun  2012-03-07 @405  	WARN_ON(atomic_read(&sk->sk_wmem_alloc));
82492a35 Ursula Braun  2012-03-07  406  	WARN_ON(sk->sk_wmem_queued);
82492a35 Ursula Braun  2012-03-07  407  	WARN_ON(sk->sk_forward_alloc);
eac3731b Jennifer Hunt 2007-02-08  408  }

:::::: The code at line 405 was first introduced by commit
:::::: 82492a355fac112908271faa74f473a38c1fb647 af_iucv: add shutdown for HS transport

:::::: TO: Ursula Braun <ursula.braun@...ibm.com>
:::::: CC: David S. Miller <davem@...emloft.net>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ