mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: kbuild-all@01.org, akpm@linux-foundation.org,
	krinkin.m.u@gmail.com, ying.huang@linux.intel.com,
	davej@codemonkey.org.uk, x86@kernel.org,
	linux-kernel@vger.kernel.org,
	Andrey Ryabinin <aryabinin@virtuozzo.com>
Subject: Re: [PATCH -mm] ubsan, x86: disable alignemnt checks for arch/x86/*
Date: Tue, 2 Feb 2016 02:24:32 +0800	[thread overview]
Message-ID: <201602020247.oh2m5dve%fengguang.wu@intel.com> (raw)
In-Reply-To: <1454346499-31868-1-git-send-email-aryabinin@virtuozzo.com>

[-- Attachment #1: Type: text/plain, Size: 6563 bytes --]

Hi Andrey,

[auto build test WARNING on next-20160201]
[cannot apply to kbuild/for-next kbuild/rc-fixes v4.5-rc2 v4.5-rc1 v4.4-rc8 v4.5-rc2]
[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/Andrey-Ryabinin/ubsan-x86-disable-alignemnt-checks-for-arch-x86/20160202-010948
config: i386-randconfig-c0-02020138 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/char/tpm/tpm2-cmd.c: In function 'tpm2_unseal_trusted':
>> drivers/char/tpm/tpm2-cmd.c:600:3: warning: 'blob_handle' may be used uninitialized in this function [-Wmaybe-uninitialized]
      dev_warn(chip->pdev, "0x%08x was not flushed, out of memory\n",
      ^
   drivers/char/tpm/tpm2-cmd.c:668:6: note: 'blob_handle' was declared here
     u32 blob_handle;
         ^
--
   drivers/gpio/gpiolib-of.c: In function 'of_gpiochip_add':
>> drivers/gpio/gpiolib-of.c:221:7: warning: 'dflags' may be used uninitialized in this function [-Wmaybe-uninitialized]
      if (gpiod_hog(desc, name, lflags, dflags))
          ^
   drivers/gpio/gpiolib-of.c:211:19: note: 'dflags' was declared here
     enum gpiod_flags dflags;
                      ^
>> drivers/gpio/gpiolib-of.c:221:7: warning: 'lflags' may be used uninitialized in this function [-Wmaybe-uninitialized]
      if (gpiod_hog(desc, name, lflags, dflags))
          ^
   drivers/gpio/gpiolib-of.c:210:25: note: 'lflags' was declared here
     enum gpio_lookup_flags lflags;
                            ^
--
   drivers/media/dvb-frontends/drx39xyj/drxj.c: In function 'drx39xxj_read_status':
>> drivers/media/dvb-frontends/drx39xyj/drxj.c:10737:33: warning: 'mer' may be used uninitialized in this function [-Wmaybe-uninitialized]
        p->cnr.stat[0].svalue = mer * 100;
                                    ^
   drivers/media/dvb-frontends/drx39xyj/drxj.c:10670:6: note: 'mer' was declared here
     u16 mer, strength = 0;
         ^
>> drivers/media/dvb-frontends/drx39xyj/drxj.c:10728:38: warning: 'ber' may be used uninitialized in this function [-Wmaybe-uninitialized]
        p->post_bit_error.stat[0].uvalue += ber;
                                         ^
   drivers/media/dvb-frontends/drx39xyj/drxj.c:10669:6: note: 'ber' was declared here
     u32 ber, cnt, err, pkt;
         ^
>> drivers/media/dvb-frontends/drx39xyj/drxj.c:10705:35: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
        p->block_error.stat[0].uvalue += err;
                                      ^
   drivers/media/dvb-frontends/drx39xyj/drxj.c:10669:16: note: 'err' was declared here
     u32 ber, cnt, err, pkt;
                   ^
--
   drivers/media/tuners/tda18218.c: In function 'tda18218_attach':
>> drivers/media/tuners/tda18218.c:324:10: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (ret || val != def_regs[R00_ID]) {
             ^
--
   In file included from drivers/spi/spidev.c:28:0:
   drivers/spi/spidev.c: In function 'spidev_ioctl':
>> include/linux/slab.h:562:9: warning: 'n_ioc' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return __kmalloc(n * size, flags);
            ^
   drivers/spi/spidev.c:362:12: note: 'n_ioc' was declared here
     unsigned  n_ioc;
               ^
--
   fs/btrfs/send.c: In function '__iterate_backrefs':
>> fs/btrfs/send.c:1228:5: warning: 'i_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (offset + bctx->data_offset + bctx->extent_len > i_size)
        ^
--
   ipc/shm.c: In function 'SyS_shmdt':
>> ipc/shm.c:1311:59: warning: 'file' may be used uninitialized in this function [-Wmaybe-uninitialized]
          ((vma->vm_start - addr)/PAGE_SIZE == vma->vm_pgoff) &&
                                                              ^
   ipc/shm.c:1234:15: note: 'file' was declared here
     struct file *file;
                  ^
--
   mm/vmscan.c: In function 'shrink_zone':
>> mm/vmscan.c:2410:18: warning: 'lru_pages' may be used uninitialized in this function [-Wmaybe-uninitialized]
       unsigned long lru_pages;
                     ^
--
   net/core/dev.c: In function 'validate_xmit_skb_list':
>> net/core/dev.c:2984:15: warning: 'tail' may be used uninitialized in this function [-Wmaybe-uninitialized]
       tail->next = skb;
                  ^

vim +/blob_handle +600 drivers/char/tpm/tpm2-cmd.c

954650ef Jarkko Sakkinen 2015-05-30  584  out:
954650ef Jarkko Sakkinen 2015-05-30  585  	tpm_buf_destroy(&buf);
954650ef Jarkko Sakkinen 2015-05-30  586  
954650ef Jarkko Sakkinen 2015-05-30  587  	if (rc > 0)
954650ef Jarkko Sakkinen 2015-05-30  588  		rc = -EPERM;
954650ef Jarkko Sakkinen 2015-05-30  589  
954650ef Jarkko Sakkinen 2015-05-30  590  	return rc;
954650ef Jarkko Sakkinen 2015-05-30  591  }
954650ef Jarkko Sakkinen 2015-05-30  592  
954650ef Jarkko Sakkinen 2015-05-30  593  static void tpm2_flush_context(struct tpm_chip *chip, u32 handle)
954650ef Jarkko Sakkinen 2015-05-30  594  {
954650ef Jarkko Sakkinen 2015-05-30  595  	struct tpm_buf buf;
954650ef Jarkko Sakkinen 2015-05-30  596  	int rc;
954650ef Jarkko Sakkinen 2015-05-30  597  
954650ef Jarkko Sakkinen 2015-05-30  598  	rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_FLUSH_CONTEXT);
954650ef Jarkko Sakkinen 2015-05-30  599  	if (rc) {
954650ef Jarkko Sakkinen 2015-05-30 @600  		dev_warn(chip->pdev, "0x%08x was not flushed, out of memory\n",
954650ef Jarkko Sakkinen 2015-05-30  601  			 handle);
954650ef Jarkko Sakkinen 2015-05-30  602  		return;
954650ef Jarkko Sakkinen 2015-05-30  603  	}
954650ef Jarkko Sakkinen 2015-05-30  604  
954650ef Jarkko Sakkinen 2015-05-30  605  	tpm_buf_append_u32(&buf, handle);
954650ef Jarkko Sakkinen 2015-05-30  606  
954650ef Jarkko Sakkinen 2015-05-30  607  	rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, "flushing context");
954650ef Jarkko Sakkinen 2015-05-30  608  	if (rc)

:::::: The code at line 600 was first introduced by commit
:::::: 954650efb79f99d5c817c121bb0a7c6c53362048 tpm: seal/unseal for TPM 2.0

:::::: TO: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
:::::: CC: Peter Huewe <peterhuewe@gmx.de>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22900 bytes --]

  reply	other threads:[~2016-02-01 18:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 17:08 Andrey Ryabinin
2016-02-01 18:24 ` kbuild test robot [this message]
2016-02-01 19:09 ` kbuild test robot
2016-02-01 20:16 ` kbuild test robot
2016-02-01 21:09 ` Mike Krinkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201602020247.oh2m5dve%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=aryabinin@virtuozzo.com \
    --cc=davej@codemonkey.org.uk \
    --cc=kbuild-all@01.org \
    --cc=krinkin.m.u@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@kernel.org \
    --cc=ying.huang@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®