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: <201601290613.41ZRzTLI%fengguang.wu@intel.com>
Date:	Fri, 29 Jan 2016 06:11:55 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	kbuild-all@...org, akpm@...ux-foundation.org,
	linux-kernel@...r.kernel.org, davidlohr.bueso@...com,
	rafael.j.wysocki@...el.com, lenb@...nel.org,
	Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH] Optimize int_sqrt for small values for faster idle

Hi Andi,

[auto build test WARNING on v4.5-rc1]
[also build test WARNING on next-20160128]
[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/Andi-Kleen/Optimize-int_sqrt-for-small-values-for-faster-idle/20160129-054629
config: avr32-atngw100_defconfig (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=avr32 

All warnings (new ones prefixed by >>):

   lib/int_sqrt.c: In function 'int_sqrt':
>> lib/int_sqrt.c:25: warning: 'm' is used uninitialized in this function

vim +/m +25 lib/int_sqrt.c

     9	#include <linux/export.h>
    10	
    11	/**
    12	 * int_sqrt - rough approximation to sqrt
    13	 * @x: integer of which to calculate the sqrt
    14	 *
    15	 * A very rough approximation to the sqrt() function.
    16	 */
    17	unsigned long int_sqrt(unsigned long x)
    18	{
    19		unsigned long b, m, y = 0;
    20	
    21		if (x <= 1)
    22			return x;
    23	
    24		if (x <= 0xffff) {
  > 25			if (m <= 0xff)
    26				m = 1UL << (8 - 2);
    27			else
    28				m = 1UL << (16 - 2);
    29		} else if (x <= 0xffffffff)
    30			m = 1UL << (32 - 2);
    31		else
    32			m = 1UL << (BITS_PER_LONG - 2);
    33		while (m != 0) {

---
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" (12120 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ