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:   Wed, 16 Feb 2022 00:20:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Jason A. Donenfeld" <zx2c4@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org, zx2c4@...nel.org,
        linux-kernel@...r.kernel.org,
        Dominik Brodowski <linux@...inikbrodowski.net>,
        Jann Horn <jannh@...gle.com>
Subject: [crng-random:master 17/42] include/trace/events/random.h:55:1:
 error: incompatible function pointer types passing 'void (void *, size_t,
 unsigned long)' (aka 'void (void *, unsigned int, unsigned long)') to
 parameter of type 'void (*)(void *, int, unsigned long)'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git master
head:   e09db9454de88dca579c13562129bef2b0c7dd36
commit: 60681e3678705f119c0d32b5e0d56a21f90bb720 [17/42] random: make more consistent use of integer types
config: i386-randconfig-a001-20220214 (https://download.01.org/0day-ci/archive/20220216/202202160014.qVgMDFfX-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/crng/random.git/commit/?id=60681e3678705f119c0d32b5e0d56a21f90bb720
        git remote add crng-random git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git
        git fetch --no-tags crng-random master
        git checkout 60681e3678705f119c0d32b5e0d56a21f90bb720
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

Note: the crng-random/master HEAD e09db9454de88dca579c13562129bef2b0c7dd36 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from drivers/char/random.c:241:
   In file included from include/trace/events/random.h:212:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:873:
>> include/trace/events/random.h:55:1: error: incompatible function pointer types passing 'void (void *, size_t, unsigned long)' (aka 'void (void *, unsigned int, unsigned long)') to parameter of type 'void (*)(void *, int, unsigned long)' [-Werror,-Wincompatible-function-pointer-types]
   DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/trace_events.h:870:35: note: expanded from macro 'DEFINE_EVENT'
           check_trace_callback_type_##call(trace_event_raw_event_##template); \
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   <scratch space>:39:1: note: expanded from here
   trace_event_raw_event_random__mix_pool_bytes
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/events/random.h:55:1: note: passing argument to parameter 'cb' here
   DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/char/random.c:241:
   In file included from include/trace/events/random.h:212:
   In file included from include/trace/define_trace.h:103:
   In file included from include/trace/perf.h:107:
>> include/trace/events/random.h:55:1: error: incompatible function pointer types passing 'void (void *, size_t, unsigned long)' (aka 'void (void *, unsigned int, unsigned long)') to parameter of type 'void (*)(void *, int, unsigned long)' [-Werror,-Wincompatible-function-pointer-types]
   DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/perf.h:99:35: note: expanded from macro 'DEFINE_EVENT'
           check_trace_callback_type_##call(perf_trace_##template);        \
                                            ^~~~~~~~~~~~~~~~~~~~~
   <scratch space>:62:1: note: expanded from here
   perf_trace_random__mix_pool_bytes
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/events/random.h:55:1: note: passing argument to parameter 'cb' here
   DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   drivers/char/random.c:1734:6: warning: no previous prototype for function 'add_hwgenerator_randomness' [-Wmissing-prototypes]
   void add_hwgenerator_randomness(const void *buffer, size_t count,
        ^
   drivers/char/random.c:1734:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void add_hwgenerator_randomness(const void *buffer, size_t count,
   ^
   static 
   1 warning and 2 errors generated.


vim +55 include/trace/events/random.h

00ce1db1a634746 Theodore Ts'o      2012-07-04  54  
00ce1db1a634746 Theodore Ts'o      2012-07-04 @55  DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
90ed1e67e896cc8 Jason A. Donenfeld 2022-01-12  56  	TP_PROTO(int bytes, unsigned long IP),
00ce1db1a634746 Theodore Ts'o      2012-07-04  57  
90ed1e67e896cc8 Jason A. Donenfeld 2022-01-12  58  	TP_ARGS(bytes, IP)
00ce1db1a634746 Theodore Ts'o      2012-07-04  59  );
00ce1db1a634746 Theodore Ts'o      2012-07-04  60  

:::::: The code at line 55 was first introduced by commit
:::::: 00ce1db1a634746040ace24c09a4e3a7949a3145 random: add tracepoints for easier debugging and verification

:::::: TO: Theodore Ts'o <tytso@....edu>
:::::: CC: Theodore Ts'o <tytso@....edu>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ