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: <202110131113.cjQRJyI9-lkp@intel.com>
Date:   Wed, 13 Oct 2021 11:54:26 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Sean Christopherson <sean.j.christopherson@...el.com>,
        Andi Kleen <ak@...ux.intel.com>,
        "Rafael J. Wysocki" <rjw@...ysocki.net>
Subject: [intel-tdx:guest 53/136] include/linux/compiler_types.h:322:38:
 error: call to '__compiletime_assert_232' declared with attribute error:
 Need native word sized stores/loads for atomicity.

tree:   https://github.com/intel/tdx.git guest
head:   3cdfac607ccad92cbcfaf6ce77281bc7ee4029cc
commit: f97bc915896e0ae70891c6c1a0ed8599257ad489 [53/136] x86/acpi, x86/boot: Add multiprocessor wake-up support
config: i386-randconfig-m031-20211012 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/f97bc915896e0ae70891c6c1a0ed8599257ad489
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout f97bc915896e0ae70891c6c1a0ed8599257ad489
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 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 <command-line>:
   arch/x86/kernel/acpi/boot.c: In function 'acpi_wakeup_cpu':
>> include/linux/compiler_types.h:322:38: error: call to '__compiletime_assert_232' declared with attribute error: Need native word sized stores/loads for atomicity.
     322 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:303:4: note: in definition of macro '__compiletime_assert'
     303 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:322:2: note: in expansion of macro '_compiletime_assert'
     322 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:325:2: note: in expansion of macro 'compiletime_assert'
     325 |  compiletime_assert(__native_word(t),    \
         |  ^~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/barrier.h:65:2: note: in expansion of macro 'compiletime_assert_atomic_type'
      65 |  compiletime_assert_atomic_type(*p);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:138:33: note: in expansion of macro '__smp_store_release'
     138 | #define smp_store_release(p, v) __smp_store_release(p, v)
         |                                 ^~~~~~~~~~~~~~~~~~~
   arch/x86/kernel/acpi/boot.c:366:2: note: in expansion of macro 'smp_store_release'
     366 |  smp_store_release(&acpi_mp_wake_mailbox->wakeup_vector, start_ip);
         |  ^~~~~~~~~~~~~~~~~


vim +/__compiletime_assert_232 +322 include/linux/compiler_types.h

eb5c2d4b45e3d2d Will Deacon 2020-07-21  308  
eb5c2d4b45e3d2d Will Deacon 2020-07-21  309  #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2d Will Deacon 2020-07-21  310  	__compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2d Will Deacon 2020-07-21  311  
eb5c2d4b45e3d2d Will Deacon 2020-07-21  312  /**
eb5c2d4b45e3d2d Will Deacon 2020-07-21  313   * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2d Will Deacon 2020-07-21  314   * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2d Will Deacon 2020-07-21  315   * @msg:       a message to emit if condition is false
eb5c2d4b45e3d2d Will Deacon 2020-07-21  316   *
eb5c2d4b45e3d2d Will Deacon 2020-07-21  317   * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2d Will Deacon 2020-07-21  318   * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2d Will Deacon 2020-07-21  319   * compiler has support to do so.
eb5c2d4b45e3d2d Will Deacon 2020-07-21  320   */
eb5c2d4b45e3d2d Will Deacon 2020-07-21  321  #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2d Will Deacon 2020-07-21 @322  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2d Will Deacon 2020-07-21  323  

:::::: The code at line 322 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h

:::::: TO: Will Deacon <will@...nel.org>
:::::: CC: Will Deacon <will@...nel.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" (34015 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ