mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes
@ 2020-10-13  5:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-10-13  5:05 UTC (permalink / raw)
  To: Keerthy; +Cc: kbuild-all, linux-kernel, Herbert Xu, Tero Kristo

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

Hi Keerthy,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   865c50e1d279671728c2936cb7680eb89355eeea
commit: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD algorithm support
date:   3 months ago
config: arc-randconfig-r005-20201013 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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/torvalds/linux.git/commit/?id=d2c8ac187fc922e73930a1b2f6a211e27f595d01
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout d2c8ac187fc922e73930a1b2f6a211e27f595d01
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:404,
                    from include/linux/kernel.h:15,
                    from include/linux/clk.h:13,
                    from drivers/crypto/sa2ul.c:11:
   drivers/crypto/sa2ul.c: In function 'sa_sha_init':
   drivers/crypto/sa2ul.c:1486:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    1486 |   crypto_ahash_digestsize(tfm), (u64)rctx);
         |                                 ^
   include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
     125 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
     157 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:115:2: note: in expansion of macro 'dynamic_dev_dbg'
     115 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   drivers/crypto/sa2ul.c:1485:2: note: in expansion of macro 'dev_dbg'
    1485 |  dev_dbg(sa_k3_dev, "init: digest size: %d, rctx=%llx\n",
         |  ^~~~~~~
   drivers/crypto/sa2ul.c: In function 'sa_prepare_iopads':
>> drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     432 | }
         | ^

vim +432 drivers/crypto/sa2ul.c

   407	
   408	static void sa_prepare_iopads(struct algo_data *data, const u8 *key,
   409				      u16 key_sz, __be32 *ipad, __be32 *opad)
   410	{
   411		SHASH_DESC_ON_STACK(shash, data->ctx->shash);
   412		int block_size = crypto_shash_blocksize(data->ctx->shash);
   413		int digest_size = crypto_shash_digestsize(data->ctx->shash);
   414		u8 k_ipad[SHA1_BLOCK_SIZE];
   415		u8 k_opad[SHA1_BLOCK_SIZE];
   416	
   417		shash->tfm = data->ctx->shash;
   418	
   419		prepare_kiopad(k_ipad, k_opad, key, key_sz);
   420	
   421		memzero_explicit(ipad, block_size);
   422		memzero_explicit(opad, block_size);
   423	
   424		crypto_shash_init(shash);
   425		crypto_shash_update(shash, k_ipad, block_size);
   426		sa_export_shash(shash, block_size, digest_size, ipad);
   427	
   428		crypto_shash_init(shash);
   429		crypto_shash_update(shash, k_opad, block_size);
   430	
   431		sa_export_shash(shash, block_size, digest_size, opad);
 > 432	}
   433	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38146 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes
@ 2020-08-16  6:56 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-16  6:56 UTC (permalink / raw)
  To: Keerthy; +Cc: kbuild-all, linux-kernel, Herbert Xu, Tero Kristo

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD algorithm support
date:   3 weeks ago
config: arc-randconfig-r023-20200816 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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
        git checkout d2c8ac187fc922e73930a1b2f6a211e27f595d01
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dmaengine.h:8,
                    from drivers/crypto/sa2ul.c:12:
   drivers/crypto/sa2ul.c: In function 'sa_sha_init':
   drivers/crypto/sa2ul.c:1486:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    1486 |   crypto_ahash_digestsize(tfm), (u64)rctx);
         |                                 ^
   include/linux/dev_printk.h:123:47: note: in definition of macro 'dev_dbg'
     123 |   dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
         |                                               ^~~~~~~~~~~
   drivers/crypto/sa2ul.c: In function 'sa_prepare_iopads':
>> drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     432 | }
         | ^

vim +432 drivers/crypto/sa2ul.c

   407	
   408	static void sa_prepare_iopads(struct algo_data *data, const u8 *key,
   409				      u16 key_sz, __be32 *ipad, __be32 *opad)
   410	{
   411		SHASH_DESC_ON_STACK(shash, data->ctx->shash);
   412		int block_size = crypto_shash_blocksize(data->ctx->shash);
   413		int digest_size = crypto_shash_digestsize(data->ctx->shash);
   414		u8 k_ipad[SHA1_BLOCK_SIZE];
   415		u8 k_opad[SHA1_BLOCK_SIZE];
   416	
   417		shash->tfm = data->ctx->shash;
   418	
   419		prepare_kiopad(k_ipad, k_opad, key, key_sz);
   420	
   421		memzero_explicit(ipad, block_size);
   422		memzero_explicit(opad, block_size);
   423	
   424		crypto_shash_init(shash);
   425		crypto_shash_update(shash, k_ipad, block_size);
   426		sa_export_shash(shash, block_size, digest_size, ipad);
   427	
   428		crypto_shash_init(shash);
   429		crypto_shash_update(shash, k_opad, block_size);
   430	
   431		sa_export_shash(shash, block_size, digest_size, opad);
 > 432	}
   433	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37753 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-13  5:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13  5:05 drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-08-16  6:56 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome