Content-Type: multipart/mixed; boundary="===============0025340550246436946==" MIME-Version: 1.0 From: Cyrill Gorcunov To: kbuild-all@lists.01.org Subject: Re: [PATCH v2] prctl: PR_SET_MM - unify copying of user's auvx Date: Wed, 29 Sep 2021 18:34:50 +0300 Message-ID: In-Reply-To: <202109292307.smDkJddi-lkp@intel.com> List-Id: --===============0025340550246436946== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Sep 29, 2021 at 11:20:23PM +0800, kernel test robot wrote: ... > sparse warnings: (new ones prefixed by >>) > >> kernel/sys.c:1997:58: sparse: sparse: incorrect type in argument 3 (di= fferent address spaces) @@ expected void const [noderef] __user *addr @= @ got unsigned long long [usertype] *[addressable] auxv @@ > kernel/sys.c:1997:58: sparse: expected void const [noderef] __user= *addr > kernel/sys.c:1997:58: sparse: got unsigned long long [usertype] *[= addressable] auxv > kernel/sys.c:1068:32: sparse: sparse: incorrect type in argument 1 (di= fferent address spaces) @@ expected struct task_struct *p1 @@ got s= truct task_struct [noderef] __rcu *real_parent @@ > kernel/sys.c:1068:32: sparse: expected struct task_struct *p1 > kernel/sys.c:1068:32: sparse: got struct task_struct [noderef] __r= cu *real_parent > kernel/sys.c: note: in included file (through include/linux/rcuwait.h,= include/linux/percpu-rwsem.h, include/linux/fs.h, ...): > include/linux/sched/signal.h:710:37: sparse: sparse: incorrect type in= argument 1 (different address spaces) @@ expected struct spinlock [use= rtype] *lock @@ got struct spinlock [noderef] __rcu * @@ > include/linux/sched/signal.h:710:37: sparse: expected struct spinl= ock [usertype] *lock > include/linux/sched/signal.h:710:37: sparse: got struct spinlock [= noderef] __rcu * > = > vim +1997 kernel/sys.c Thanks for report! I happen to miss Dima's reply in first place as well :( I'll take a look on this patch. The issie itself is implicit type conversio= n, shouldn't be a bug in general but need to address as well. Will do. --===============0025340550246436946==--