All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [v2 PATCH 11/11] fsverity: improve performance by using multibuffer hashing
Date: Mon, 17 Feb 2025 02:28:16 +0800	[thread overview]
Message-ID: <202502170225.YjYWM8fo-lkp@intel.com> (raw)
In-Reply-To: <dd11ea3e7231fb46f68d902ba38a5b688e378bfe.1739674648.1.git.herbert@gondor.apana.org.au>

Hi Herbert,

kernel test robot noticed the following build warnings:

[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on next-20250214]
[cannot apply to herbert-crypto-2.6/master brauner-vfs/vfs.all linus/master v6.14-rc2]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Herbert-Xu/crypto-ahash-Only-save-callback-and-data-in-ahash_save_req/20250216-150941
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
patch link:    https://lore.kernel.org/r/dd11ea3e7231fb46f68d902ba38a5b688e378bfe.1739674648.1.git.herbert%40gondor.apana.org.au
patch subject: [v2 PATCH 11/11] fsverity: improve performance by using multibuffer hashing
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20250217/202502170225.YjYWM8fo-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250217/202502170225.YjYWM8fo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502170225.YjYWM8fo-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/verity/verify.c:295:1: warning: stack frame size (1312) exceeds limit (1024) in 'fsverity_verify_pending_blocks' [-Wframe-larger-than]
     295 | fsverity_verify_pending_blocks(struct fsverity_verification_context *ctx)
         | ^
   1 warning generated.


vim +/fsverity_verify_pending_blocks +295 fs/verity/verify.c

   293	
   294	static bool
 > 295	fsverity_verify_pending_blocks(struct fsverity_verification_context *ctx)
   296	{
   297		struct inode *inode = ctx->inode;
   298		struct fsverity_info *vi = ctx->vi;
   299		const struct merkle_tree_params *params = &vi->tree_params;
   300		SYNC_HASH_REQUESTS_ON_STACK(reqs, FS_VERITY_MAX_PENDING_DATA_BLOCKS, params->hash_alg->tfm);
   301		struct ahash_request *req;
   302		int i;
   303		int err;
   304	
   305		if (ctx->num_pending == 0)
   306			return true;
   307	
   308		req = sync_hash_requests(reqs, 0);
   309		for (i = 0; i < ctx->num_pending; i++) {
   310			struct ahash_request *reqi = sync_hash_requests(reqs, i);
   311	
   312			ahash_request_set_callback(reqi, CRYPTO_TFM_REQ_MAY_SLEEP,
   313						   NULL, NULL);
   314			ahash_request_set_virt(reqi, ctx->pending_blocks[i].data,
   315					       ctx->pending_blocks[i].real_hash,
   316					       params->block_size);
   317			if (i)
   318				ahash_request_chain(reqi, req);
   319			if (!params->hashstate)
   320				continue;
   321	
   322			err = crypto_ahash_import(reqi, params->hashstate);
   323			if (err) {
   324				fsverity_err(inode, "Error %d importing hash state", err);
   325				return false;
   326			}
   327		}
   328	
   329		if (params->hashstate)
   330			err = crypto_ahash_finup(req);
   331		else
   332			err = crypto_ahash_digest(req);
   333		if (err) {
   334			fsverity_err(inode, "Error %d computing block hashes", err);
   335			return false;
   336		}
   337	
   338		for (i = 0; i < ctx->num_pending; i++) {
   339			if (!verify_data_block(inode, vi, &ctx->pending_blocks[i],
   340					       ctx->max_ra_pages))
   341				return false;
   342		}
   343	
   344		fsverity_clear_pending_blocks(ctx);
   345		return true;
   346	}
   347	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-02-16 18:28 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-16  3:07 [v2 PATCH 00/11] Multibuffer hashing take two Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 01/11] crypto: ahash - Only save callback and data in ahash_save_req Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 02/11] crypto: x86/ghash - Use proper helpers to clone request Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 03/11] crypto: hash - Add request chaining API Herbert Xu
2025-03-26  9:00   ` Manorit Chawdhry
2025-03-26  9:17     ` [PATCH] crypto: sa2ul - Use proper helpers to setup request Herbert Xu
2025-03-26 10:00       ` Manorit Chawdhry
2025-03-26 10:05         ` [v2 PATCH] " Herbert Xu
2025-03-26 12:31           ` Manorit Chawdhry
2025-03-26 13:06             ` Herbert Xu
2025-03-26 13:07               ` Herbert Xu
2025-03-27  7:34               ` Manorit Chawdhry
2025-03-27  8:15                 ` Manorit Chawdhry
2025-03-27  8:23                   ` [PATCH] crypto: testmgr - Initialise full_sgl properly Herbert Xu
2025-03-27  8:40                     ` Manorit Chawdhry
2025-03-27  9:09                       ` Manorit Chawdhry
2025-03-31 10:13                         ` Herbert Xu
2025-04-11  5:34             ` [v2 PATCH] crypto: sa2ul - Use proper helpers to setup request Manorit Chawdhry
2025-04-11  5:37               ` Herbert Xu
2025-04-11  5:44                 ` Manorit Chawdhry
2025-04-11  5:46                   ` Herbert Xu
2025-04-11  6:14                     ` Manorit Chawdhry
2025-04-11  7:14                       ` [PATCH] crypto: ahash - Disable request chaining Herbert Xu
2025-04-11  7:58                         ` Manorit Chawdhry
2025-02-16  3:07 ` [v2 PATCH 04/11] crypto: tcrypt - Restore multibuffer ahash tests Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 05/11] crypto: ahash - Add virtual address support Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 06/11] crypto: ahash - Set default reqsize from ahash_alg Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 07/11] crypto: testmgr - Add multibuffer hash testing Herbert Xu
2025-02-16  9:18   ` kernel test robot
2025-02-16  3:07 ` [v2 PATCH 08/11] crypto: x86/sha2 - Restore multibuffer AVX2 support Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 09/11] crypto: hash - Add sync hash interface Herbert Xu
2025-02-16 10:51   ` kernel test robot
2025-02-16 11:42   ` kernel test robot
2025-02-16  3:07 ` [v2 PATCH 10/11] fsverity: Use sync hash instead of shash Herbert Xu
2025-02-16  3:07 ` [v2 PATCH 11/11] fsverity: improve performance by using multibuffer hashing Eric Biggers
2025-02-16  3:10 ` Herbert Xu
2025-02-16 18:28   ` kernel test robot [this message]
2025-02-16 23:11   ` kernel test robot
2025-02-16  3:38 ` [v2 PATCH 00/11] Multibuffer hashing take two Eric Biggers
2025-02-16 11:09   ` Herbert Xu
2025-02-16 19:51     ` Eric Biggers
2025-02-18 10:10       ` Herbert Xu
2025-02-18 17:48         ` Eric Biggers
2025-02-21  6:10           ` Herbert Xu

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=202502170225.YjYWM8fo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.