module: Introduce module unload taint tracking
Quoted 1 line · kernel test robot
Hi Aaron,
Hi,
Quoted 29 lines
[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/module-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.0reproduce (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/intel-lab-lkp/linux/commit/772002b7cd0eb4bc1ed0684d1d9295670523ffe5
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Aaron-Tomlin/module-Introduce-module-unload-taint-tracking/20220419-230714 git checkout772002b7cd0eb4bc1ed0684d1d9295670523ffe5
# save the config file
mkdirbuild_dir&& cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bashIf you fix the issue, kindly add following tag as appropriate
Reported-by kernel test robot <[email protected]>All errors (new ones prefixed by >>):
In file included from
include/linux/build_bug.h:5,
frominclude/linux/container_of.h:5, frominclude/linux/list.h:5, frominclude/linux/module.h:12, frominclude/linux/moduleloader.h:6, fromkernel/module/main.c:11:
Quoted 3 lines
Quoted 1 line
Quoted 1 line
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?
Quoted 63 lines
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_enable' 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 '(' before ')' token 419 | }) | ^ include/linux/printk.h:446:26: note: in expansion of macro 'printk_index_wrap' 446 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_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 '(' before '{' token 416 | ({ \ | ^ include/linux/printk.h:446:26: note: in expansion of macro 'printk_index_wrap' 446 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_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 but 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 */
3347acc6fcd4eeArvind Sankar 2020-11-13 @86 # definebarrier()__asm____volatile__("": : :"memory")^1da177e4c3f41 Linus Torvalds 2005-04-16 87 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 88Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
Signature · 1 line
Aaron Tomlin