From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 3942/14131] kernel/trace/trace_stack.c:528:43: sparse: expected void *
Date: Mon, 01 Jun 2020 22:14:09 +0800 [thread overview]
Message-ID: <202006012202.DE0sMTrs%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3590 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass kernel pointers to ->proc_handler
config: i386-randconfig-s031-20200601 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
kernel/trace/trace_stack.c:528:43: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void * @@ got void [noderef] <asn:1> *buffer @@
>> kernel/trace/trace_stack.c:528:43: sparse: expected void *
>> kernel/trace/trace_stack.c:528:43: sparse: got void [noderef] <asn:1> *buffer
vim +528 kernel/trace/trace_stack.c
bbd1d27d863d5c Steven Rostedt (VMware 2017-07-11 516)
f38f1d2aa5a352 Steven Rostedt 2008-12-16 517 int
f38f1d2aa5a352 Steven Rostedt 2008-12-16 518 stack_trace_sysctl(struct ctl_table *table, int write,
8d65af789f3e2c Alexey Dobriyan 2009-09-23 519 void __user *buffer, size_t *lenp,
f38f1d2aa5a352 Steven Rostedt 2008-12-16 520 loff_t *ppos)
f38f1d2aa5a352 Steven Rostedt 2008-12-16 521 {
3d9a8072915366 Thomas Gleixner 2019-04-25 522 int was_enabled;
f38f1d2aa5a352 Steven Rostedt 2008-12-16 523 int ret;
f38f1d2aa5a352 Steven Rostedt 2008-12-16 524
f38f1d2aa5a352 Steven Rostedt 2008-12-16 525 mutex_lock(&stack_sysctl_mutex);
3d9a8072915366 Thomas Gleixner 2019-04-25 526 was_enabled = !!stack_tracer_enabled;
f38f1d2aa5a352 Steven Rostedt 2008-12-16 527
8d65af789f3e2c Alexey Dobriyan 2009-09-23 @528 ret = proc_dointvec(table, write, buffer, lenp, ppos);
f38f1d2aa5a352 Steven Rostedt 2008-12-16 529
3d9a8072915366 Thomas Gleixner 2019-04-25 530 if (ret || !write || (was_enabled == !!stack_tracer_enabled))
f38f1d2aa5a352 Steven Rostedt 2008-12-16 531 goto out;
f38f1d2aa5a352 Steven Rostedt 2008-12-16 532
f38f1d2aa5a352 Steven Rostedt 2008-12-16 533 if (stack_tracer_enabled)
f38f1d2aa5a352 Steven Rostedt 2008-12-16 534 register_ftrace_function(&trace_ops);
f38f1d2aa5a352 Steven Rostedt 2008-12-16 535 else
f38f1d2aa5a352 Steven Rostedt 2008-12-16 536 unregister_ftrace_function(&trace_ops);
f38f1d2aa5a352 Steven Rostedt 2008-12-16 537 out:
f38f1d2aa5a352 Steven Rostedt 2008-12-16 538 mutex_unlock(&stack_sysctl_mutex);
f38f1d2aa5a352 Steven Rostedt 2008-12-16 539 return ret;
f38f1d2aa5a352 Steven Rostedt 2008-12-16 540 }
f38f1d2aa5a352 Steven Rostedt 2008-12-16 541
:::::: The code at line 528 was first introduced by commit
:::::: 8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38 sysctl: remove "struct file *" argument of ->proc_handler
:::::: TO: Alexey Dobriyan <adobriyan@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33502 bytes --]
reply other threads:[~2020-06-01 14:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202006012202.DE0sMTrs%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 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.