All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Ingo Molnar <mingo@kernel.org>, Oleg Nesterov <oleg@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH 8/8] waitid(): switch copyout of siginfo to unsafe_put_user()
Date: Tue, 16 May 2017 12:17:23 +0800	[thread overview]
Message-ID: <201705161252.NVjgbACe%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170515223716.2085-8-viro@ZenIV.linux.org.uk>

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

Hi Al,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.12-rc1 next-20170515]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Al-Viro/move-compat-wait4-and-waitid-next-to-native-variants/20170516-084127
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:4:0,
                    from arch/arm64/include/asm/bug.h:66,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/mm.h:8,
                    from kernel/exit.c:7:
   kernel/exit.c: In function 'C_SYSC_waitid':
   kernel/exit.c:1746:38: error: 'infop' undeclared (first use in this function)
     unsafe_put_user(err ? 0 : SIGCHLD, &infop->si_signo, Efault);
                                         ^
   include/linux/compiler.h:179:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> arch/arm64/include/asm/uaccess.h:313:2: note: in expansion of macro '__put_user_err'
     __put_user_err((x), (ptr), __pu_err);    \
     ^~~~~~~~~~~~~~
   include/linux/uaccess.h:302:56: note: in expansion of macro '__put_user'
    #define unsafe_put_user(x, ptr, err) do { if (unlikely(__put_user(x, ptr))) goto err; } while (0)
                                                           ^~~~~~~~~~
   kernel/exit.c:1746:2: note: in expansion of macro 'unsafe_put_user'
     unsafe_put_user(err ? 0 : SIGCHLD, &infop->si_signo, Efault);
     ^~~~~~~~~~~~~~~
   kernel/exit.c:1746:38: note: each undeclared identifier is reported only once for each function it appears in
     unsafe_put_user(err ? 0 : SIGCHLD, &infop->si_signo, Efault);
                                         ^
   include/linux/compiler.h:179:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> arch/arm64/include/asm/uaccess.h:313:2: note: in expansion of macro '__put_user_err'
     __put_user_err((x), (ptr), __pu_err);    \
     ^~~~~~~~~~~~~~
   include/linux/uaccess.h:302:56: note: in expansion of macro '__put_user'
    #define unsafe_put_user(x, ptr, err) do { if (unlikely(__put_user(x, ptr))) goto err; } while (0)
                                                           ^~~~~~~~~~
   kernel/exit.c:1746:2: note: in expansion of macro 'unsafe_put_user'
     unsafe_put_user(err ? 0 : SIGCHLD, &infop->si_signo, Efault);
     ^~~~~~~~~~~~~~~

vim +/__put_user_err +313 arch/arm64/include/asm/uaccess.h

57f4959b James Morse     2016-02-05  297  		__put_user_asm("str", "sttr", "%w", __pu_val, (ptr),	\
57f4959b James Morse     2016-02-05  298  			       (err), ARM64_HAS_UAO);			\
0aea86a2 Catalin Marinas 2012-03-05  299  		break;							\
0aea86a2 Catalin Marinas 2012-03-05  300  	case 8:								\
d135b8b5 Mark Rutland    2017-05-03  301  		__put_user_asm("str", "sttr", "%x", __pu_val, (ptr),	\
57f4959b James Morse     2016-02-05  302  			       (err), ARM64_HAS_UAO);			\
0aea86a2 Catalin Marinas 2012-03-05  303  		break;							\
0aea86a2 Catalin Marinas 2012-03-05  304  	default:							\
0aea86a2 Catalin Marinas 2012-03-05  305  		BUILD_BUG();						\
0aea86a2 Catalin Marinas 2012-03-05  306  	}								\
bd38967d Catalin Marinas 2016-07-01  307  	uaccess_disable_not_uao();					\
0aea86a2 Catalin Marinas 2012-03-05  308  } while (0)
0aea86a2 Catalin Marinas 2012-03-05  309  
0aea86a2 Catalin Marinas 2012-03-05  310  #define __put_user(x, ptr)						\
0aea86a2 Catalin Marinas 2012-03-05  311  ({									\
0aea86a2 Catalin Marinas 2012-03-05  312  	int __pu_err = 0;						\
0aea86a2 Catalin Marinas 2012-03-05 @313  	__put_user_err((x), (ptr), __pu_err);				\
0aea86a2 Catalin Marinas 2012-03-05  314  	__pu_err;							\
0aea86a2 Catalin Marinas 2012-03-05  315  })
0aea86a2 Catalin Marinas 2012-03-05  316  
0aea86a2 Catalin Marinas 2012-03-05  317  #define __put_user_error(x, ptr, err)					\
0aea86a2 Catalin Marinas 2012-03-05  318  ({									\
0aea86a2 Catalin Marinas 2012-03-05  319  	__put_user_err((x), (ptr), (err));				\
0aea86a2 Catalin Marinas 2012-03-05  320  	(void)0;							\
0aea86a2 Catalin Marinas 2012-03-05  321  })

:::::: The code at line 313 was first introduced by commit
:::::: 0aea86a2176c22647a5b683768f858d880d5e05b arm64: User access library functions

:::::: TO: Catalin Marinas <catalin.marinas@arm.com>
:::::: CC: Catalin Marinas <catalin.marinas@arm.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  parent reply	other threads:[~2017-05-16  4:18 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 22:31 [RFC][PATCHSET] wait4()/waitid() cleanups Al Viro
2017-05-15 22:37 ` [PATCH 1/8] move compat wait4 and waitid next to native variants Al Viro
2017-05-15 22:37   ` [PATCH 2/8] wait4(2)/waitid(2): separate copying rusage to userland Al Viro
2017-05-15 22:37   ` [PATCH 3/8] kernel_wait4()/kernel_waitid(): delay copying status " Al Viro
2017-05-15 22:37   ` [PATCH 4/8] waitid(2): leave copyout of siginfo to syscall itself Al Viro
2017-05-15 23:06     ` Linus Torvalds
2017-05-15 23:46       ` Al Viro
2017-05-17 19:48         ` Eric W. Biederman
2017-05-15 22:37   ` [PATCH 5/8] lift getrusage() from wait_noreap_copyout() Al Viro
2017-05-15 22:37   ` [PATCH 6/8] kill wait_noreap_copyout() Al Viro
2017-05-15 22:37   ` [PATCH 7/8] wait_task_zombie: consolidate info logics Al Viro
2017-05-15 22:37   ` [PATCH 8/8] waitid(): switch copyout of siginfo to unsafe_put_user() Al Viro
2017-05-16  3:55     ` kbuild test robot
2017-05-16  4:17     ` kbuild test robot [this message]
2017-05-19  6:08     ` [lkp-robot] [waitid()] 75f64d68f9: Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= kernel test robot
2017-05-19  6:08       ` kernel test robot
2017-05-21  7:34       ` Al Viro
2017-05-21  7:34         ` Al Viro
2017-05-21 19:04         ` Linus Torvalds
2017-05-21 19:04           ` Linus Torvalds
2017-05-21 19:35         ` Linus Torvalds
2017-05-21 19:35           ` Linus Torvalds
2017-05-21 21:14           ` Al Viro
2017-05-21 21:14             ` Al Viro
2017-05-21 21:37             ` Linus Torvalds
2017-05-21 21:37               ` Linus Torvalds
2017-05-21 22:19               ` Linus Torvalds
2017-05-21 22:19                 ` Linus Torvalds
2017-05-22  1:39                 ` Linus Torvalds
2017-05-22  1:39                   ` Linus Torvalds
2017-05-17 19:57 ` [RFC][PATCHSET] wait4()/waitid() cleanups Eric W. Biederman

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=201705161252.NVjgbACe%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=oleg@redhat.com \
    --cc=peterz@infradead.org \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@ZenIV.linux.org.uk \
    /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.