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: <202007260752.sU2TD9gK%lkp@intel.com>
Date:   Sun, 26 Jul 2020 07:57:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        "Rafael J. Wysocki" <rjw@...ysocki.net>
Subject: drivers/base/test/property-entry-test.c:214:1: warning: the frame
 size of 3120 bytes is larger than 2048 bytes

Hi Dmitry,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   04300d66f0a06d572d9f2ad6768c38cabde22179
commit: c032ace71c29d513bf9df64ace1885fe5ff24981 software node: add basic tests for property entries
date:   7 months ago
config: mips-randconfig-r006-20200726 (attached as .config)
compiler: mips-linux-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 c032ace71c29d513bf9df64ace1885fe5ff24981
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.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 3120 bytes is larger than 2048 bytes [-Wframe-larger-than=]
     214 | }
         | ^

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

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

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

Download attachment ".config.gz" of type "application/gzip" (24879 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ