mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Masami Hiramatsu <mhiramat@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	"Steven Rostedt (VMware)" <rostedt@goodmis.org>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: /tmp/ccIWiggX.s:22: Error: invalid literal constant: pool needs to be closer
Date: Tue, 15 Mar 2022 18:25:58 +0900	[thread overview]
Message-ID: <20220315182558.1a056d8b3975932f6589b60f@kernel.org> (raw)
In-Reply-To: <202203150516.KTorSVVU-lkp@intel.com>

On Tue, 15 Mar 2022 06:00:48 +0800
kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   09688c0166e76ce2fb85e86b9d99be8b0084cdf9
> commit: 7e9bf33b812471ee57a03ec7f9b544ca437cc706 ARM: kprobes: Make a frame pointer on __kretprobe_trampoline
> date:   5 months ago
> config: arm-randconfig-r002-20220313 (https://download.01.org/0day-ci/archive/20220315/202203150516.KTorSVVU-lkp@intel.com/config)
> compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
> 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/torvalds/linux.git/commit/?id=7e9bf33b812471ee57a03ec7f9b544ca437cc706
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 7e9bf33b812471ee57a03ec7f9b544ca437cc706
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
> 
> 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 >>):
> 
>    arch/arm/probes/kprobes/core.c:236:16: warning: no previous prototype for 'kprobe_handler' [-Wmissing-prototypes]
>      236 | void __kprobes kprobe_handler(struct pt_regs *regs)
>          |                ^~~~~~~~~~~~~~
>    arch/arm/probes/kprobes/core.c: In function 'arch_init_kprobes':
>    arch/arm/probes/kprobes/core.c:465:12: warning: old-style function definition [-Wold-style-definition]
>      465 | int __init arch_init_kprobes()
>          |            ^~~~~~~~~~~~~~~~~
>    /tmp/ccIWiggX.s: Assembler messages:
> >> /tmp/ccIWiggX.s:22: Error: invalid literal constant: pool needs to be closer

OK, I finally reproduced it and could make a fix.
It seems that I have to avoid accessing a C function address from the inline assembler in that function.
This can be gcc-11's bug, but to avoid this issue, I decided not using inline asm in the function.

Thank you,

-- 
Masami Hiramatsu <mhiramat@kernel.org>

  reply	other threads:[~2022-03-15  9:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14 22:00 kernel test robot
2022-03-15  9:25 ` Masami Hiramatsu [this message]
2022-03-15  9:52   ` [PATCH] ARM: kprobes: Make __kretprobe_trampoline as a pure asm function Masami Hiramatsu
2022-03-24  6:21     ` Masami Hiramatsu
2022-03-24 13:23       ` Masami Hiramatsu
2022-03-24 13:34         ` Ard Biesheuvel
2022-03-24 13:35           ` Ard Biesheuvel
2022-03-24 15:18           ` Masami Hiramatsu

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=20220315182558.1a056d8b3975932f6589b60f@kernel.org \
    --to=mhiramat@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=ndesaulniers@google.com \
    --cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®