From: kbuild test robot <lkp@intel.com>
To: Wang Nan <wangnan0@huawei.com>
Cc: kbuild-all@01.org, acme@kernel.org, ast@kernel.org,
linux-kernel@vger.kernel.org, pi3orama@163.com,
lizefan@huawei.com, Wang Nan <wangnan0@huawei.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [net-next PATCH] bpf: Output error message to logbuf when loading
Date: Mon, 26 Oct 2015 14:50:05 +0800 [thread overview]
Message-ID: <201510261411.AMbxkedL%fengguang.wu@intel.com> (raw)
In-Reply-To: <1445841394-142865-1-git-send-email-wangnan0@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1745 bytes --]
Hi Wang,
[auto build test WARNING on net-next/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Wang-Nan/bpf-Output-error-message-to-logbuf-when-loading/20151026-143920
config: x86_64-randconfig-x019-201543 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
kernel/bpf/syscall.c: In function 'bpf_prog_load_note':
>> kernel/bpf/syscall.c:600:2: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
copy_to_user(log_ubuf, log_buf, log_size);
^
vim +/copy_to_user +600 kernel/bpf/syscall.c
584 va_list args;
585
586 log_ubuf = (char __user *) (unsigned long) attr->log_buf;
587 log_level = attr->log_level;
588 log_size = sizeof(log_buf);
589 if (attr->log_size < log_size)
590 log_size = attr->log_size;
591
592 if (log_level == 0 || !log_size || !log_ubuf)
593 return;
594
595 va_start(args, fmt);
596 log_len = vscnprintf(log_buf, log_size, fmt, args);
597 va_end(args);
598
599 /* Don't need to care the copying result too much */
> 600 copy_to_user(log_ubuf, log_buf, log_size);
601 }
602
603 /* last field in 'union bpf_attr' used by this command */
604 #define BPF_PROG_LOAD_LAST_FIELD kern_version
605
606 static int bpf_prog_load(union bpf_attr *attr)
607 {
608 enum bpf_prog_type type = attr->prog_type;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 25729 bytes --]
next prev parent reply other threads:[~2015-10-26 6:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 6:36 [net-next PATCH] bpf: Output error message to logbuf when loading Wang Nan
2015-10-26 6:48 ` Wangnan (F)
2015-10-26 6:50 ` kbuild test robot [this message]
2015-10-26 7:13 ` [net-next PATCHv2] bpf: Output error message to logbuf when loading failure Wang Nan
2015-10-27 3:26 ` Alexei Starovoitov
2015-10-27 3:42 ` Wangnan (F)
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=201510261411.AMbxkedL%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=acme@redhat.com \
--cc=ast@kernel.org \
--cc=davem@davemloft.net \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=pi3orama@163.com \
--cc=wangnan0@huawei.com \
/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).