llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [mingo-tip:sched/headers 203/2375] kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
@ 2022-01-08 21:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-08 21:19 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: llvm, kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   351ceeab2ef96ab2fc306934ddb201b44636181b
commit: 6d8683d081e753b3921879e105659a4bcfd9c08c [203/2375] headers/deps: Move task_struct::flags to per_task()
config: x86_64-buildonly-randconfig-r004-20220108 (https://download.01.org/0day-ci/archive/20220109/202201090555.OpViV38G-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607)
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/mingo/tip.git/commit/?id=6d8683d081e753b3921879e105659a4bcfd9c08c
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout 6d8683d081e753b3921879e105659a4bcfd9c08c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/

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 kernel/kcsan/core.c:25:
>> kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
           return ptr == &current->flags;
                          ~~~~~~~  ^
   1 error generated.


vim +31 kernel/kcsan/permissive.h

49f72d5358dd3c Marco Elver 2021-06-07  18  
49f72d5358dd3c Marco Elver 2021-06-07  19  /*
49f72d5358dd3c Marco Elver 2021-06-07  20   * Access ignore rules based on address.
49f72d5358dd3c Marco Elver 2021-06-07  21   */
49f72d5358dd3c Marco Elver 2021-06-07  22  static __always_inline bool kcsan_ignore_address(const volatile void *ptr)
49f72d5358dd3c Marco Elver 2021-06-07  23  {
49f72d5358dd3c Marco Elver 2021-06-07  24  	if (!IS_ENABLED(CONFIG_KCSAN_PERMISSIVE))
49f72d5358dd3c Marco Elver 2021-06-07  25  		return false;
49f72d5358dd3c Marco Elver 2021-06-07  26  
d8fd74d35a8d3c Marco Elver 2021-06-07  27  	/*
d8fd74d35a8d3c Marco Elver 2021-06-07  28  	 * Data-racy bitops on current->flags are too common, ignore completely
d8fd74d35a8d3c Marco Elver 2021-06-07  29  	 * for now.
d8fd74d35a8d3c Marco Elver 2021-06-07  30  	 */
d8fd74d35a8d3c Marco Elver 2021-06-07 @31  	return ptr == &current->flags;
49f72d5358dd3c Marco Elver 2021-06-07  32  }
49f72d5358dd3c Marco Elver 2021-06-07  33  

:::::: The code at line 31 was first introduced by commit
:::::: d8fd74d35a8d3c602232e3238e916bda9d03d520 kcsan: permissive: Ignore data-racy 1-bit value changes

:::::: TO: Marco Elver <elver@google.com>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-08 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-08 21:19 [mingo-tip:sched/headers 203/2375] kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).