From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2 02/11] unwind/x86: Add HAVE_USER_UNWIND
Date: Sat, 14 Sep 2024 22:07:51 +0800 [thread overview]
Message-ID: <202409142115.HyZ7W4HU-lkp@intel.com> (raw)
In-Reply-To: <82ef19a767cb75e76a985ecc0d47a39400b4fdf5.1726268190.git.jpoimboe@kernel.org>
Hi Josh,
kernel test robot noticed the following build warnings:
[auto build test WARNING on perf-tools-next/perf-tools-next]
[also build test WARNING on tip/perf/core perf-tools/perf-tools linus/master acme/perf/core v6.11-rc7 next-20240913]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Josh-Poimboeuf/unwind-Introduce-generic-user-space-unwinding-interface/20240914-070619
base: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
patch link: https://lore.kernel.org/r/82ef19a767cb75e76a985ecc0d47a39400b4fdf5.1726268190.git.jpoimboe%40kernel.org
patch subject: [PATCH v2 02/11] unwind/x86: Add HAVE_USER_UNWIND
config: x86_64-randconfig-121-20240914 (https://download.01.org/0day-ci/archive/20240914/202409142115.HyZ7W4HU-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409142115.HyZ7W4HU-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409142115.HyZ7W4HU-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> kernel/unwind/user.c:38:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long * @@
kernel/unwind/user.c:38:30: sparse: expected void const volatile [noderef] __user *ptr
kernel/unwind/user.c:38:30: sparse: got unsigned long *
kernel/unwind/user.c:41:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long * @@
kernel/unwind/user.c:41:30: sparse: expected void const volatile [noderef] __user *ptr
kernel/unwind/user.c:41:30: sparse: got unsigned long *
vim +38 kernel/unwind/user.c
c970b852d500d4 Josh Poimboeuf 2024-09-14 17
c970b852d500d4 Josh Poimboeuf 2024-09-14 18 int user_unwind_next(struct user_unwind_state *state)
c970b852d500d4 Josh Poimboeuf 2024-09-14 19 {
c970b852d500d4 Josh Poimboeuf 2024-09-14 20 struct user_unwind_frame _frame;
c970b852d500d4 Josh Poimboeuf 2024-09-14 21 struct user_unwind_frame *frame = &_frame;
c970b852d500d4 Josh Poimboeuf 2024-09-14 22 unsigned long cfa, fp, ra;
c970b852d500d4 Josh Poimboeuf 2024-09-14 23 int ret = -EINVAL;
c970b852d500d4 Josh Poimboeuf 2024-09-14 24
c970b852d500d4 Josh Poimboeuf 2024-09-14 25 if (state->done)
c970b852d500d4 Josh Poimboeuf 2024-09-14 26 return -EINVAL;
c970b852d500d4 Josh Poimboeuf 2024-09-14 27
c970b852d500d4 Josh Poimboeuf 2024-09-14 28 switch (state->type) {
c970b852d500d4 Josh Poimboeuf 2024-09-14 29 case USER_UNWIND_TYPE_FP:
c970b852d500d4 Josh Poimboeuf 2024-09-14 30 frame = &fp_frame;
c970b852d500d4 Josh Poimboeuf 2024-09-14 31 break;
c970b852d500d4 Josh Poimboeuf 2024-09-14 32 default:
c970b852d500d4 Josh Poimboeuf 2024-09-14 33 BUG();
c970b852d500d4 Josh Poimboeuf 2024-09-14 34 }
c970b852d500d4 Josh Poimboeuf 2024-09-14 35
c970b852d500d4 Josh Poimboeuf 2024-09-14 36 cfa = (frame->use_fp ? state->fp : state->sp) + frame->cfa_off;
c970b852d500d4 Josh Poimboeuf 2024-09-14 37
c970b852d500d4 Josh Poimboeuf 2024-09-14 @38 if (frame->ra_off && get_user(ra, (unsigned long *)(cfa + frame->ra_off)))
c970b852d500d4 Josh Poimboeuf 2024-09-14 39 goto the_end;
c970b852d500d4 Josh Poimboeuf 2024-09-14 40
c970b852d500d4 Josh Poimboeuf 2024-09-14 41 if (frame->fp_off && get_user(fp, (unsigned long *)(cfa + frame->fp_off)))
c970b852d500d4 Josh Poimboeuf 2024-09-14 42 goto the_end;
c970b852d500d4 Josh Poimboeuf 2024-09-14 43
c970b852d500d4 Josh Poimboeuf 2024-09-14 44 state->sp = cfa;
c970b852d500d4 Josh Poimboeuf 2024-09-14 45 state->ip = ra;
c970b852d500d4 Josh Poimboeuf 2024-09-14 46 if (frame->fp_off)
c970b852d500d4 Josh Poimboeuf 2024-09-14 47 state->fp = fp;
c970b852d500d4 Josh Poimboeuf 2024-09-14 48
c970b852d500d4 Josh Poimboeuf 2024-09-14 49 return 0;
c970b852d500d4 Josh Poimboeuf 2024-09-14 50
c970b852d500d4 Josh Poimboeuf 2024-09-14 51 the_end:
c970b852d500d4 Josh Poimboeuf 2024-09-14 52 state->done = true;
c970b852d500d4 Josh Poimboeuf 2024-09-14 53 return ret;
c970b852d500d4 Josh Poimboeuf 2024-09-14 54 }
c970b852d500d4 Josh Poimboeuf 2024-09-14 55
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-09-14 14:08 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-13 23:02 [PATCH v2 00/11] unwind, perf: sframe user space unwinding, deferred perf callchains Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 01/11] unwind: Introduce generic user space unwinding interface Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 02/11] unwind/x86: Add HAVE_USER_UNWIND Josh Poimboeuf
2024-09-14 14:07 ` kernel test robot [this message]
2024-09-15 12:18 ` Dan Carpenter
2024-09-16 11:46 ` Peter Zijlstra
2024-10-20 8:09 ` Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 03/11] unwind: Introduce SFrame user space unwinding Josh Poimboeuf
2024-09-14 7:40 ` kernel test robot
2024-09-14 8:12 ` kernel test robot
2024-09-14 11:23 ` Steven Rostedt
2024-10-01 18:20 ` Indu Bhagat
2024-10-01 18:36 ` Steven Rostedt
2024-10-02 8:18 ` Florian Weimer
2024-10-02 14:05 ` Steven Rostedt
2024-10-23 13:59 ` Jens Remus
2024-10-27 17:49 ` Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 04/11] unwind/x86/64: Add HAVE_USER_UNWIND_SFRAME Josh Poimboeuf
2024-09-14 16:25 ` kernel test robot
2024-09-15 12:20 ` Dan Carpenter
2024-09-13 23:02 ` [PATCH v2 05/11] perf/x86: Use user_unwind interface Josh Poimboeuf
2024-09-16 6:48 ` kernel test robot
2024-09-17 22:01 ` Namhyung Kim
2024-09-13 23:02 ` [PATCH v2 06/11] perf: Remove get_perf_callchain() 'init_nr' argument Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 07/11] perf: Remove get_perf_callchain() 'crosstask' argument Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 08/11] perf: Simplify get_perf_callchain() user logic Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 09/11] perf: Introduce deferred user callchains Josh Poimboeuf
2024-09-14 8:22 ` kernel test robot
2024-09-17 22:07 ` Namhyung Kim
2024-09-13 23:02 ` [PATCH v2 10/11] perf/x86: Add HAVE_PERF_CALLCHAIN_DEFERRED Josh Poimboeuf
2024-09-13 23:02 ` [PATCH v2 11/11] perf/x86: Enable SFrame unwinding for deferred user callchains Josh Poimboeuf
2024-09-14 12:12 ` [PATCH v2 00/11] unwind, perf: sframe user space unwinding, deferred perf callchains Steven Rostedt
2024-09-15 11:11 ` Josh Poimboeuf
2024-09-15 11:38 ` Steven Rostedt
2024-09-16 14:08 ` Peter Zijlstra
2024-09-16 15:39 ` Josh Poimboeuf
2024-09-16 18:15 ` Peter Zijlstra
2024-09-16 0:15 ` Mathieu Desnoyers
2024-09-16 0:33 ` Mathieu Desnoyers
2024-09-17 0:37 ` Mathieu Desnoyers
2024-09-16 22:46 ` Steven Rostedt
2024-09-17 21:58 ` Namhyung Kim
2024-09-18 5:14 ` Mathieu Desnoyers
2024-10-03 2:31 ` Steven Rostedt
2024-10-03 2:37 ` Josh Poimboeuf
2024-10-03 14:56 ` Steven Rostedt
2024-09-16 16:03 ` Steven Rostedt
2024-09-14 19:37 ` Namhyung Kim
2024-10-23 13:22 ` Jens Remus
2024-10-24 2:22 ` Steven Rostedt
2024-10-27 17:24 ` Josh Poimboeuf
-- strict thread matches above, loose matches on Subject: below --
2024-09-15 0:13 [PATCH v2 02/11] unwind/x86: Add HAVE_USER_UNWIND kernel test robot
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=202409142115.HyZ7W4HU-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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.