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, 2 Feb 2016 11:56:46 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Bean Huo <jackyard88@...il.com>
Cc:	kbuild-all@...org, richard@....at, dedekind1@...il.com,
	adrian.hunter@...el.com, computersforpeace@...il.com,
	boris.brezillon@...e-electrons.com, beanhuo@...ron.com,
	linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
	zszubbocsev@...ron.com, peterpandong@...ron.com
Subject: Re: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile

Hi Bean,

[auto build test WARNING on v4.5-rc2]
[also build test WARNING on next-20160201]
[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/Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC-paired-page-power-loss-issue/20160202-104450
config: x86_64-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from drivers/mtd/ubi/bakvol.c:35:
   drivers/mtd/ubi/bakvol.c: In function 'ubi_duplicate_data_to_bakvol':
   include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^
   include/linux/printk.h:252:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^
   drivers/mtd/ubi/ubi.h:59:32: note: in expansion of macro 'pr_err'
    #define ubi_err(ubi, fmt, ...) pr_err(UBI_NAME_STR "%d error: %s: " fmt "\n", \
                                   ^
>> drivers/mtd/ubi/bakvol.c:651:3: note: in expansion of macro 'ubi_err'
      ubi_err(ubi, "%d: Write data len overflow [%d]\n",
      ^

vim +/ubi_err +651 drivers/mtd/ubi/bakvol.c

3b3521fb Bean Huo 2016-02-02  635   * @buf: data buffer, points to data that should be programmed
3b3521fb Bean Huo 2016-02-02  636   */
3b3521fb Bean Huo 2016-02-02  637  int ubi_duplicate_data_to_bakvol(struct ubi_device *ubi, loff_t addr,
3b3521fb Bean Huo 2016-02-02  638  				size_t len, size_t *retlen, const void *buf)
3b3521fb Bean Huo 2016-02-02  639  {
3b3521fb Bean Huo 2016-02-02  640  	struct ubi_bkblk_tbl *backup_info = ubi->bkblk_tbl;
3b3521fb Bean Huo 2016-02-02  641  	struct mtd_info *mtd = ubi->mtd;
3b3521fb Bean Huo 2016-02-02  642  	int err = 0, nobak = 0;
3b3521fb Bean Huo 2016-02-02  643  	int pnum;
3b3521fb Bean Huo 2016-02-02  644  	u8 oppe_plane;
3b3521fb Bean Huo 2016-02-02  645  	loff_t lpage_addr; /* Lower page byte address */
3b3521fb Bean Huo 2016-02-02  646  	struct ubi_bkblk_info *pbk;
3b3521fb Bean Huo 2016-02-02  647  	int page_num;
3b3521fb Bean Huo 2016-02-02  648  	struct bakvol_oob_info *oob_bak = NULL, *oob_src = NULL;
3b3521fb Bean Huo 2016-02-02  649  
3b3521fb Bean Huo 2016-02-02  650  	if (len > ubi->min_io_size) {
3b3521fb Bean Huo 2016-02-02 @651  		ubi_err(ubi, "%d: Write data len overflow [%d]\n",
3b3521fb Bean Huo 2016-02-02  652  							__LINE__, len);
3b3521fb Bean Huo 2016-02-02  653  		return -EROFS;
3b3521fb Bean Huo 2016-02-02  654  	}
3b3521fb Bean Huo 2016-02-02  655  
3b3521fb Bean Huo 2016-02-02  656  	if (!buf) {
3b3521fb Bean Huo 2016-02-02  657  		ubi_err(ubi, "%d: Write buf is NULL!\n", __LINE__);
3b3521fb Bean Huo 2016-02-02  658  		return -EROFS;
3b3521fb Bean Huo 2016-02-02  659  

:::::: The code at line 651 was first introduced by commit
:::::: 3b3521fb6dda26424b36620d13e0195a5b4930b0 driver:mtd:ubi:add new bakvol module in ubi layer

:::::: TO: Bean Huo <beanhuo@...ron.com>
:::::: CC: 0day robot <fengguang.wu@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ