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, linux-kernel@vger.kernel.org,
	Andrey Ryabinin <aryabinin@virtuozzo.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Sasha Levin <sasha.levin@oracle.com>,
	Randy Dunlap <rdunlap@infradead.org>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Jonathan Corbet <corbet@lwn.net>, Michal Marek <mmarek@suse.cz>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	Yury Gribov <y.gribov@samsung.com>,
	Dmitry Vyukov <dvyukov@google.com>,
	Konstantin Khlebnikov <koct9i@gmail.com>,
	Kostya Serebryany <kcc@google.com>,
	x86@kernel.org, linux-doc@vger.kernel.org,
	linux-kbuild@vger.kernel.org
Subject: Re: [PATCH v3 2/2] UBSAN: run-time undefined behavior sanity checker
Date: Tue, 1 Dec 2015 01:23:29 +0800	[thread overview]
Message-ID: <201512010119.fW408Kb6%fengguang.wu@intel.com> (raw)
In-Reply-To: <1448899183-8677-3-git-send-email-aryabinin@virtuozzo.com>

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

Hi Andrey,

[auto build test ERROR on: v4.4-rc3]
[cannot apply to: tip/x86/core kbuild/for-next next-20151127]

url:    https://github.com/0day-ci/linux/commits/Andrey-Ryabinin/kernel-printk-specify-alignment-for-struct-printk_log/20151201-000229
config: i386-allyesconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   net/mac80211/debugfs.c: In function 'hwflags_read':
>> net/mac80211/debugfs.c:150:240: error: call to '__compiletime_assert_150' declared with attribute error: BUILD_BUG_ON failed: hw_flag_names[NUM_IEEE80211_HW_FLAGS] != (void *)0x1

vim +/__compiletime_assert_150 +150 net/mac80211/debugfs.c

279daf64 Ben Greear               2011-03-23  134  static ssize_t hwflags_read(struct file *file, char __user *user_buf,
279daf64 Ben Greear               2011-03-23  135  			    size_t count, loff_t *ppos)
279daf64 Ben Greear               2011-03-23  136  {
279daf64 Ben Greear               2011-03-23  137  	struct ieee80211_local *local = file->private_data;
30686bf7 Johannes Berg            2015-06-02  138  	size_t bufsz = 30 * NUM_IEEE80211_HW_FLAGS;
30686bf7 Johannes Berg            2015-06-02  139  	char *buf = kzalloc(bufsz, GFP_KERNEL);
30686bf7 Johannes Berg            2015-06-02  140  	char *pos = buf, *end = buf + bufsz - 1;
279daf64 Ben Greear               2011-03-23  141  	ssize_t rv;
30686bf7 Johannes Berg            2015-06-02  142  	int i;
279daf64 Ben Greear               2011-03-23  143  
d15b8459 Joe Perches              2011-08-29  144  	if (!buf)
30686bf7 Johannes Berg            2015-06-02  145  		return -ENOMEM;
30686bf7 Johannes Berg            2015-06-02  146  
30686bf7 Johannes Berg            2015-06-02  147  	/* fail compilation if somebody adds or removes
30686bf7 Johannes Berg            2015-06-02  148  	 * a flag without updating the name array above
30686bf7 Johannes Berg            2015-06-02  149  	 */
30686bf7 Johannes Berg            2015-06-02 @150  	BUILD_BUG_ON(hw_flag_names[NUM_IEEE80211_HW_FLAGS] != (void *)0x1);
30686bf7 Johannes Berg            2015-06-02  151  
30686bf7 Johannes Berg            2015-06-02  152  	for (i = 0; i < NUM_IEEE80211_HW_FLAGS; i++) {
30686bf7 Johannes Berg            2015-06-02  153  		if (test_bit(i, local->hw.flags))
4633dfc3 Mohammed Shafi Shajakhan 2015-10-08  154  			pos += scnprintf(pos, end - pos, "%s\n",
30686bf7 Johannes Berg            2015-06-02  155  					 hw_flag_names[i]);
30686bf7 Johannes Berg            2015-06-02  156  	}
279daf64 Ben Greear               2011-03-23  157  
279daf64 Ben Greear               2011-03-23  158  	rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));

:::::: The code at line 150 was first introduced by commit
:::::: 30686bf7f5b3c30831761e188a6e3cb33580fa48 mac80211: convert HW flags to unsigned long bitmap

:::::: TO: Johannes Berg <johannes.berg@intel.com>
:::::: CC: Johannes Berg <johannes.berg@intel.com>

---
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: 51986 bytes --]

  parent reply	other threads:[~2015-11-30 17:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30 15:59 [PATCH v3 0/2] " Andrey Ryabinin
2015-11-30 15:59 ` [PATCH v3 1/2] kernel: printk: specify alignment for struct printk_log Andrey Ryabinin
2015-11-30 15:59 ` [PATCH v3 2/2] UBSAN: run-time undefined behavior sanity checker Andrey Ryabinin
2015-11-30 16:47   ` kbuild test robot
2015-11-30 17:23   ` kbuild test robot [this message]
2015-11-30 18:50   ` Sasha Levin

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=201512010119.fW408Kb6%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=aryabinin@virtuozzo.com \
    --cc=corbet@lwn.net \
    --cc=dvyukov@google.com \
    --cc=hpa@zytor.com \
    --cc=kbuild-all@01.org \
    --cc=kcc@google.com \
    --cc=koct9i@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mingo@redhat.com \
    --cc=mmarek@suse.cz \
    --cc=peterz@infradead.org \
    --cc=rdunlap@infradead.org \
    --cc=sasha.levin@oracle.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=y.gribov@samsung.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®