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:   Fri, 15 Oct 2021 07:28:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Ahmed S. Darwish" <a.darwish@...utronix.de>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Subject: [bigeasy-staging:seqcount 9/10] net/core/gen_stats.c:121:11: error:
 assigning to 'u64_stats_t' from incompatible type 'int'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git seqcount
head:   53a2ea564d8a37a032c879a9e9bfa88b8e0e5ecd
commit: 2ed461d3554b6c9a468ee601dfc1152faac92408 [9/10] net: sched: Merge Qdisc::bstats and Qdisc::cpu_bstats data types
config: hexagon-randconfig-r041-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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/bigeasy/staging.git/commit/?id=2ed461d3554b6c9a468ee601dfc1152faac92408
        git remote add bigeasy-staging https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git
        git fetch --no-tags bigeasy-staging seqcount
        git checkout 2ed461d3554b6c9a468ee601dfc1152faac92408
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/core/

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 >>):

>> net/core/gen_stats.c:121:11: error: assigning to 'u64_stats_t' from incompatible type 'int'
           b->bytes = 0;
                    ^ ~
   net/core/gen_stats.c:122:13: error: assigning to 'u64_stats_t' from incompatible type 'int'
           b->packets = 0;
                      ^ ~
   2 errors generated.


vim +121 net/core/gen_stats.c

^1da177e4c3f41 Linus Torvalds   2005-04-16  116  
34165a95d97fbc Ahmed S. Darwish 2021-09-17  117  #ifdef CONFIG_LOCKDEP
34165a95d97fbc Ahmed S. Darwish 2021-09-17  118  /* Must not be inlined, due to u64_stats seqcount_t lockdep key */
2ed461d3554b6c Ahmed S. Darwish 2021-09-17  119  void gnet_stats_basic_sync_init(struct gnet_stats_basic_sync *b)
34165a95d97fbc Ahmed S. Darwish 2021-09-17  120  {
34165a95d97fbc Ahmed S. Darwish 2021-09-17 @121  	b->bytes = 0;
34165a95d97fbc Ahmed S. Darwish 2021-09-17  122  	b->packets = 0;
34165a95d97fbc Ahmed S. Darwish 2021-09-17  123  	u64_stats_init(&b->syncp);
34165a95d97fbc Ahmed S. Darwish 2021-09-17  124  }
2ed461d3554b6c Ahmed S. Darwish 2021-09-17  125  EXPORT_SYMBOL(gnet_stats_basic_sync_init);
34165a95d97fbc Ahmed S. Darwish 2021-09-17  126  #endif
34165a95d97fbc Ahmed S. Darwish 2021-09-17  127  

:::::: The code at line 121 was first introduced by commit
:::::: 34165a95d97fbc4acdb090de432bdda12dfdbed9 net: sched: Protect Qdisc::bstats with u64_stats

:::::: TO: Ahmed S. Darwish <a.darwish@...utronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy@...utronix.de>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ