Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1342959pxb; Wed, 6 Apr 2022 15:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHRJWxP3DpzNmsEXFmS4lKLEBiAkDx+cWZCzS/PsqIKZaPvRY+PBodindI93VqRWQWp1zJ X-Received: by 2002:a05:6a00:23d2:b0:4fa:f262:719 with SMTP id g18-20020a056a0023d200b004faf2620719mr11117262pfc.4.1649284952547; Wed, 06 Apr 2022 15:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649284952; cv=none; d=google.com; s=arc-20160816; b=aYONl5Xg3VIhSE3JgsDZonQIn3NhApsEaDNjtAW0mZCDyEAaWKpdEt2UFVlFgktInr /n27qn00Tgp7RKwYaQ4ZF7+Hnhae6EmPmredfVSqck7M6JUxuvleXl6f57YFER4/Q6oY bg65cbApJYQ187WBulqJhQY6aBUocRMbFP9BfsAMcLhC1D0gLyn4XjQDJz05Umc36FY4 04IA3VT34pArWnOIhAABv10fPVovZKtb1IUhYONqXcXyJXKBf3eNTJkp9g7YeK/fGZGs /TFU0gH05yGrN5/CZnCa9bDsTw9GDXoPFeRIgCdfeusqQMnA7++1ML3k0w08KqESjkvd gi0A== 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=yrSxdHe5ncivIh+ZWK6f+Uq47dlOD2ZlZCtK4dtGaSU=; b=TOg2PIedzsRaxi/QDdcCsESvA15RuUHKXRweuSmddNz/GfzF7Vp+Ly35cArjVZDfxX Ao/BE2Yw9EnIJyV8GfLc16JXAwhLB5cbpdy5WuYLMz03Yyhe2wZ4YRctkYFZt3yrHieL rvTbLXqRIsepLC1JXtc0YzrrAOYAdD8q4s3dMM4OE0zbctJuRoEFv+fuQH2SeDxq83HB 0TRkvbdAYXtSMfnFsivk2HkNhkjMuT5ISPnu5BZxjkZEgX5SiYgBhn30uotUxpPmH4Lv J87kVfVxTlR2QDeKUhB4jQtrUyLGcxMYPOp2RlAX0Ps/8FKMtolx6rebgWLSoTBSi5AI EGeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gpMyBX/J"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a17090a8c0400b001bf6913eb4bsi71364pjo.155.2022.04.06.15.41.37; Wed, 06 Apr 2022 15:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gpMyBX/J"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235708AbiDFVR5 (ORCPT + 99 others); Wed, 6 Apr 2022 17:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236276AbiDFVRs (ORCPT ); Wed, 6 Apr 2022 17:17:48 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4532C2EE8 for ; Wed, 6 Apr 2022 13:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649275537; x=1680811537; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FctlQkIAqE+cllDctVQPEUPq8utwGbBmotBsI91dU78=; b=gpMyBX/JXB3wBFL+9W+KGMgPawh0aoQNSbf/EvWgxxozZjV7CPiF+eNN 5m4ueSwRd3TeumIyiU8z6y3uWKCX25njz6DaR7XOGBjDAuNX7fJmLwbBJ WlqAjZaWDxk+D+j04SdMQye8EfofejGfnqEEY/AhnQsgYg5TrLkHQDZTq Wl8yGI6iSVdxI8o+7GhczSyCnhcckmTYIUbz9QTMBfD3h5UJ9lNRduG7J vyc1T2jyVEIQD50jt/U9jRxzzLWaUasxukkvOtusHeOSJum25kvxSCC9y yf30iCq92eS1aP2Uvn0hBqj/dNDbKDbFs1cj7Ee7lgZ9TdyKlomIBLyzS g==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="258733797" X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="258733797" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 13:05:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="524622729" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 06 Apr 2022 13:05:35 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncBuJ-0004iB-1v; Wed, 06 Apr 2022 20:05:35 +0000 Date: Thu, 7 Apr 2022 04:05:18 +0800 From: kernel test robot To: Ard Biesheuvel , linux-crypto@vger.kernel.org Cc: kbuild-all@lists.01.org, herbert@gondor.apana.org.au, keescook@chromium.org, Ard Biesheuvel Subject: Re: [PATCH 7/8] crypto: ahash - avoid DMA alignment for request structures unless needed Message-ID: <202204070345.cL3xZHZm-lkp@intel.com> References: <20220406142715.2270256-8-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406142715.2270256-8-ardb@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Ard, I love your patch! Perhaps something to improve: [auto build test WARNING on herbert-cryptodev-2.6/master] [also build test WARNING on herbert-crypto-2.6/master sunxi/sunxi/for-next v5.18-rc1 next-20220406] [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/intel-lab-lkp/linux/commits/Ard-Biesheuvel/crypto-avoid-DMA-padding-for-request-structures/20220407-010855 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220407/202204070345.cL3xZHZm-lkp@intel.com/config) compiler: m68k-linux-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://github.com/intel-lab-lkp/linux/commit/072f0a01b9f98cd545d8179b1591b9f37be5cb2a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Ard-Biesheuvel/crypto-avoid-DMA-padding-for-request-structures/20220407-010855 git checkout 072f0a01b9f98cd545d8179b1591b9f37be5cb2a # 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=m68k SHELL=/bin/bash drivers/crypto/inside-secure/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/vdso/const.h:5, from include/linux/const.h:4, from include/linux/list.h:9, from include/linux/preempt.h:11, from arch/m68k/include/asm/irqflags.h:6, from include/linux/irqflags.h:16, from arch/m68k/include/asm/atomic.h:6, from include/linux/atomic.h:7, from include/linux/crypto.h:15, from include/crypto/aes.h:10, from drivers/crypto/inside-secure/safexcel_hash.c:8: In function 'ahash_request_ctx', inlined from 'safexcel_ahash_exit_inv' at drivers/crypto/inside-secure/safexcel_hash.c:627:36: >> include/crypto/hash.h:421:26: warning: '*(struct ahash_request *)(&__req_desc[0]).base.tfm' is used uninitialized [-Wuninitialized] 421 | crypto_tfm_alg_req_alignmask(req->base.tfm) + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/const.h:32:50: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL' 8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | ^~~~~~~~~~~~~~ include/linux/align.h:11:45: note: in expansion of macro 'ALIGN' 11 | #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) | ^~~~~ include/crypto/hash.h:420:16: note: in expansion of macro 'PTR_ALIGN' 420 | return PTR_ALIGN(&req->__ctx, | ^~~~~~~~~ In file included from drivers/crypto/inside-secure/safexcel_hash.c:21: drivers/crypto/inside-secure/safexcel_hash.c: In function 'safexcel_ahash_exit_inv': drivers/crypto/inside-secure/safexcel.h:69:14: note: '__req_desc' declared here 69 | char __##name##_desc[size] CRYPTO_MINALIGN_ATTR; \ | ^~ drivers/crypto/inside-secure/safexcel_hash.c:626:9: note: in expansion of macro 'EIP197_REQUEST_ON_STACK' 626 | EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~ vim +421 include/crypto/hash.h 417 418 static inline void *ahash_request_ctx(struct ahash_request *req) 419 { 420 return PTR_ALIGN(&req->__ctx, > 421 crypto_tfm_alg_req_alignmask(req->base.tfm) + 1); 422 } 423 -- 0-DAY CI Kernel Test Service https://01.org/lkp