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]
Date:   Fri, 14 Oct 2022 04:33:28 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mark:arm64/ftrace/per-callsite-ops 2/10]
 kernel/trace/ring_buffer.c:6162:1: warning: 'text_section' attribute
 directive ignored

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head:   6a9b9a69092588f97ba9a8486fd33b5c54bf3a8c
commit: 6f686ce2c62de43ca39fd219b9e38a2962bb353f [2/10] WIP: arm64: ftrace: use pre-function NOPs
config: loongarch-allyesconfig
compiler: loongarch64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=6f686ce2c62de43ca39fd219b9e38a2962bb353f
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/ftrace/per-callsite-ops
        git checkout 6f686ce2c62de43ca39fd219b9e38a2962bb353f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash kernel/trace/

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

All warnings (new ones prefixed by >>):

>> kernel/trace/ring_buffer.c:6162:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    6162 | late_initcall(test_ringbuffer);
         | ^~~~~~~~~~~~~
--
>> kernel/trace/ring_buffer_benchmark.c:492:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     492 | module_init(ring_buffer_benchmark_init);
         | ^~~~~~~~~~~
--
>> kernel/trace/trace.c:1737:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    1737 | late_initcall_sync(latency_fsnotify_init);
         | ^~~~~~~~~~~~~~~~~~
   kernel/trace/trace.c:2044:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    2044 | core_initcall(init_trace_selftests);
         | ^~~~~~~~~~~~~
   kernel/trace/trace.c: In function 'trace_check_vprintf':
   kernel/trace/trace.c:3861:17: warning: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    3861 |                 trace_seq_vprintf(&iter->seq, iter->fmt, ap);
         |                 ^~~~~~~~~~~~~~~~~
   kernel/trace/trace.c:3928:17: warning: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
    3928 |                 trace_seq_vprintf(&iter->seq, p, ap);
         |                 ^~~~~~~~~~~~~~~~~
   kernel/trace/trace.c: At top level:
   kernel/trace/trace.c:9700:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    9700 | subsys_initcall(trace_eval_init);
         | ^~~~~~~~~~~~~~~
   kernel/trace/trace.c:9710:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    9710 | late_initcall_sync(trace_eval_sync);
         | ^~~~~~~~~~~~~~~~~~
   kernel/trace/trace.c:9845:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    9845 | fs_initcall(tracer_init_tracefs);
         | ^~~~~~~~~~~
   kernel/trace/trace.c:10325:1: warning: 'text_section' attribute directive ignored [-Wattributes]
   10325 | late_initcall_sync(late_trace_init);
         | ^~~~~~~~~~~~~~~~~~
--
   kernel/trace/trace_output.c: In function 'trace_output_raw':
   kernel/trace/trace_output.c:332:9: warning: function 'trace_output_raw' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     332 |         trace_seq_vprintf(s, trace_event_format(iter, fmt), ap);
         |         ^~~~~~~~~~~~~~~~~
   kernel/trace/trace_output.c: At top level:
>> kernel/trace/trace_output.c:1584:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    1584 | early_initcall(init_events);
         | ^~~~~~~~~~~~~~
--
>> kernel/trace/trace_printk.c:393:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     393 | fs_initcall(init_trace_printk_function_export);
         | ^~~~~~~~~~~
   kernel/trace/trace_printk.c:400:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     400 | early_initcall(init_trace_printk);
         | ^~~~~~~~~~~~~~
--
>> kernel/trace/synth_event_gen_test.c:524:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     524 | module_init(synth_event_gen_test_init)
         | ^~~~~~~~~~~
--
>> kernel/trace/trace_irqsoff.c:750:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     750 | core_initcall(init_irqsoff_tracer);
         | ^~~~~~~~~~~~~
--
>> kernel/trace/trace_sched_wakeup.c:818:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     818 | core_initcall(init_wakeup_tracer);
         | ^~~~~~~~~~~~~
--
>> kernel/trace/trace_hwlat.c:890:1: warning: 'text_section' attribute directive ignored [-Wattributes]
     890 | late_initcall(init_hwlat_tracer);
         | ^~~~~~~~~~~~~
--
>> kernel/trace/trace_osnoise.c:2439:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    2439 | late_initcall(init_osnoise_tracer);
         | ^~~~~~~~~~~~~
--
>> kernel/trace/blktrace.c:1606:1: warning: 'text_section' attribute directive ignored [-Wattributes]
    1606 | device_initcall(init_blk_tracer);
         | ^~~~~~~~~~~~~~~
..


vim +/text_section +6162 kernel/trace/ring_buffer.c

6c43e554a2a5c1 Steven Rostedt (Red Hat  2013-03-15  6161) 
6c43e554a2a5c1 Steven Rostedt (Red Hat  2013-03-15 @6162) late_initcall(test_ringbuffer);

:::::: The code at line 6162 was first introduced by commit
:::::: 6c43e554a2a5c1f2caf1733d46719bc58de3e37b ring-buffer: Add ring buffer startup selftest

:::::: TO: Steven Rostedt (Red Hat) <rostedt@...dmis.org>
:::::: CC: Steven Rostedt <rostedt@...dmis.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (327647 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ