[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201511060602.SLYE3vUB%fengguang.wu@intel.com>
Date: Fri, 6 Nov 2015 06:13:50 +0800
From: kbuild test robot <lkp@...el.com>
To: Sami Tolvanen <samitolvanen@...gle.com>
Cc: kbuild-all@...org, Mikulas Patocka <mpatocka@...hat.com>,
Mandeep Baines <msb@...omium.org>,
Will Drewry <wad@...omium.org>,
Alasdair Kergon <agk@...hat.com>,
Mike Snitzer <snitzer@...hat.com>, dm-devel@...hat.com,
linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>,
Mark Salyzyn <salyzyn@...gle.com>,
Sami Tolvanen <samitolvanen@...gle.com>
Subject: Re: [PATCH 4/4] dm verity: ignore zero blocks
Hi Sami,
[auto build test WARNING on: dm/for-next]
[also build test WARNING on: v4.3 next-20151105]
url: https://github.com/0day-ci/linux/commits/Sami-Tolvanen/dm-verity-clean-up-duplicate-hashing-code/20151105-124458
base: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
config: s390-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=s390
All warnings (new ones prefixed by >>):
drivers/md/dm-verity.c: In function 'verity_alloc_zero_digest':
>> drivers/md/dm-verity.c:1226:1: warning: 'verity_alloc_zero_digest' uses dynamic stack allocation
}
^
drivers/md/dm-verity.c: In function 'verity_fec_decode_rsb':
drivers/md/dm-verity.c:846:1: warning: 'verity_fec_decode_rsb' uses dynamic stack allocation
}
^
vim +/verity_alloc_zero_digest +1226 drivers/md/dm-verity.c
1210
1211 v->zero_digest = kmalloc(v->digest_size, GFP_KERNEL);
1212
1213 if (!v->zero_digest)
1214 return -ENOMEM;
1215
1216 zero_data = kzalloc(1 << v->data_dev_block_bits, GFP_KERNEL);
1217
1218 if (!zero_data)
1219 return -ENOMEM; /* verity_dtr will free zero_digest */
1220
1221 r = verity_hash(v, (struct shash_desc *)desc, zero_data,
1222 1 << v->data_dev_block_bits, v->zero_digest);
1223
1224 kfree(zero_data);
1225 return r;
> 1226 }
1227
1228 static int verity_parse_opt_args(struct dm_arg_set *as, struct dm_verity *v,
1229 const char *opt_string)
1230 {
1231 int r;
1232 unsigned long long num_ll;
1233 unsigned char num_c;
1234 char dummy;
---
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" (38647 bytes)
Powered by blists - more mailing lists