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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 11 Sep 2021 23:13:28 +0800
From:   kernel test robot <lkp@...el.com>
To:     Nicholas Piggin <npiggin@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Michael Ellerman <mpe@...erman.id.au>
Subject: [linuxppc:fixes-test 1/2] arch/powerpc/include/asm/reg.h:66:29:
 error: left shift count >= width of type

tree:   https://github.com/linuxppc/linux fixes-test
head:   d45e8e4cdd90ce2e6fc64b568229c56e68b638e8
commit: e0940aca08c125f641ee253c2db9f28f3edd2d97 [1/2] powerpc/64s: system call scv tabort fix for corrupt irq soft-mask state
config: powerpc-mpc837x_rdb_defconfig (attached as .config)
compiler: powerpc-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
        # https://github.com/linuxppc/linux/commit/e0940aca08c125f641ee253c2db9f28f3edd2d97
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc fixes-test
        git checkout e0940aca08c125f641ee253c2db9f28f3edd2d97
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc 

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 arch/powerpc/include/asm/ptrace.h:25,
                    from arch/powerpc/include/asm/hw_irq.h:12,
                    from arch/powerpc/include/asm/irqflags.h:12,
                    from include/linux/irqflags.h:16,
                    from include/asm-generic/cmpxchg-local.h:6,
                    from arch/powerpc/include/asm/cmpxchg.h:526,
                    from arch/powerpc/include/asm/atomic.h:11,
                    from include/linux/atomic.h:7,
                    from include/linux/rcupdate.h:25,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/context_tracking.h:5,
                    from arch/powerpc/kernel/interrupt.c:3:
   arch/powerpc/kernel/interrupt.c: In function 'system_call_exception':
>> arch/powerpc/include/asm/reg.h:66:29: error: left shift count >= width of type [-Werror=shift-count-overflow]
      66 | #define __MASK(X)       (1UL<<(X))
         |                             ^~
   arch/powerpc/include/asm/reg.h:1379:61: note: in definition of macro 'mtmsr'
    1379 |                                      : "r" ((unsigned long)(v)) \
         |                                                             ^
   arch/powerpc/include/asm/reg.h:115:25: note: in expansion of macro '__MASK'
     115 | #define MSR_TM          __MASK(MSR_TM_LG)       /* Transactional Mem Available */
         |                         ^~~~~~
   arch/powerpc/kernel/interrupt.c:151:33: note: in expansion of macro 'MSR_TM'
     151 |                 mtmsr(mfmsr() | MSR_TM);
         |                                 ^~~~~~
   cc1: all warnings being treated as errors


vim +66 arch/powerpc/include/asm/reg.h

14cf11af6cf608 include/asm-powerpc/reg.h Paul Mackerras 2005-09-26  62  
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  63  #ifdef __ASSEMBLY__
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  64  #define __MASK(X)	(1<<(X))
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  65  #else
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10 @66  #define __MASK(X)	(1UL<<(X))
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  67  #endif
9f04b9e327c495 include/asm-powerpc/reg.h Paul Mackerras 2005-10-10  68  

:::::: The code at line 66 was first introduced by commit
:::::: 9f04b9e327c495f8ddbf89c08da6cbe626e1b1b3 powerpc: Merged processor.h.

:::::: TO: Paul Mackerras <paulus@...ba.org>
:::::: CC: Paul Mackerras <paulus@...ba.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ