From: kbuild test robot <lkp@intel.com>
To: Matteo Croce <mcroce@redhat.com>
Cc: kbuild-all@01.org, LKML <linux-kernel@vger.kernel.org>,
linux-fsdevel@vger.kernel.org, Kees Cook <keescook@chromium.org>,
Andrew Morton <akpm@linux-foundation.org>,
Matthew Wilcox <willy@infradead.org>
Subject: Re: [PATCH v4] proc/sysctl: add shared variables for range check
Date: Tue, 30 Apr 2019 07:44:47 +0800 [thread overview]
Message-ID: <201904300723.BVoOtJQ7%lkp@intel.com> (raw)
In-Reply-To: <20190429222613.13345-1-mcroce@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 3633 bytes --]
Hi Matteo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net/master]
[also build test WARNING on v5.1-rc7]
[cannot apply to next-20190429]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Matteo-Croce/proc-sysctl-add-shared-variables-for-range-check/20190430-065026
config: x86_64-randconfig-x000-201917 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
net/netfilter/ipvs/ip_vs_ctl.c: In function 'proc_do_defense_mode':
>> net/netfilter/ipvs/ip_vs_ctl.c:1664:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
struct netns_ipvs *ipvs = table->extra2;
^~~~~
vim +/const +1664 net/netfilter/ipvs/ip_vs_ctl.c
749c42b6 net/netfilter/ipvs/ip_vs_ctl.c Julian Anastasov 2012-04-24 1659
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1660 static int
fe2c6338 net/netfilter/ipvs/ip_vs_ctl.c Joe Perches 2013-06-11 1661 proc_do_defense_mode(struct ctl_table *table, int write,
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1662 void __user *buffer, size_t *lenp, loff_t *ppos)
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1663 {
717e917d net/netfilter/ipvs/ip_vs_ctl.c Eric W. Biederman 2015-09-21 @1664 struct netns_ipvs *ipvs = table->extra2;
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1665 int *valp = table->data;
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1666 int val = *valp;
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1667 int rc;
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1668
8d65af78 net/netfilter/ipvs/ip_vs_ctl.c Alexey Dobriyan 2009-09-23 1669 rc = proc_dointvec(table, write, buffer, lenp, ppos);
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1670 if (write && (*valp != val)) {
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1671 if ((*valp < 0) || (*valp > 3)) {
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1672 /* Restore the correct value */
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1673 *valp = val;
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1674 } else {
717e917d net/netfilter/ipvs/ip_vs_ctl.c Eric W. Biederman 2015-09-21 1675 update_defense_level(ipvs);
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1676 }
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1677 }
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1678 return rc;
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1679 }
^1da177e net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 1680
:::::: The code at line 1664 was first introduced by commit
:::::: 717e917ddfa8db628041490eb44bce5815e947fd ipvs: Don't use current in proc_do_defense_mode
:::::: TO: Eric W. Biederman <ebiederm@xmission.com>
:::::: CC: Simon Horman <horms@verge.net.au>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29090 bytes --]
next prev parent reply other threads:[~2019-04-29 23:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-29 22:26 Matteo Croce
2019-04-29 23:44 ` kbuild test robot [this message]
2019-04-29 23:59 ` kbuild test robot
2019-04-30 10:46 ` Matteo Croce
2019-04-30 15:42 ` Kees Cook
2019-04-30 16:08 ` Matthew Wilcox
2019-04-30 16:29 ` Matteo Croce
2019-04-30 18:08 ` Kees Cook
2019-04-30 13:17 ` kbuild 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=201904300723.BVoOtJQ7%lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@01.org \
--cc=keescook@chromium.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcroce@redhat.com \
--cc=willy@infradead.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®