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: <201607300357.6E7medqa%fengguang.wu@intel.com>
Date:	Sat, 30 Jul 2016 03:33:27 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Theodore Ts'o <tytso@....edu>
Cc:	kbuild-all@...org,
	Ext4 Developers List <linux-ext4@...r.kernel.org>,
	agayev@...il.com, Theodore Ts'o <tytso@....edu>
Subject: Re: [PATCH] ext4: add ability to control the pseudo-random seed used
 by ext4

Hi,

[auto build test WARNING on ext4/dev]
[also build test WARNING on v4.7 next-20160729]
[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/Theodore-Ts-o/ext4-add-ability-to-control-the-pseudo-random-seed-used-by-ext4/20160730-001338
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
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=m68k 

All warnings (new ones prefixed by >>):

   fs/ext4/ialloc.c: In function 'find_group_orlov':
>> fs/ext4/ialloc.c:490:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'ext4_group_t' [-Wformat=]
       pr_err("ext4 random: %lu\n", grp);
       ^

vim +490 fs/ext4/ialloc.c

   474		do_div(avefreec, ngroups);
   475		ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter);
   476	
   477		if (S_ISDIR(mode) &&
   478		    ((parent == d_inode(sb->s_root)) ||
   479		     (ext4_test_inode_flag(parent, EXT4_INODE_TOPDIR)))) {
   480			int best_ndir = inodes_per_group;
   481			int ret = -1;
   482	
   483			if (qstr) {
   484				hinfo.hash_version = DX_HASH_HALF_MD4;
   485				hinfo.seed = sbi->s_hash_seed;
   486				ext4fs_dirhash(qstr->name, qstr->len, &hinfo);
   487				grp = hinfo.hash;
   488			} else {
   489				grp = prandom_u32_state(&sbi->s_rnd_state);
 > 490				pr_err("ext4 random: %lu\n", grp);
   491			}
   492			parent_group = (unsigned)grp % ngroups;
   493			for (i = 0; i < ngroups; i++) {
   494				g = (parent_group + i) % ngroups;
   495				get_orlov_stats(sb, g, flex_size, &stats);
   496				if (!stats.free_inodes)
   497					continue;
   498				if (stats.used_dirs >= best_ndir)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ