lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110300446.4wx2Cr8a-lkp@intel.com>
Date:   Sat, 30 Oct 2021 04:18:53 +0800
From:   kernel test robot <lkp@...el.com>
To:     Joe Lawrence <joe.lawrence@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [joe-lawrence:klp-convert-v5-expanded-v5.14-rebase1 39/47]
 lib/livepatch/test_klp_convert_sections.c:20:6: warning: no previous
 prototype for 'print_saved_command_line'

tree:   https://github.com/joe-lawrence/linux klp-convert-v5-expanded-v5.14-rebase1
head:   74c41c8a3056994b50b93c5f534dff4d6d6e7d8b
commit: b6b7d6ba7b78e6322ace75fa0d976f1b2518b7eb [39/47] WIP: (squash) klp-convert: test multiple sections
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/joe-lawrence/linux/commit/b6b7d6ba7b78e6322ace75fa0d976f1b2518b7eb
        git remote add joe-lawrence https://github.com/joe-lawrence/linux
        git fetch --no-tags joe-lawrence klp-convert-v5-expanded-v5.14-rebase1
        git checkout b6b7d6ba7b78e6322ace75fa0d976f1b2518b7eb
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> lib/livepatch/test_klp_convert_sections.c:20:6: warning: no previous prototype for 'print_saved_command_line' [-Wmissing-prototypes]
      20 | void print_saved_command_line(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert_sections.c:26:6: warning: no previous prototype for 'print_saved_command_line2' [-Wmissing-prototypes]
      26 | void print_saved_command_line2(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert_sections.c:33:6: warning: no previous prototype for 'print_saved_command_line3' [-Wmissing-prototypes]
      33 | void print_saved_command_line3(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert_sections.c:47:6: warning: no previous prototype for 'print_via_function_pointers' [-Wmissing-prototypes]
      47 | void print_via_function_pointers(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/print_saved_command_line +20 lib/livepatch/test_klp_convert_sections.c

    13	
    14	/*
    15	 * Scatter references to the same symbol (saved_command_line) across a
    16	 * few different ELF sections.  At the same time, include multiple
    17	 * references within the same function.
    18	 */
    19	__section(".text.print_saved_command_line")
  > 20	void print_saved_command_line(void)
    21	{
    22		pr_info("saved_command_line (1): %s\n", saved_command_line);
    23	}
    24	
    25	__section(".text.print_saved_command_line2")
  > 26	void print_saved_command_line2(void)
    27	{
    28		pr_info("saved_command_line (1): %s\n", saved_command_line);
    29		pr_info("saved_command_line (2): %s\n", saved_command_line);
    30	}
    31	
    32	__section(".text.print_saved_command_line3")
  > 33	void print_saved_command_line3(void)
    34	{
    35		pr_info("saved_command_line (1): %s\n", saved_command_line);
    36		pr_info("saved_command_line (2): %s\n", saved_command_line);
    37		pr_info("saved_command_line (3): %s\n", saved_command_line);
    38	}
    39	
    40	/*
    41	 * Create relocations in .rela.data that need conversion, sharing
    42	 * symbols with ordinary .text relas.
    43	 */
    44	const char *(*p_test_klp_get_driver_name)(void) = test_klp_get_driver_name;
    45	const char *(*p_get_homonym_string)(void) = get_homonym_string;
    46	
  > 47	void print_via_function_pointers(void)
    48	{
    49		pr_info("test_klp_get_driver_name(): %s\n", test_klp_get_driver_name());
    50		pr_info("p_test_klp_get_driver_name(): %s\n", p_test_klp_get_driver_name());
    51		pr_info("get_homonym_string(): %s\n", get_homonym_string());
    52		pr_info("p_get_homonym_string(): %s\n", p_get_homonym_string());
    53	}
    54	

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

Download attachment ".config.gz" of type "application/gzip" (65959 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ