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]
Date:	Tue, 9 Feb 2016 04:29:00 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Jacob Keller <jacob.e.keller@...el.com>
Cc:	kbuild-all@...org, netdev@...r.kernel.org, mooray3@...pl,
	davem@...emloft.net, Jacob Keller <jacob.e.keller@...el.com>
Subject: Re: [PATCH 2/4] ethtool: ensure channel counts are within bounds
 during SCHANNELS

Hi Jacob,

[auto build test ERROR on net/master]
[also build test ERROR on v4.5-rc3 next-20160208]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Jacob-Keller/ethtool-correctly-ensure-GS-CHANNELS-doesn-t-conflict-with-GS-RXFH/20160209-041131
config: xtensa-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   net/core/ethtool.c: In function 'ethtool_set_channels':
>> net/core/ethtool.c:1289:6: error: void value not ignored as it ought to be
     ret = dev->ethtool_ops->get_channels(dev, &max);
         ^
   net/core/ethtool.c:1303:6: error: implicit declaration of function 'ethtool_get_max_rxfh_channel' [-Werror=implicit-function-declaration]
         ethtool_get_max_rxfh_channel(dev, &max_rx) &&
         ^
   net/core/ethtool.c:1306:6: error: expected ')' before 'return'
         return -EINVAL;
         ^
   net/core/ethtool.c:1309:1: error: expected expression before '}' token
    }
    ^
   net/core/ethtool.c:1309:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
   cc1: some warnings being treated as errors

vim +1289 net/core/ethtool.c

  1283		if (!dev->ethtool_ops->set_channels || !dev->ethtool_ops->get_channels)
  1284			return -EOPNOTSUPP;
  1285	
  1286		if (copy_from_user(&channels, useraddr, sizeof(channels)))
  1287			return -EFAULT;
  1288	
> 1289		ret = dev->ethtool_ops->get_channels(dev, &max);
  1290		if (ret)
  1291			return ret;
  1292	

---
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/octet-stream" (44070 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ