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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <789b56973c0e6419a6a44210a18d1b31d0daf8e6.camel@redhat.com>
Date: Fri, 14 Feb 2025 12:15:31 +0100
From: Gabriele Monaco <gmonaco@...hat.com>
To: kernel test robot <lkp@...el.com>, linux-kernel@...r.kernel.org, Steven
 Rostedt <rostedt@...dmis.org>, Ingo Molnar <mingo@...hat.com>, Peter
 Zijlstra <peterz@...radead.org>,  Masami Hiramatsu <mhiramat@...nel.org>,
 linux-trace-kernel@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, Juri Lelli <juri.lelli@...hat.com>
Subject: Re: [PATCH v2 03/11] sched: Add sched tracepoints for RV task model

 
On Fri, 2025-02-14 at 16:00 +0800, kernel test robot wrote: 
 
>  >    kernel/sched/core.c: In function
> '__do_trace_set_current_state': 
>  
 
>  
> >  
> > >  > > > kernel/sched/core.c:503:9: error: implicit declaration of 
> > > > > > function '__do_trace_sched_set_state_tp'; did you mean 
> > > > > > 'trace_sched_set_state_tp'? 
> > > > > > [-Werror=implicit-function-declaration] 
> > >  
> >  
>  
 
>  >      503 |         __do_trace_sched_set_state_tp(current, 
> > current->__state, state_value); 
> >          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
> >          |         trace_sched_set_state_tp 
> >    cc1: some warnings being treated as errors 
> > 
> > 
> > vim +503 kernel/sched/core.c 
> > 
> >    496 
> >    497 /* 
> >    498 * Do not call this function directly since it won't check if
> > the tp is enabled. 
> >    499 * Call the helper macro trace_set_current_state instead. 
> >    500 */ 
> >    501 void __do_trace_set_current_state(int state_value) 
> >    502 { 
> >  > 503 __do_trace_sched_set_state_tp(current, current->__state, 
> > state_value); 
> >    504 } 
> >    505 EXPORT_SYMBOL(__do_trace_set_current_state); 
> >    506 
>  
 
I honestly don't get why this build failed. The function __do_trace_
exists since cff6d93eab00ba ("tracepoint: Reduce duplication of
__DO_TRACE_CALL"), a while before that it was just a macro and not an
inline function, reason why no one so far used it directly.

Both failed builds are based on 4dc1d1bec898 (where my patchset is
based) and there __do_trace_ does exist.

Unless there's a strong opinion not to use it although the compiler
allows it, I'd consider the two kernel robot results false negatives.

Or am I missing something?


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ