linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>,
	Linux Next Mailing List <linux-next@vger.kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	richard -rw- weinberger <richard.weinberger@gmail.com>,
	Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: linux-next: Tree for Mar 27
Date: Fri, 27 Mar 2020 08:52:47 -0700	[thread overview]
Message-ID: <425b6d83-53da-15bb-8e7a-158f7c44ffad@infradead.org> (raw)
In-Reply-To: <20200327190740.7385d4ff@canb.auug.org.au>

On 3/27/20 1:07 AM, Stephen Rothwell wrote:
> Hi all,
> 
> Changes since 20200326:
> 

on i386, UML defconfig build fails with: (mostly get_user() variants)


  CC      kernel/signal.o
In file included from ../include/linux/kernel.h:15:0,
                 from ../include/asm-generic/bug.h:19,
                 from ./arch/um/include/generated/asm/bug.h:1,
                 from ../include/linux/bug.h:5,
                 from ../include/linux/mmdebug.h:5,
                 from ../include/linux/gfp.h:5,
                 from ../include/linux/slab.h:15,
                 from ../kernel/signal.c:14:
../kernel/signal.c: In function 'print_fatal_signal':
../kernel/signal.c:1250:33: error: 'struct pt_regs' has no member named 'ip'
  pr_info("code at %08lx: ", regs->ip);
                                 ^
../include/linux/printk.h:310:34: note: in definition of macro 'pr_info'
  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                  ^~~~~~~~~~~
In file included from ../arch/um/include/asm/uaccess.h:39:0,
                 from ../include/linux/uaccess.h:11,
                 from ../include/linux/sched/task.h:11,
                 from ../kernel/signal.c:20:
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:196:28: note: in definition of macro 'get_user'
  const void __user *__p = (ptr);    \
                            ^~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:93:66: note: in definition of macro 'access_ok'
 #define access_ok(addr, size) __access_ok((unsigned long)(addr),(size))
                                                                  ^~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:158:19: note: in definition of macro '__get_user'
  switch (sizeof(*(ptr))) {    \
                   ^~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:47: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                               ^~
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:51: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                                   ^
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:163:32: note: in definition of macro '__get_user'
   (x) = *(__force __typeof__(*(ptr)) *) &__x; \
                                ^~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:47: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                               ^~
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:51: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                                   ^
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:170:32: note: in definition of macro '__get_user'
   (x) = *(__force __typeof__(*(ptr)) *) &__x; \
                                ^~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:47: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                               ^~
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:51: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                                   ^
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:177:32: note: in definition of macro '__get_user'
   (x) = *(__force __typeof__(*(ptr)) *) &__x; \
                                ^~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:47: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                               ^~
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:209:51: note: in definition of macro '__get_user_fn'
 #define __get_user_fn(sz, u, k) __get_user_fn(sz, u, k)
                                                   ^
../include/asm-generic/uaccess.h:199:3: note: in expansion of macro '__get_user'
   __get_user((x), (__typeof__(*(ptr)) __user *)__p) :\
   ^~~~~~~~~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:184:32: note: in definition of macro '__get_user'
   (x) = *(__force __typeof__(*(ptr)) *) &__x; \
                                ^~~
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~
../kernel/signal.c:1256:45: error: 'struct pt_regs' has no member named 'ip'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                             ^
../include/asm-generic/uaccess.h:200:24: note: in definition of macro 'get_user'
   ((x) = (__typeof__(*(ptr)))0,-EFAULT);  \
                        ^~~
../include/asm-generic/uaccess.h:200:31: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   ((x) = (__typeof__(*(ptr)))0,-EFAULT);  \
                               ^
../kernel/signal.c:1256:8: note: in expansion of macro 'get_user'
    if (get_user(insn, (unsigned char *)(regs->ip + i)))
        ^~~~~~~~


-- 
~Randy
Reported-by: Randy Dunlap <rdunlap@infradead.org>

  reply	other threads:[~2020-03-27 15:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27  8:07 linux-next: Tree for Mar 27 Stephen Rothwell
2020-03-27 15:52 ` Randy Dunlap [this message]
2020-03-27 17:24   ` Al Viro
2020-03-31  2:10   ` linux-next: Tree for Mar 27 (kbuild) Randy Dunlap
2020-03-31  2:26     ` Masahiro Yamada
  -- strict thread matches above, loose matches on Subject: below --
2024-03-27  3:06 linux-next: Tree for Mar 27 Stephen Rothwell
2023-03-27  1:17 Stephen Rothwell
2019-03-27  3:50 Stephen Rothwell
2018-03-27  9:02 Stephen Rothwell
2017-03-27  5:29 Stephen Rothwell
2016-03-27 10:28 Stephen Rothwell
2015-03-27  8:26 Stephen Rothwell
2014-03-27  7:30 Stephen Rothwell
2013-03-27  5:12 Stephen Rothwell
2012-03-27  5:27 Stephen Rothwell

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=425b6d83-53da-15bb-8e7a-158f7c44ffad@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=richard.weinberger@gmail.com \
    --cc=sfr@canb.auug.org.au \
    --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 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).