* [openeuler:OLK-6.6 3536/3536] kernel/livepatch/core.c:2046: warning: bad line:
@ 2025-12-11 16:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-11 16:32 UTC (permalink / raw)
To: kernel, Zheng Yejian; +Cc: oe-kbuild-all
Hi Zheng,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 5930fa3740c518a9f6ba688fd0c1873d6f3adbce
commit: 29f85d3cff2dfa35ace94d3e4036d5ea456eb859 [3536/3536] livepatch: Add klp_module_delete_safety_check
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20251212/202512120043.Ja8LDkyR-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251212/202512120043.Ja8LDkyR-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512120043.Ja8LDkyR-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/livepatch/core.c:2046: warning: bad line:
vim +2046 kernel/livepatch/core.c
2033
2034 /**
2035 * klp_module_delete_safety_check() - safety check in livepatch scenario when delete a module
2036 * @mod: Module to be deleted
2037 *
2038 * Module refcnt ensures that there is no rare case between enable_patch and delete_module:
2039 * 1. safety_check -> try_enable_patch -> try_release_module_ref:
2040 * try_enable_patch would increase module refcnt, which cause try_release_module_ref fails.
2041 * 2. safety_check -> try_release_module_ref -> try_enable_patch:
2042 * after release module ref, try_enable_patch would fail because try_module_get fails.
2043 * So the problem that release resources unsafely when enable livepatch after safety_check is
2044 * passed during module deletion does not exist, complex synchronization protection is not
2045 * required.
> 2046
2047 * Return: 0 on success, otherwise error
2048 */
2049 int klp_module_delete_safety_check(struct module *mod)
2050 {
2051 int ret;
2052
2053 if (!mod || !is_livepatch_module(mod))
2054 return 0;
2055
2056 ret = stop_machine(arch_klp_module_check_calltrace, (void *)mod, NULL);
2057 if (ret) {
2058 pr_debug("failed to check klp module calltrace: %d\n", ret);
2059 return ret;
2060 }
2061
2062 return 0;
2063 }
2064
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-11 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11 16:32 [openeuler:OLK-6.6 3536/3536] kernel/livepatch/core.c:2046: warning: bad line: kernel test robot
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.