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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202410250410.ZAcgUmQY-lkp@intel.com>
Date: Fri, 25 Oct 2024 04:24:19 +0800
From: kernel test robot <lkp@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Russell King <rmk+kernel@...linux.org.uk>,
	Ard Biesheuvel <ardb@...nel.org>,
	Abbott Liu <liuwenliang@...wei.com>,
	Florian Fainelli <f.fainelli@...il.com>
Subject: drivers/base/test/property-entry-test.c:214:1: warning: the frame
 size of 1032 bytes is larger than 1024 bytes

Hi Linus,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c2ee9f594da826bea183ed14f2cc029c719bf4da
commit: 421015713b306e47af95d4d61cdfbd96d462e4cb ARM: 9017/2: Enable KASan for ARM
date:   4 years ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20241025/202410250410.ZAcgUmQY-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241025/202410250410.ZAcgUmQY-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/202410250410.ZAcgUmQY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/base/test/property-entry-test.c: In function 'pe_test_uint_arrays':
>> drivers/base/test/property-entry-test.c:214:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     214 | }
         | ^
--
   drivers/interconnect/qcom/bcm-voter.c: In function 'qcom_icc_bcm_voter_commit':
>> drivers/interconnect/qcom/bcm-voter.c:339:1: warning: the frame size of 1128 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     339 | }
         | ^


vim +214 drivers/base/test/property-entry-test.c

c032ace71c29d5 Dmitry Torokhov 2019-12-04  100  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  101  static void pe_test_uint_arrays(struct kunit *test)
c032ace71c29d5 Dmitry Torokhov 2019-12-04  102  {
c032ace71c29d5 Dmitry Torokhov 2019-12-04  103  	static const u8 a_u8[16] = { 8, 9 };
c032ace71c29d5 Dmitry Torokhov 2019-12-04  104  	static const u16 a_u16[16] = { 16, 17 };
c032ace71c29d5 Dmitry Torokhov 2019-12-04  105  	static const u32 a_u32[16] = { 32, 33 };
c032ace71c29d5 Dmitry Torokhov 2019-12-04  106  	static const u64 a_u64[16] = { 64, 65 };
c032ace71c29d5 Dmitry Torokhov 2019-12-04  107  	static const struct property_entry entries[] = {
c032ace71c29d5 Dmitry Torokhov 2019-12-04  108  		PROPERTY_ENTRY_U8_ARRAY("prop-u8", a_u8),
c032ace71c29d5 Dmitry Torokhov 2019-12-04  109  		PROPERTY_ENTRY_U16_ARRAY("prop-u16", a_u16),
c032ace71c29d5 Dmitry Torokhov 2019-12-04  110  		PROPERTY_ENTRY_U32_ARRAY("prop-u32", a_u32),
c032ace71c29d5 Dmitry Torokhov 2019-12-04  111  		PROPERTY_ENTRY_U64_ARRAY("prop-u64", a_u64),
c032ace71c29d5 Dmitry Torokhov 2019-12-04  112  		{ }
c032ace71c29d5 Dmitry Torokhov 2019-12-04  113  	};
c032ace71c29d5 Dmitry Torokhov 2019-12-04  114  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  115  	struct fwnode_handle *node;
c032ace71c29d5 Dmitry Torokhov 2019-12-04  116  	u8 val_u8, array_u8[32];
c032ace71c29d5 Dmitry Torokhov 2019-12-04  117  	u16 val_u16, array_u16[32];
c032ace71c29d5 Dmitry Torokhov 2019-12-04  118  	u32 val_u32, array_u32[32];
c032ace71c29d5 Dmitry Torokhov 2019-12-04  119  	u64 val_u64, array_u64[32];
c032ace71c29d5 Dmitry Torokhov 2019-12-04  120  	int error;
c032ace71c29d5 Dmitry Torokhov 2019-12-04  121  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  122  	node = fwnode_create_software_node(entries, NULL);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  123  	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  124  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  125  	error = fwnode_property_read_u8(node, "prop-u8", &val_u8);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  126  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  127  	KUNIT_EXPECT_EQ(test, (int)val_u8, 8);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  128  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  129  	error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  130  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  131  	KUNIT_EXPECT_EQ(test, (int)array_u8[0], 8);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  132  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  133  	error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  134  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  135  	KUNIT_EXPECT_EQ(test, (int)array_u8[0], 8);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  136  	KUNIT_EXPECT_EQ(test, (int)array_u8[1], 9);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  137  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  138  	error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 17);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  139  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  140  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  141  	error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  142  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  143  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  144  	error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  145  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  146  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  147  	error = fwnode_property_read_u16(node, "prop-u16", &val_u16);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  148  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  149  	KUNIT_EXPECT_EQ(test, (int)val_u16, 16);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  150  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  151  	error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  152  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  153  	KUNIT_EXPECT_EQ(test, (int)array_u16[0], 16);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  154  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  155  	error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 2);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  156  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  157  	KUNIT_EXPECT_EQ(test, (int)array_u16[0], 16);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  158  	KUNIT_EXPECT_EQ(test, (int)array_u16[1], 17);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  159  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  160  	error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 17);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  161  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  162  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  163  	error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  164  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  165  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  166  	error = fwnode_property_read_u16_array(node, "no-prop-u16", array_u16, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  167  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  168  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  169  	error = fwnode_property_read_u32(node, "prop-u32", &val_u32);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  170  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  171  	KUNIT_EXPECT_EQ(test, (int)val_u32, 32);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  172  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  173  	error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  174  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  175  	KUNIT_EXPECT_EQ(test, (int)array_u32[0], 32);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  176  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  177  	error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 2);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  178  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  179  	KUNIT_EXPECT_EQ(test, (int)array_u32[0], 32);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  180  	KUNIT_EXPECT_EQ(test, (int)array_u32[1], 33);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  181  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  182  	error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 17);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  183  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  184  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  185  	error = fwnode_property_read_u32(node, "no-prop-u32", &val_u32);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  186  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  187  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  188  	error = fwnode_property_read_u32_array(node, "no-prop-u32", array_u32, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  189  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  190  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  191  	error = fwnode_property_read_u64(node, "prop-u64", &val_u64);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  192  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  193  	KUNIT_EXPECT_EQ(test, (int)val_u64, 64);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  194  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  195  	error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  196  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  197  	KUNIT_EXPECT_EQ(test, (int)array_u64[0], 64);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  198  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  199  	error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 2);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  200  	KUNIT_EXPECT_EQ(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  201  	KUNIT_EXPECT_EQ(test, (int)array_u64[0], 64);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  202  	KUNIT_EXPECT_EQ(test, (int)array_u64[1], 65);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  203  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  204  	error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 17);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  205  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  206  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  207  	error = fwnode_property_read_u64(node, "no-prop-u64", &val_u64);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  208  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  209  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  210  	error = fwnode_property_read_u64_array(node, "no-prop-u64", array_u64, 1);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  211  	KUNIT_EXPECT_NE(test, error, 0);
c032ace71c29d5 Dmitry Torokhov 2019-12-04  212  
c032ace71c29d5 Dmitry Torokhov 2019-12-04  213  	fwnode_remove_software_node(node);
c032ace71c29d5 Dmitry Torokhov 2019-12-04 @214  }
c032ace71c29d5 Dmitry Torokhov 2019-12-04  215  

:::::: The code at line 214 was first introduced by commit
:::::: c032ace71c29d513bf9df64ace1885fe5ff24981 software node: add basic tests for property entries

:::::: TO: Dmitry Torokhov <dmitry.torokhov@...il.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@...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