Content-Type: multipart/mixed; boundary="===============1312822226735687750==" MIME-Version: 1.0 From: Aaron Tomlin To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH v2 2/2] module: Introduce module unload taint tracking Date: Fri, 22 Apr 2022 10:47:07 +0100 Message-ID: <20220422094707.bv27jtgfht2jkxua@ava.usersys.com> In-Reply-To: <202204200758.bmFPcUVJ-lkp@intel.com> List-Id: --===============1312822226735687750== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed 2022-04-20 07:19 +0800, kernel test robot wrote: > Hi Aaron, Hi, > [FYI, it's a private test report for your RFC patch.] > [auto build test ERROR on eeaec7801c421e17edda6e45a32d4a5596b633da] > = > url: https://github.com/intel-lab-lkp/linux/commits/Aaron-Tomlin/modul= e-Introduce-module-unload-taint-tracking/20220419-230714 > base: eeaec7801c421e17edda6e45a32d4a5596b633da > config: sparc64-randconfig-r004-20220419 (https://download.01.org/0day-ci= /archive/20220420/202204200758.bmFPcUVJ-lkp(a)intel.com/config) > compiler: sparc64-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/intel-lab-lkp/linux/commit/772002b7cd0eb4bc1= ed0684d1d9295670523ffe5 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Aaron-Tomlin/module-Introduce-mo= dule-unload-taint-tracking/20220419-230714 > git checkout 772002b7cd0eb4bc1ed0684d1d9295670523ffe5 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cro= ss W=3D1 O=3Dbuild_dir ARCH=3Dsparc64 SHELL=3D/bin/bash > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > In file included from include/linux/build_bug.h:5, > from include/linux/container_of.h:5, > from include/linux/list.h:5, > from include/linux/module.h:12, > from include/linux/moduleloader.h:6, > from kernel/module/main.c:11: > >> include/linux/compiler.h:86:28: error: expected '(' before '__volatile= __' > 86 | # define barrier() __asm__ __volatile__("": : :"memory") > | ^~~~~~~~~~~~ I'm not sure what's the issue here? Is this a false positive? > include/linux/preempt.h:277:49: note: in expansion of macro 'barrier' > 277 | #define preempt_enable() barrier() > | ^~~~~~~ > kernel/module/main.c:3207:9: note: in expansion of macro 'preempt_enab= le' > 3207 | preempt_enable(); > | ^~~~~~~~~~~~~~ > kernel/module/main.c:3208:9: error: expected identifier or '(' before = 'if' > 3208 | if (last_unloaded_module[0]) > | ^~ > In file included from include/linux/kernel.h:29, > from include/linux/cpumask.h:10, > from include/linux/mm_types_task.h:14, > from include/linux/mm_types.h:5, > from include/linux/buildid.h:5, > from include/linux/module.h:14, > from include/linux/moduleloader.h:6, > from kernel/module/main.c:11: > include/linux/printk.h:419:10: error: expected identifier or '(' befor= e ')' token > 419 | }) > | ^ > include/linux/printk.h:446:26: note: in expansion of macro 'printk_ind= ex_wrap' > 446 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__V= A_ARGS__) > | ^~~~~~~~~~~~~~~~~ > include/linux/printk.h:531:9: note: in expansion of macro 'printk' > 531 | printk(KERN_CONT fmt, ##__VA_ARGS__) > | ^~~~~~ > kernel/module/main.c:3209:17: note: in expansion of macro 'pr_cont' > 3209 | pr_cont(" [last unloaded: %s]", last_unloaded_= module); > | ^~~~~~~ > include/linux/printk.h:416:10: error: expected identifier or '(' befor= e '{' token > 416 | ({ = \ > | ^ > include/linux/printk.h:446:26: note: in expansion of macro 'printk_ind= ex_wrap' > 446 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__V= A_ARGS__) > | ^~~~~~~~~~~~~~~~~ > include/linux/printk.h:531:9: note: in expansion of macro 'printk' > 531 | printk(KERN_CONT fmt, ##__VA_ARGS__) > | ^~~~~~ > kernel/module/main.c:3210:9: note: in expansion of macro 'pr_cont' > 3210 | pr_cont("\n"); > | ^~~~~~~ > kernel/module/main.c:3211:1: error: expected identifier or '(' before = '}' token > 3211 | } > | ^ > kernel/module/main.c:594:13: warning: 'last_unloaded_module' defined b= ut not used [-Wunused-variable] > 594 | static char last_unloaded_module[MODULE_NAME_LEN+1]; > | ^~~~~~~~~~~~~~~~~~~~ > = > = > vim +86 include/linux/compiler.h > = > ^1da177e4c3f41 Linus Torvalds 2005-04-16 82 = > ^1da177e4c3f41 Linus Torvalds 2005-04-16 83 /* Optimization barrier */ > ^1da177e4c3f41 Linus Torvalds 2005-04-16 84 #ifndef barrier > 3347acc6fcd4ee Arvind Sankar 2020-11-13 85 /* The "volatile" is due to= gcc bugs */ > 3347acc6fcd4ee Arvind Sankar 2020-11-13 @86 # define barrier() __asm__ = __volatile__("": : :"memory") > ^1da177e4c3f41 Linus Torvalds 2005-04-16 87 #endif > ^1da177e4c3f41 Linus Torvalds 2005-04-16 88 = > = > -- = > 0-DAY CI Kernel Test Service > https://01.org/lkp > = -- = Aaron Tomlin --===============1312822226735687750==--