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: [PATCH 3/5 v0.6] sched/umcg: RFC: implement UMCG syscalls
Date: Mon, 20 Sep 2021 13:18:50 +0800	[thread overview]
Message-ID: <202109201308.NMbIcrNP-lkp@intel.com> (raw)
In-Reply-To: <20210917180323.278250-4-posk@google.com>

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

Hi Peter,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/sched/core]
[cannot apply to tip/master arnd-asm-generic/master linus/master tip/x86/asm tip/core/entry v5.15-rc2 next-20210917]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Peter-Oskolkov/sched-umcg-RFC-UMCG-patchset/20210918-020438
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2b214a488b2c83d63c99c71d054273c1c2c07027
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/6b02b0cfe54c356b941399cacf1c752d11cc3a00
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Peter-Oskolkov/sched-umcg-RFC-UMCG-patchset/20210918-020438
        git checkout 6b02b0cfe54c356b941399cacf1c752d11cc3a00
        # save the attached .config to linux build tree
        make W=1 ARCH=um 

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/sched/umcg.c:15:
   kernel/sched/umcg_uaccess.h: In function 'cmpxchg_user_32_nosleep':
>> kernel/sched/umcg_uaccess.h:92:2: error: implicit declaration of function '__uaccess_begin_nospec' [-Werror=implicit-function-declaration]
      92 |  __uaccess_begin_nospec();
         |  ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/__uaccess_begin_nospec +92 kernel/sched/umcg_uaccess.h

72323cc0a0d77f Peter Oskolkov 2021-09-17   73  
72323cc0a0d77f Peter Oskolkov 2021-09-17   74  /**
72323cc0a0d77f Peter Oskolkov 2021-09-17   75   * cmpxchg_32_user_nosleep - compare_exchange 32-bit values
72323cc0a0d77f Peter Oskolkov 2021-09-17   76   *
72323cc0a0d77f Peter Oskolkov 2021-09-17   77   * Return:
72323cc0a0d77f Peter Oskolkov 2021-09-17   78   * 0 - OK
72323cc0a0d77f Peter Oskolkov 2021-09-17   79   * -EFAULT: memory access error
72323cc0a0d77f Peter Oskolkov 2021-09-17   80   * -EAGAIN: @expected did not match; consult @prev
72323cc0a0d77f Peter Oskolkov 2021-09-17   81   */
72323cc0a0d77f Peter Oskolkov 2021-09-17   82  static inline int cmpxchg_user_32_nosleep(u32 __user *uaddr, u32 *old, u32 new)
72323cc0a0d77f Peter Oskolkov 2021-09-17   83  {
72323cc0a0d77f Peter Oskolkov 2021-09-17   84  	int ret = -EFAULT;
72323cc0a0d77f Peter Oskolkov 2021-09-17   85  	u32 __old = *old;
72323cc0a0d77f Peter Oskolkov 2021-09-17   86  
72323cc0a0d77f Peter Oskolkov 2021-09-17   87  	if (unlikely(!access_ok(uaddr, sizeof(*uaddr))))
72323cc0a0d77f Peter Oskolkov 2021-09-17   88  		return -EFAULT;
72323cc0a0d77f Peter Oskolkov 2021-09-17   89  
72323cc0a0d77f Peter Oskolkov 2021-09-17   90  	pagefault_disable();
72323cc0a0d77f Peter Oskolkov 2021-09-17   91  
72323cc0a0d77f Peter Oskolkov 2021-09-17  @92  	__uaccess_begin_nospec();
72323cc0a0d77f Peter Oskolkov 2021-09-17   93  	ret = __try_cmpxchg_user_32(old, uaddr, __old, new);
72323cc0a0d77f Peter Oskolkov 2021-09-17   94  	user_access_end();
72323cc0a0d77f Peter Oskolkov 2021-09-17   95  
72323cc0a0d77f Peter Oskolkov 2021-09-17   96  	if (!ret)
72323cc0a0d77f Peter Oskolkov 2021-09-17   97  		ret =  *old == __old ? 0 : -EAGAIN;
72323cc0a0d77f Peter Oskolkov 2021-09-17   98  
72323cc0a0d77f Peter Oskolkov 2021-09-17   99  	pagefault_enable();
72323cc0a0d77f Peter Oskolkov 2021-09-17  100  	return ret;
72323cc0a0d77f Peter Oskolkov 2021-09-17  101  }
72323cc0a0d77f Peter Oskolkov 2021-09-17  102  

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24467 bytes --]

  parent reply	other threads:[~2021-09-20  5:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17 18:03 [PATCH 0/5 v0.6] sched/umcg: RFC UMCG patchset Peter Oskolkov
2021-09-17 18:03 ` [PATCH 1/5 v0.6] sched/umcg: add WF_CURRENT_CPU and externise ttwu Peter Oskolkov
2021-09-17 18:03 ` [PATCH 2/5 v0.6] sched/umcg: RFC: add userspace atomic helpers Peter Oskolkov
2021-09-19 18:25   ` Tao Zhou
2021-09-28 21:58   ` Thomas Gleixner
2021-09-28 23:07     ` Peter Oskolkov
2021-09-17 18:03 ` [PATCH 3/5 v0.6] sched/umcg: RFC: implement UMCG syscalls Peter Oskolkov
2021-09-19 18:25   ` Tao Zhou
2021-09-19 23:24   ` kernel test robot
2021-09-20  5:18   ` kernel test robot [this message]
2021-09-28  9:21   ` Thomas Gleixner
2021-09-28 17:26     ` Peter Oskolkov
2021-09-28 20:00       ` Thomas Gleixner
2021-09-17 18:03 ` [PATCH 4/5 v0.6] sched/umcg: add Documentation/userspace-api/umcg.rst Peter Oskolkov
2021-09-17 18:03 ` [PATCH 5/5 v0.6] sched/umcg: add Documentation/userspace-api/umcg.txt Peter Oskolkov
2021-09-22 18:39   ` Thierry Delisle
2021-10-11 22:45     ` Peter Oskolkov
2021-10-12 16:25       ` Thierry Delisle
2021-10-12 16:58         ` Peter Oskolkov
2021-10-12 18:46           ` Thierry Delisle
2021-10-12 21:44             ` Peter Oskolkov

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=202109201308.NMbIcrNP-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.