All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v4 06/13] module: Move strict rwx support to a separate file
Date: Mon, 31 Jan 2022 08:30:54 +0800	[thread overview]
Message-ID: <202201310846.HImoX0UC-lkp@intel.com> (raw)
In-Reply-To: <20220130213214.1042497-7-atomlin@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 7466 bytes --]

Hi Aaron,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on a97ac8cb24a3c3ad74794adb83717ef1605d1b47]

url:    https://github.com/0day-ci/linux/commits/Aaron-Tomlin/module-core-code-clean-up/20220131-053513
base:   a97ac8cb24a3c3ad74794adb83717ef1605d1b47
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20220131/202201310846.HImoX0UC-lkp(a)intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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/742710509e2dfa52ca8af5e1703124f620a51b6a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Aaron-Tomlin/module-core-code-clean-up/20220131-053513
        git checkout 742710509e2dfa52ca8af5e1703124f620a51b6a
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash arch/alpha/

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 >>):

   In file included from include/linux/device/driver.h:21,
                    from include/linux/device.h:32,
                    from include/linux/blk_types.h:11,
                    from include/linux/writeback.h:13,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:9,
                    from arch/alpha/mm/init.c:20:
   include/linux/module.h: In function 'is_livepatch_module':
   include/linux/module.h:708:26: error: 'struct module' has no member named 'klp'; did you mean 'kp'?
     708 |                 if (mod->klp)
         |                          ^~~
         |                          kp
   include/linux/module.h: In function 'set_livepatch_module':
   include/linux/module.h:717:22: error: 'struct module' has no member named 'klp'; did you mean 'kp'?
     717 |                 mod->klp = true;
         |                      ^~~
         |                      kp
   arch/alpha/mm/init.c: At top level:
   arch/alpha/mm/init.c:261:1: error: no previous prototype for 'srm_paging_stop' [-Werror=missing-prototypes]
     261 | srm_paging_stop (void)
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/device/driver.h:21,
                    from include/linux/device.h:32,
                    from include/linux/blk_types.h:11,
                    from include/linux/writeback.h:13,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:9,
                    from arch/alpha/mm/init.c:20:
>> include/linux/module.h:374:12: error: 'module_enforce_rwx_sections' defined but not used [-Werror=unused-function]
     374 | static int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/module.h:373:13: error: 'module_enable_ro' defined but not used [-Werror=unused-function]
     373 | static void module_enable_ro(const struct module *mod, bool after_init) {}
         |             ^~~~~~~~~~~~~~~~
>> include/linux/module.h:372:13: error: 'module_enable_nx' defined but not used [-Werror=unused-function]
     372 | static void module_enable_nx(const struct module *mod) { }
         |             ^~~~~~~~~~~~~~~~
   include/linux/module.h:356:13: error: 'module_enable_x' defined but not used [-Werror=unused-function]
     356 | static void module_enable_x(const struct module *mod) { }
         |             ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/kallsyms.h:14,
                    from include/linux/ftrace.h:12,
                    from include/linux/perf_event.h:49,
                    from arch/alpha/mm/fault.c:28:
   include/linux/module.h: In function 'is_livepatch_module':
   include/linux/module.h:708:26: error: 'struct module' has no member named 'klp'; did you mean 'kp'?
     708 |                 if (mod->klp)
         |                          ^~~
         |                          kp
   include/linux/module.h: In function 'set_livepatch_module':
   include/linux/module.h:717:22: error: 'struct module' has no member named 'klp'; did you mean 'kp'?
     717 |                 mod->klp = true;
         |                      ^~~
         |                      kp
   arch/alpha/mm/fault.c: At top level:
   arch/alpha/mm/fault.c:85:1: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]
      85 | do_page_fault(unsigned long address, unsigned long mmcsr,
         | ^~~~~~~~~~~~~
   In file included from include/linux/kallsyms.h:14,
                    from include/linux/ftrace.h:12,
                    from include/linux/perf_event.h:49,
                    from arch/alpha/mm/fault.c:28:
>> include/linux/module.h:374:12: error: 'module_enforce_rwx_sections' defined but not used [-Werror=unused-function]
     374 | static int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/module.h:373:13: error: 'module_enable_ro' defined but not used [-Werror=unused-function]
     373 | static void module_enable_ro(const struct module *mod, bool after_init) {}
         |             ^~~~~~~~~~~~~~~~
>> include/linux/module.h:372:13: error: 'module_enable_nx' defined but not used [-Werror=unused-function]
     372 | static void module_enable_nx(const struct module *mod) { }
         |             ^~~~~~~~~~~~~~~~
   include/linux/module.h:356:13: error: 'module_enable_x' defined but not used [-Werror=unused-function]
     356 | static void module_enable_x(const struct module *mod) { }
         |             ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/module_enforce_rwx_sections +374 include/linux/module.h

   358	
   359	#ifdef CONFIG_STRICT_MODULE_RWX
   360	extern void frob_rodata(const struct module_layout *layout,
   361				int (*set_memory)(unsigned long start, int num_pages));
   362	extern void frob_ro_after_init(const struct module_layout *layout,
   363				       int (*set_memory)(unsigned long start, int num_pages));
   364	extern void frob_writable_data(const struct module_layout *layout,
   365				       int (*set_memory)(unsigned long start, int num_pages));
   366	extern void module_enable_ro(const struct module *mod, bool after_init);
   367	extern void module_enable_nx(const struct module *mod);
   368	extern int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
   369					       char *secstrings, struct module *mod);
   370	
   371	#else /* !CONFIG_STRICT_MODULE_RWX */
 > 372	static void module_enable_nx(const struct module *mod) { }
 > 373	static void module_enable_ro(const struct module *mod, bool after_init) {}
 > 374	static int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
   375					       char *secstrings, struct module *mod)
   376	{
   377		return 0;
   378	}
   379	#endif /* CONFIG_STRICT_MODULE_RWX */
   380	

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

  reply	other threads:[~2022-01-31  0:30 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-30 21:32 [RFC PATCH v4 00/13] module: core code clean up Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 01/13] module: Move all into module/ Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 02/13] module: Simple refactor in preparation for split Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 03/13] module: Move livepatch support to a separate file Aaron Tomlin
2022-01-30 23:50   ` kernel test robot
2022-02-08 11:42   ` Petr Mladek
2022-02-08 15:18     ` Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 04/13] module: Move latched RB-tree " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 05/13] module: Move arch strict rwx " Aaron Tomlin
2022-01-30 23:50   ` kernel test robot
2022-01-30 21:32 ` [RFC PATCH v4 06/13] module: Move " Aaron Tomlin
2022-01-31  0:30   ` kernel test robot [this message]
2022-01-30 21:32 ` [RFC PATCH v4 07/13] module: Move extra signature support out of core code Aaron Tomlin
2022-02-09 14:28   ` Miroslav Benes
2022-02-09 14:37     ` Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 08/13] module: Move kmemleak support to a separate file Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 09/13] module: Move kallsyms support into " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 10/13] module: Move procfs " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 11/13] module: Move sysfs " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 12/13] module: Move kdb_modules list out of core code Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 13/13] module: Move version support into a separate file Aaron Tomlin
2022-01-31  0:41   ` kernel test robot
2022-02-01 16:44 ` [RFC PATCH v4 00/13] module: core code clean up Allen
2022-02-05 20:33   ` Aaron Tomlin
2022-02-02  2:44 ` Luis Chamberlain
2022-02-06 14:40   ` Aaron Tomlin
2022-02-03  0:20 ` Luis Chamberlain
2022-02-03  7:48   ` Christophe Leroy
2022-02-06 14:45     ` Aaron Tomlin
2022-02-03 18:01   ` Christophe Leroy
2022-02-06 16:54     ` Aaron Tomlin
2022-02-07 16:46     ` Aaron Tomlin
2022-02-07 17:17       ` Christophe Leroy
2022-02-07 18:01         ` Aaron Tomlin
2022-02-08  7:50           ` Christophe Leroy
2022-02-08 10:05             ` Aaron Tomlin
2022-02-03 18:15   ` Christophe Leroy
2022-02-06 16:57     ` Aaron Tomlin
2022-02-03 19:43   ` Michal Suchánek
2022-02-03 20:13     ` Luis Chamberlain
2022-02-03 20:10   ` Luis Chamberlain
2022-02-06 17:00     ` Aaron Tomlin
2022-02-06 14:42   ` Aaron Tomlin
  -- strict thread matches above, loose matches on Subject: below --
2022-01-31 12:45 [RFC PATCH v4 01/13] module: Move all into module/ Aaron Tomlin
2022-01-31 12:45 ` [RFC PATCH v4 06/13] module: Move strict rwx support to a separate file 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=202201310846.HImoX0UC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.