lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201904300723.BVoOtJQ7%lkp@intel.com>
Date:   Tue, 30 Apr 2019 07:44:47 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Matteo Croce <mcroce@...hat.com>
Cc:     kbuild-all@...org, LKML <linux-kernel@...r.kernel.org>,
        linux-fsdevel@...r.kernel.org, Kees Cook <keescook@...omium.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Matthew Wilcox <willy@...radead.org>
Subject: Re: [PATCH v4] proc/sysctl: add shared variables for range check

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@...el.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@...ssion.com>
:::::: CC: Simon Horman <horms@...ge.net.au>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (29090 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ