From: kernel test robot <lkp@intel.com>
To: Aaron Tomlin <atomlin@redhat.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC PATCH] module: Introduce module unload taint tracking
Date: Thu, 25 Nov 2021 06:52:30 +0800 [thread overview]
Message-ID: <202111250617.SNgvKWHi-lkp@intel.com> (raw)
In-Reply-To: <20211124173327.3878177-1-atomlin@redhat.com>
Hi Aaron,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linux/master]
[also build test ERROR on linus/master jeyu/modules-next v5.16-rc2 next-20211124]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Aaron-Tomlin/module-Introduce-module-unload-taint-tracking/20211125-013753
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 136057256686de39cc3a07c2e39ef6bc43003ff6
config: hexagon-randconfig-r041-20211124 (https://download.01.org/0day-ci/archive/20211125/202111250617.SNgvKWHi-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 67a1c45def8a75061203461ab0060c75c864df1c)
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://github.com/0day-ci/linux/commit/c843ee3eaddb5f5cf7e0d1bf927679da1f6eb608
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Aaron-Tomlin/module-Introduce-module-unload-taint-tracking/20211125-013753
git checkout c843ee3eaddb5f5cf7e0d1bf927679da1f6eb608
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> kernel/module.c:2266:3: error: implicit declaration of function 'pr_error' [-Werror,-Wimplicit-function-declaration]
pr_error("%s: adding tainted module to the unloaded tainted modules list failed.\n",
^
1 error generated.
vim +/pr_error +2266 kernel/module.c
2225
2226 /* Free a module, remove from lists, etc. */
2227 static void free_module(struct module *mod)
2228 {
2229 trace_module_free(mod);
2230
2231 mod_sysfs_teardown(mod);
2232
2233 /*
2234 * We leave it in list to prevent duplicate loads, but make sure
2235 * that noone uses it while it's being deconstructed.
2236 */
2237 mutex_lock(&module_mutex);
2238 mod->state = MODULE_STATE_UNFORMED;
2239 mutex_unlock(&module_mutex);
2240
2241 /* Remove dynamic debug info */
2242 ddebug_remove_module(mod->name);
2243
2244 /* Arch-specific cleanup. */
2245 module_arch_cleanup(mod);
2246
2247 /* Module unload stuff */
2248 module_unload_free(mod);
2249
2250 /* Free any allocated parameters. */
2251 destroy_params(mod->kp, mod->num_kp);
2252
2253 if (is_livepatch_module(mod))
2254 free_module_elf(mod);
2255
2256 /* Now we can delete it from the lists */
2257 mutex_lock(&module_mutex);
2258 /* Unlink carefully: kallsyms could be walking list. */
2259 list_del_rcu(&mod->list);
2260 mod_tree_remove(mod);
2261 /* Remove this module from bug list, this uses list_del_rcu */
2262 module_bug_cleanup(mod);
2263 /* Wait for RCU-sched synchronizing before releasing mod->list and buglist. */
2264 synchronize_rcu();
2265 if (try_add_tainted_module(mod))
> 2266 pr_error("%s: adding tainted module to the unloaded tainted modules list failed.\n",
2267 mod->name);
2268 mutex_unlock(&module_mutex);
2269
2270 /* Clean up CFI for the module. */
2271 cfi_cleanup(mod);
2272
2273 /* This may be empty, but that's OK */
2274 module_arch_freeing_init(mod);
2275 module_memfree(mod->init_layout.base);
2276 kfree(mod->args);
2277 percpu_modfree(mod);
2278
2279 /* Free lock-classes; relies on the preceding sync_rcu(). */
2280 lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size);
2281
2282 /* Finally, free the core (containing the module structure) */
2283 module_memfree(mod->core_layout.base);
2284 }
2285
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH] module: Introduce module unload taint tracking
Date: Thu, 25 Nov 2021 06:52:30 +0800 [thread overview]
Message-ID: <202111250617.SNgvKWHi-lkp@intel.com> (raw)
In-Reply-To: <20211124173327.3878177-1-atomlin@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 4280 bytes --]
Hi Aaron,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linux/master]
[also build test ERROR on linus/master jeyu/modules-next v5.16-rc2 next-20211124]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Aaron-Tomlin/module-Introduce-module-unload-taint-tracking/20211125-013753
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 136057256686de39cc3a07c2e39ef6bc43003ff6
config: hexagon-randconfig-r041-20211124 (https://download.01.org/0day-ci/archive/20211125/202111250617.SNgvKWHi-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 67a1c45def8a75061203461ab0060c75c864df1c)
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://github.com/0day-ci/linux/commit/c843ee3eaddb5f5cf7e0d1bf927679da1f6eb608
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Aaron-Tomlin/module-Introduce-module-unload-taint-tracking/20211125-013753
git checkout c843ee3eaddb5f5cf7e0d1bf927679da1f6eb608
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> kernel/module.c:2266:3: error: implicit declaration of function 'pr_error' [-Werror,-Wimplicit-function-declaration]
pr_error("%s: adding tainted module to the unloaded tainted modules list failed.\n",
^
1 error generated.
vim +/pr_error +2266 kernel/module.c
2225
2226 /* Free a module, remove from lists, etc. */
2227 static void free_module(struct module *mod)
2228 {
2229 trace_module_free(mod);
2230
2231 mod_sysfs_teardown(mod);
2232
2233 /*
2234 * We leave it in list to prevent duplicate loads, but make sure
2235 * that noone uses it while it's being deconstructed.
2236 */
2237 mutex_lock(&module_mutex);
2238 mod->state = MODULE_STATE_UNFORMED;
2239 mutex_unlock(&module_mutex);
2240
2241 /* Remove dynamic debug info */
2242 ddebug_remove_module(mod->name);
2243
2244 /* Arch-specific cleanup. */
2245 module_arch_cleanup(mod);
2246
2247 /* Module unload stuff */
2248 module_unload_free(mod);
2249
2250 /* Free any allocated parameters. */
2251 destroy_params(mod->kp, mod->num_kp);
2252
2253 if (is_livepatch_module(mod))
2254 free_module_elf(mod);
2255
2256 /* Now we can delete it from the lists */
2257 mutex_lock(&module_mutex);
2258 /* Unlink carefully: kallsyms could be walking list. */
2259 list_del_rcu(&mod->list);
2260 mod_tree_remove(mod);
2261 /* Remove this module from bug list, this uses list_del_rcu */
2262 module_bug_cleanup(mod);
2263 /* Wait for RCU-sched synchronizing before releasing mod->list and buglist. */
2264 synchronize_rcu();
2265 if (try_add_tainted_module(mod))
> 2266 pr_error("%s: adding tainted module to the unloaded tainted modules list failed.\n",
2267 mod->name);
2268 mutex_unlock(&module_mutex);
2269
2270 /* Clean up CFI for the module. */
2271 cfi_cleanup(mod);
2272
2273 /* This may be empty, but that's OK */
2274 module_arch_freeing_init(mod);
2275 module_memfree(mod->init_layout.base);
2276 kfree(mod->args);
2277 percpu_modfree(mod);
2278
2279 /* Free lock-classes; relies on the preceding sync_rcu(). */
2280 lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size);
2281
2282 /* Finally, free the core (containing the module structure) */
2283 module_memfree(mod->core_layout.base);
2284 }
2285
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2021-11-24 22:53 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 17:33 [RFC PATCH] module: Introduce module unload taint tracking Aaron Tomlin
2021-11-24 22:52 ` kernel test robot [this message]
2021-11-24 22:52 ` kernel test robot
2021-11-25 6:55 ` kernel test robot
2021-12-08 20:47 ` Luis Chamberlain
2021-12-09 16:49 ` Aaron Tomlin
2021-12-09 23:42 ` Luis Chamberlain
2021-12-10 10:00 ` Petr Mladek
2021-12-10 16:09 ` Aaron Tomlin
2021-12-10 17:09 ` Luis Chamberlain
2021-12-13 15:16 ` Petr Mladek
2021-12-21 11:58 ` Aaron Tomlin
2021-12-10 17:03 ` Luis Chamberlain
2021-12-10 15:48 ` Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 00/12] module: core code clean up Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 01/12] module: Move all into module/ Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 02/12] module: Simple refactor in preparation for split Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 03/12] module: Move livepatch support to a separate file Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 04/12] module: Move latched RB-tree " Aaron Tomlin
2021-12-29 0:10 ` kernel test robot
2021-12-29 0:40 ` kernel test robot
2021-12-28 21:30 ` [RFC PATCH 05/12] module: Move arch strict rwx " Aaron Tomlin
2022-01-12 16:13 ` Luis Chamberlain
2021-12-28 21:30 ` [RFC PATCH 06/12] module: Move " Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 07/12] module: Move extra signature support out of core code Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 08/12] module: Move kmemleak support to a separate file Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 09/12] module: Move kallsyms support into " Aaron Tomlin
2021-12-29 0:30 ` kernel test robot
2021-12-29 3:53 ` kernel test robot
2021-12-30 3:19 ` kernel test robot
2021-12-28 21:30 ` [RFC PATCH 10/12] module: Move procfs " Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 11/12] module: Move sysfs " Aaron Tomlin
2022-01-12 16:20 ` Luis Chamberlain
2021-12-28 21:30 ` [RFC PATCH 12/12] module: Move kdb_modules list out of core code Aaron Tomlin
2021-12-29 8:58 ` [RFC PATCH 00/12] module: core code clean up Aaron Tomlin
2022-01-12 16:21 ` Luis Chamberlain
2021-12-13 13:00 ` [RFC PATCH] module: Introduce module unload taint tracking Allen
2021-12-20 19:23 ` Luis Chamberlain
2021-12-21 11:44 ` Aaron Tomlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111250617.SNgvKWHi-lkp@intel.com \
--to=lkp@intel.com \
--cc=atomlin@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.