lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202506240437.yrXLeKyv-lkp@intel.com>
Date: Tue, 24 Jun 2025 04:43:01 +0800
From: kernel test robot <lkp@...el.com>
To: Junfeng Guo <junfeng.guo@...el.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-kernel@...r.kernel.org,
	Tony Nguyen <anthony.l.nguyen@...el.com>,
	Marcin Szycik <marcin.szycik@...ux.intel.com>,
	Qi Zhang <qi.z.zhang@...el.com>, Ahmed Zaki <ahmed.zaki@...el.com>
Subject: drivers/net/ethernet/intel/ice/ice_parser.c:1231:34: warning: stack
 frame size (1040) exceeds limit (1024) in 'ice_bst_tcam_table_get'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   86731a2a651e58953fc949573895f2fa6d456841
commit: 68add288189a5490868ccf8cbed273320568928d ice: add debugging functions for the parser sections
date:   10 months ago
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250624/202506240437.yrXLeKyv-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/20250624/202506240437.yrXLeKyv-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506240437.yrXLeKyv-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/net/ethernet/intel/ice/ice_parser.c:4:
   In file included from drivers/net/ethernet/intel/ice/ice_common.h:9:
   In file included from drivers/net/ethernet/intel/ice/ice.h:12:
   In file included from include/linux/netdevice.h:38:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:11:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:93:
   include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     548 |         val = __raw_readb(PCI_IOBASE + addr);
         |                           ~~~~~~~~~~ ^
   include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     561 |         val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu'
      37 | #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
         |                                                           ^
   include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
     102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
         |                                                      ^
   In file included from drivers/net/ethernet/intel/ice/ice_parser.c:4:
   In file included from drivers/net/ethernet/intel/ice/ice_common.h:9:
   In file included from drivers/net/ethernet/intel/ice/ice.h:12:
   In file included from include/linux/netdevice.h:38:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:11:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:93:
   include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     574 |         val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
      35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
         |                                                           ^
   include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   In file included from drivers/net/ethernet/intel/ice/ice_parser.c:4:
   In file included from drivers/net/ethernet/intel/ice/ice_common.h:9:
   In file included from drivers/net/ethernet/intel/ice/ice.h:12:
   In file included from include/linux/netdevice.h:38:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:11:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:93:
   include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     585 |         __raw_writeb(value, PCI_IOBASE + addr);
         |                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     595 |         __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     605 |         __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     693 |         readsb(PCI_IOBASE + addr, buffer, count);
         |                ~~~~~~~~~~ ^
   include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     701 |         readsw(PCI_IOBASE + addr, buffer, count);
         |                ~~~~~~~~~~ ^
   include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     709 |         readsl(PCI_IOBASE + addr, buffer, count);
         |                ~~~~~~~~~~ ^
   include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     718 |         writesb(PCI_IOBASE + addr, buffer, count);
         |                 ~~~~~~~~~~ ^
   include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     727 |         writesw(PCI_IOBASE + addr, buffer, count);
         |                 ~~~~~~~~~~ ^
   include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     736 |         writesl(PCI_IOBASE + addr, buffer, count);
         |                 ~~~~~~~~~~ ^
>> drivers/net/ethernet/intel/ice/ice_parser.c:1231:34: warning: stack frame size (1040) exceeds limit (1024) in 'ice_bst_tcam_table_get' [-Wframe-larger-than]
    1231 | static struct ice_bst_tcam_item *ice_bst_tcam_table_get(struct ice_hw *hw)
         |                                  ^
   13 warnings generated.


vim +/ice_bst_tcam_table_get +1231 drivers/net/ethernet/intel/ice/ice_parser.c

75b4a938a94778 Junfeng Guo 2024-07-25  1224  
75b4a938a94778 Junfeng Guo 2024-07-25  1225  /**
75b4a938a94778 Junfeng Guo 2024-07-25  1226   * ice_bst_tcam_table_get - create a boost tcam table
75b4a938a94778 Junfeng Guo 2024-07-25  1227   * @hw: pointer to the hardware structure
75b4a938a94778 Junfeng Guo 2024-07-25  1228   *
75b4a938a94778 Junfeng Guo 2024-07-25  1229   * Return: a pointer to the allocated Boost TCAM table.
75b4a938a94778 Junfeng Guo 2024-07-25  1230   */
75b4a938a94778 Junfeng Guo 2024-07-25 @1231  static struct ice_bst_tcam_item *ice_bst_tcam_table_get(struct ice_hw *hw)
75b4a938a94778 Junfeng Guo 2024-07-25  1232  {
75b4a938a94778 Junfeng Guo 2024-07-25  1233  	return ice_parser_create_table(hw, ICE_SID_RXPARSER_BOOST_TCAM,
75b4a938a94778 Junfeng Guo 2024-07-25  1234  				       sizeof(struct ice_bst_tcam_item),
75b4a938a94778 Junfeng Guo 2024-07-25  1235  				       ICE_BST_TCAM_TABLE_SIZE,
75b4a938a94778 Junfeng Guo 2024-07-25  1236  				       ice_bst_parse_item, true);
75b4a938a94778 Junfeng Guo 2024-07-25  1237  }
75b4a938a94778 Junfeng Guo 2024-07-25  1238  

:::::: The code at line 1231 was first introduced by commit
:::::: 75b4a938a947785cdda8908cb700c58e95f8ff69 ice: parse and init various DDP parser sections

:::::: TO: Junfeng Guo <junfeng.guo@...el.com>
:::::: CC: Tony Nguyen <anthony.l.nguyen@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ