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:   Tue, 5 Dec 2017 00:48:24 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.x86/kpti 50/65] include/linux/compiler.h:319:38: error:
 call to '__compiletime_assert_254' declared with attribute error:
 BUILD_BUG_ON failed: pgd_index(EFI_VA_END) != pgd_index(MODULES_END)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/kpti
head:   c7ddf30cab554658b154ee16ae5e5d577ff530bf
commit: 9ebd9d9cdbc90021a5e320fb054cf48c027e6d34 [50/65] x86/fixmap: Add ldt entries to user shared fixmap
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 9ebd9d9cdbc90021a5e320fb054cf48c027e6d34
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10:0,
                    from arch/x86//platform/efi/efi_64.c:21:
   arch/x86//platform/efi/efi_64.c: In function 'efi_sync_low_kernel_mappings':
>> include/linux/compiler.h:319:38: error: call to '__compiletime_assert_254' declared with attribute error: BUILD_BUG_ON failed: pgd_index(EFI_VA_END) != pgd_index(MODULES_END)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:299:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^~~~~~
   include/linux/compiler.h:319:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:47:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:71:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^~~~~~~~~~~~~~~~
>> arch/x86//platform/efi/efi_64.c:254:2: note: in expansion of macro 'BUILD_BUG_ON'
     BUILD_BUG_ON(pgd_index(EFI_VA_END) != pgd_index(MODULES_END));
     ^~~~~~~~~~~~
>> include/linux/compiler.h:319:38: error: call to '__compiletime_assert_268' declared with attribute error: BUILD_BUG_ON failed: p4d_index(EFI_VA_END) != p4d_index(MODULES_END)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:299:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^~~~~~
   include/linux/compiler.h:319:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:47:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:71:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^~~~~~~~~~~~~~~~
   arch/x86//platform/efi/efi_64.c:268:2: note: in expansion of macro 'BUILD_BUG_ON'
     BUILD_BUG_ON(p4d_index(EFI_VA_END) != p4d_index(MODULES_END));
     ^~~~~~~~~~~~
--
   In file included from include/linux/kernel.h:10:0,
                    from arch/x86/platform/efi/efi_64.c:21:
   arch/x86/platform/efi/efi_64.c: In function 'efi_sync_low_kernel_mappings':
>> include/linux/compiler.h:319:38: error: call to '__compiletime_assert_254' declared with attribute error: BUILD_BUG_ON failed: pgd_index(EFI_VA_END) != pgd_index(MODULES_END)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:299:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^~~~~~
   include/linux/compiler.h:319:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:47:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:71:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^~~~~~~~~~~~~~~~
   arch/x86/platform/efi/efi_64.c:254:2: note: in expansion of macro 'BUILD_BUG_ON'
     BUILD_BUG_ON(pgd_index(EFI_VA_END) != pgd_index(MODULES_END));
     ^~~~~~~~~~~~
>> include/linux/compiler.h:319:38: error: call to '__compiletime_assert_268' declared with attribute error: BUILD_BUG_ON failed: p4d_index(EFI_VA_END) != p4d_index(MODULES_END)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:299:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^~~~~~
   include/linux/compiler.h:319:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:47:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:71:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^~~~~~~~~~~~~~~~
   arch/x86/platform/efi/efi_64.c:268:2: note: in expansion of macro 'BUILD_BUG_ON'
     BUILD_BUG_ON(p4d_index(EFI_VA_END) != p4d_index(MODULES_END));
     ^~~~~~~~~~~~

vim +/__compiletime_assert_254 +319 include/linux/compiler.h

9a8ab1c3 Daniel Santos 2013-02-21  305  
9a8ab1c3 Daniel Santos 2013-02-21  306  #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c3 Daniel Santos 2013-02-21  307  	__compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c3 Daniel Santos 2013-02-21  308  
9a8ab1c3 Daniel Santos 2013-02-21  309  /**
9a8ab1c3 Daniel Santos 2013-02-21  310   * compiletime_assert - break build and emit msg if condition is false
9a8ab1c3 Daniel Santos 2013-02-21  311   * @condition: a compile-time constant condition to check
9a8ab1c3 Daniel Santos 2013-02-21  312   * @msg:       a message to emit if condition is false
9a8ab1c3 Daniel Santos 2013-02-21  313   *
9a8ab1c3 Daniel Santos 2013-02-21  314   * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c3 Daniel Santos 2013-02-21  315   * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c3 Daniel Santos 2013-02-21  316   * compiler has support to do so.
9a8ab1c3 Daniel Santos 2013-02-21  317   */
9a8ab1c3 Daniel Santos 2013-02-21  318  #define compiletime_assert(condition, msg) \
9a8ab1c3 Daniel Santos 2013-02-21 @319  	_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c3 Daniel Santos 2013-02-21  320  

:::::: The code at line 319 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG

:::::: TO: Daniel Santos <daniel.santos@...ox.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ