From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A082FC433F5 for ; Wed, 1 Dec 2021 16:42:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EABA26B007E; Wed, 1 Dec 2021 11:42:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E5A026B0080; Wed, 1 Dec 2021 11:42:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D21206B0081; Wed, 1 Dec 2021 11:42:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0247.hostedemail.com [216.40.44.247]) by kanga.kvack.org (Postfix) with ESMTP id C43856B007E for ; Wed, 1 Dec 2021 11:42:08 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 8BCA218136840 for ; Wed, 1 Dec 2021 16:41:58 +0000 (UTC) X-FDA: 78869792316.09.1B6B0DD Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by imf11.hostedemail.com (Postfix) with ESMTP id 38B1FF0000AF for ; Wed, 1 Dec 2021 16:41:58 +0000 (UTC) Received: by mail-pf1-f181.google.com with SMTP id i12so25078969pfd.6 for ; Wed, 01 Dec 2021 08:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wR5jjKLsTieAQ8C8yQzasyYIBAjy3LjmXgCG+jqKvYU=; b=IsTe367/uQD2PQQWH11ENZcGTkH8hxo+1dW1nykj9YEXJF16z60OuV0Iiyhu6OCK9O I52CUJe6xpby/mULup6QtXJnbaiZEE0/K6D0gbzzzkIVvHscfB6tzD5m9e4CnRvfmNC+ DAuLDz4khGG83C0l0kvKTJfKE7RjbrcEopRlM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wR5jjKLsTieAQ8C8yQzasyYIBAjy3LjmXgCG+jqKvYU=; b=BZ6uNKie5lt1pIW8ReycFaKJrti2BUs+UoDfakjHf+nRr4XGSltThsvxQ1WhpJyYkB o+GVDsf1cT1eO0R4orOaX1wJqswIyHsGxdhaElXoINibQAzT299PNXtEcV6hOiPA9g3G IbAUNwF5fjaSbAs8pKPYFdJULTQYcwKXl4W6ChrfGIm/YtYu+/IZvu5/oQzFliXvQc5d MF5GOGjmmOA9+SI61kSp3AryFABJgkWEJGwg6oiwqpAe7zpW5Eg74qz4yh5onZ0fvrm8 odEZHOn0TjH2sVCWWvdpH2yYr/xNPuaZWGRl5MWshG/7PlcNLDttZBJYp7Wpv6qiVMfo q/Vw== X-Gm-Message-State: AOAM530FWsJy4835WNPTeQeb61WRsMZYbkpkUh8aiou1TcEREbEgjzLs dnpeJECaT855v1UYxj22YrIWzQ== X-Google-Smtp-Source: ABdhPJyYljkuWVQRv6cQ55aDNMtTmqmFU6iEfKXxnsDFSRMl1U5XoCenoXqnHJppbFS6DJrK1RScXw== X-Received: by 2002:a63:34f:: with SMTP id 76mr5325125pgd.609.1638376916947; Wed, 01 Dec 2021 08:41:56 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 15sm180735pgv.65.2021.12.01.08.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 08:41:56 -0800 (PST) Date: Wed, 1 Dec 2021 08:41:55 -0800 From: Kees Cook To: Kalle Valo Cc: kernel test robot , kbuild-all@lists.01.org, Linux Memory Management List , linux-wireless@vger.kernel.org Subject: Re: [linux-next:master 3615/4301] include/linux/compiler_types.h:335:45: error: call to '__compiletime_assert_314' declared with attribute error: BUILD_BUG_ON failed: sizeof(txpd->tx_dest_addr) != ETH_ALEN Message-ID: <202112010840.0AD4D41162@keescook> References: <202111302102.apaePz2J-lkp@intel.com> <87pmqgsrcq.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pmqgsrcq.fsf@codeaurora.org> X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 38B1FF0000AF Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b="IsTe367/"; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf11.hostedemail.com: domain of keescook@chromium.org designates 209.85.210.181 as permitted sender) smtp.mailfrom=keescook@chromium.org X-Stat-Signature: emb37b91z5b9ktzk79g71ay31thxg1my X-HE-Tag: 1638376918-179889 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Dec 01, 2021 at 09:43:01AM +0200, Kalle Valo wrote: > + linux-wireless > > kernel test robot writes: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 34f255a1e91ab44ff8926cf8294ff9144e62e861 > > commit: 5fd32ae0433a7af37eac27ace3aabae8cb7c2fc4 [3615/4301] libertas: Use struct_group() for memcpy() region > > config: arm-randconfig-r011-20211129 (https://download.01.org/0day-ci/archive/20211130/202111302102.apaePz2J-lkp@intel.com/config) > > compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5fd32ae0433a7af37eac27ace3aabae8cb7c2fc4 > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout 5fd32ae0433a7af37eac27ace3aabae8cb7c2fc4 > > # save the config file to linux build tree > > mkdir build_dir > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/ > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > > In file included from : > > drivers/net/wireless/marvell/libertas/tx.c: In function 'lbs_hard_start_xmit': > >>> include/linux/compiler_types.h:335:45: error: call to '__compiletime_assert_314' declared with attribute error: BUILD_BUG_ON failed: sizeof(txpd->tx_dest_addr) != ETH_ALEN > > 335 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > > | ^ > > include/linux/compiler_types.h:316:25: note: in definition of macro '__compiletime_assert' > > 316 | prefix ## suffix(); \ > > | ^~~~~~ > > include/linux/compiler_types.h:335:9: note: in expansion of macro '_compiletime_assert' > > 335 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > > | ^~~~~~~~~~~~~~~~~~~ > > include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' > > 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) > > | ^~~~~~~~~~~~~~~~~~ > > include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' > > 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > > | ^~~~~~~~~~~~~~~~ > > drivers/net/wireless/marvell/libertas/tx.c:116:9: note: in expansion of macro 'BUILD_BUG_ON' > > 116 | BUILD_BUG_ON(sizeof(txpd->tx_dest_addr) != ETH_ALEN); > > | ^~~~~~~~~~~~ > > Kees, can you take a look at this build error? You added the > BUILD_BUG_ON(), right? I will investigate! Given this doesn't happen on allmodconfig but a randconfig trips it, this might be finding a legit issue, but I'll report back more details. Thanks for the heads-up! -- Kees Cook