Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5488202pxb; Wed, 26 Jan 2022 13:13:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgiDlFzpgMyoGjdYrYw8h5a/dDF18WfXdNlLa2WPS5QXoHTer7Vb2BgYf0jbwtcDt9hlh2 X-Received: by 2002:a17:902:da90:: with SMTP id j16mr463233plx.101.1643231593074; Wed, 26 Jan 2022 13:13:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643231593; cv=none; d=google.com; s=arc-20160816; b=1B4c7rSbAI5BeWnofpnVJZsbeO4X4A7vGVdJS0MARZULPvj9vmTfu4uPbcPTflSYa8 vfp9SXQ4LbgflxvOBFHsLQDNymxlCJGtb4rGNR7rxXM/7HgBZJs+bux3y6h8ra9YWMpX JRqf5qu+GiiAbsL8HHwn0bkHoY39fAsZVwBnxVpF9gSKttGBXRfw9GW/wZQMYUgw8EpK D5J4RdKyn9vg0GUbazLJHyg6cW95HS4yQHj6DhOVtWYCvGR344f+HG8fYFgRGIkDyvr5 BDmdpCWfhK3aDFHdqR9uQk4BUDT0SPjg2O2/UpNFtYQuBwPnraqsiQNGG8ZHLLS7XoYG poCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gI7RO7rLV7MKHneHvE8QI70pzGm/VlaqaTZxcvMzP7Y=; b=dmG1brAGpaQB+cuwClvmM7Z21oRdvYX0btWh4s6jznZJh7LG/NG1YAyKX8Nt1z04B6 yStu6PkDOBaWMX3IWkc4HFi+LA+W7KO/OQlzz5a+c+Pn1mIuu7zNCCsOW7lN+0A54iH+ kUQ4XSaitUNm0dFRY9/ALRMpahpmB6/5TeA7WCB2SMg96/ViqH0f1B/VyFiXGXOD3iOp 4jQHO6l/JTfAnxlv3p9aPeys+BJMXpLkmgpE69iSLjjgWn0tCJFRUgNTWF7zbYBcZ7/J NTYwO1mHUVgJInu1B2KxZd5UQr/Oq4LKDQSY7BJ3yqBqcqByaFjU7af9hCczLxDdXEg/ xSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mqQfLqkd; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si273680pls.581.2022.01.26.13.12.51; Wed, 26 Jan 2022 13:13:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mqQfLqkd; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241142AbiAZMP4 (ORCPT + 99 others); Wed, 26 Jan 2022 07:15:56 -0500 Received: from mga12.intel.com ([192.55.52.136]:11081 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233973AbiAZMPz (ORCPT ); Wed, 26 Jan 2022 07:15:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643199355; x=1674735355; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=26ItzPYPQ3Duqca6mkSSB2OFe6OwHmU+4+XxL8bpWiQ=; b=mqQfLqkdUtAtlE1spdlZrkfPpZdedYcoDH9FUIb5aAVd5gwWcKkBhAaB 4R9Nnv1Lx08phdLusb7yy+xttdt8kccgLu848RQ8x8UQNLpoFDDOvPBFZ bg34X83a236Mokv9Sv16HI8n9yrHJTuMgJX2UjTG3QCVHhxtRbQowPauO H/20x0UzOFNIcOInzCQ7OOwr/PG5EXicvxuTZoLQjN33XvCgPzsNhCgdJ PmOStMvsZ7FZDV5dyaYz19Dhd2ScXCAh5ysAHwHWwtjpwaBTuz/szLS2/ FK4Spmr9o3wYp3+bQ1gmtwaOvm0AttkYhCmcWoTLT0TKcXE0ANw5R78fN g==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="226513794" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="226513794" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 04:15:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="628288074" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 26 Jan 2022 04:15:53 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nChDM-000LAe-IV; Wed, 26 Jan 2022 12:15:52 +0000 Date: Wed, 26 Jan 2022 20:15:04 +0800 From: kernel test robot To: Stephan =?iso-8859-1?Q?M=FCller?= , herbert@gondor.apana.org.au Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-crypto@vger.kernel.org, simo@redhat.com, Nicolai Stange Subject: Re: [PATCH 1/7] crypto: DRBG - remove internal reseeding operation Message-ID: <202201262050.xFgnR1Kx-lkp@intel.com> References: <2450379.h6RI2rZIcs@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2450379.h6RI2rZIcs@positron.chronox.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi "Stephan, Thank you for the patch! Yet something to improve: [auto build test ERROR on herbert-cryptodev-2.6/master] [also build test ERROR on herbert-crypto-2.6/master linus/master v5.17-rc1 next-20220125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Stephan-M-ller/Common-entropy-source-and-DRNG-management/20220126-150911 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: hexagon-buildonly-randconfig-r003-20220124 (https://download.01.org/0day-ci/archive/20220126/202201262050.xFgnR1Kx-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2a1b7aa016c0f4b5598806205bdfbab1ea2d92c4) 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://github.com/0day-ci/linux/commit/14ec08bbd20e04299353eb31a9d43d4ac9af2b22 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Stephan-M-ller/Common-entropy-source-and-DRNG-management/20220126-150911 git checkout 14ec08bbd20e04299353eb31a9d43d4ac9af2b22 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): crypto/drbg.c:204:30: warning: unused function 'drbg_sec_strength' [-Wunused-function] static inline unsigned short drbg_sec_strength(drbg_flag_t flags) ^ >> crypto/drbg.c:1742:2: error: call to __compiletime_assert_223 declared with 'error' attribute: BUILD_BUG_ON failed: ARRAY_SIZE(drbg_cores) != ARRAY_SIZE(drbg_algs) BUILD_BUG_ON(ARRAY_SIZE(drbg_cores) != ARRAY_SIZE(drbg_algs)); ^ include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ include/linux/compiler_types.h:335:2: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ include/linux/compiler_types.h:323:2: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:316:4: note: expanded from macro '__compiletime_assert' prefix ## suffix(); \ ^ :63:1: note: expanded from here __compiletime_assert_223 ^ 1 warning and 1 error generated. vim +/error +1742 crypto/drbg.c 1732 1733 static int __init drbg_init(void) 1734 { 1735 unsigned int i; 1736 int ret; 1737 1738 ret = drbg_healthcheck_sanity(); 1739 if (ret) 1740 return ret; 1741 > 1742 BUILD_BUG_ON(ARRAY_SIZE(drbg_cores) != ARRAY_SIZE(drbg_algs)); 1743 1744 /* 1745 * As the order of placing them into the drbg_algs array matters 1746 * (the later DRBGs receive a higher cra_priority) we register the 1747 * prediction resistance DRBGs first as the should not be too 1748 * interesting. 1749 */ 1750 for (i = 0; i < ARRAY_SIZE(drbg_cores); i++) 1751 drbg_fill_array(&drbg_algs[i], &drbg_cores[i]); 1752 return crypto_register_rngs(drbg_algs, ARRAY_SIZE(drbg_cores)); 1753 } 1754 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org