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: <202009012214.w8Y33c9x%lkp@intel.com>
Date:   Tue, 1 Sep 2020 22:13:18 +0800
From:   kernel test robot <lkp@...el.com>
To:     Stephen Rothwell <sfr@...b.auug.org.au>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/thunderbolt/test.c:1529:1: warning: the frame size of 1184
 bytes is larger than 1024 bytes

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b51594df17d0ce80b9f9f35394a1f42d7ac94472
commit: 71fa1a4489ff93ac4acd7e6c5b00098ba53a4485 thunderbolt: merge fix for kunix_resource changes
date:   3 weeks ago
config: riscv-randconfig-p002-20200901 (attached as .config)
compiler: riscv32-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 71fa1a4489ff93ac4acd7e6c5b00098ba53a4485
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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/thunderbolt/test.c: In function 'tb_test_tunnel_usb3':
>> drivers/thunderbolt/test.c:1529:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1529 | }
         | ^
   drivers/thunderbolt/test.c: In function 'tb_test_tunnel_dp_max_length':
   drivers/thunderbolt/test.c:1474:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1474 | }
         | ^
   drivers/thunderbolt/test.c: In function 'tb_test_tunnel_pcie':
   drivers/thunderbolt/test.c:1260:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1260 | }
         | ^

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71fa1a4489ff93ac4acd7e6c5b00098ba53a4485
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 71fa1a4489ff93ac4acd7e6c5b00098ba53a4485
vim +1529 drivers/thunderbolt/test.c

40c14d9f4f6d34 Mika Westerberg 2020-05-04  1475  
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1476  static void tb_test_tunnel_usb3(struct kunit *test)
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1477  {
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1478  	struct tb_switch *host, *dev1, *dev2;
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1479  	struct tb_tunnel *tunnel1, *tunnel2;
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1480  	struct tb_port *down, *up;
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1481  
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1482  	/*
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1483  	 * Create USB3 tunnel between host and two devices.
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1484  	 *
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1485  	 *   [Host]
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1486  	 *    1 |
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1487  	 *    1 |
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1488  	 *  [Device #1]
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1489  	 *          \ 7
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1490  	 *           \ 1
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1491  	 *         [Device #2]
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1492  	 */
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1493  	host = alloc_host(test);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1494  	dev1 = alloc_dev_default(test, host, 0x1, true);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1495  	dev2 = alloc_dev_default(test, dev1, 0x701, true);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1496  
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1497  	down = &host->ports[12];
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1498  	up = &dev1->ports[16];
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1499  	tunnel1 = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1500  	KUNIT_ASSERT_TRUE(test, tunnel1 != NULL);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1501  	KUNIT_EXPECT_EQ(test, tunnel1->type, (enum tb_tunnel_type)TB_TUNNEL_USB3);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1502  	KUNIT_EXPECT_PTR_EQ(test, tunnel1->src_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1503  	KUNIT_EXPECT_PTR_EQ(test, tunnel1->dst_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1504  	KUNIT_ASSERT_EQ(test, tunnel1->npaths, (size_t)2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1505  	KUNIT_ASSERT_EQ(test, tunnel1->paths[0]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1506  	KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[0].in_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1507  	KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[1].out_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1508  	KUNIT_ASSERT_EQ(test, tunnel1->paths[1]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1509  	KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[0].in_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1510  	KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[1].out_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1511  
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1512  	down = &dev1->ports[17];
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1513  	up = &dev2->ports[16];
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1514  	tunnel2 = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1515  	KUNIT_ASSERT_TRUE(test, tunnel2 != NULL);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1516  	KUNIT_EXPECT_EQ(test, tunnel2->type, (enum tb_tunnel_type)TB_TUNNEL_USB3);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1517  	KUNIT_EXPECT_PTR_EQ(test, tunnel2->src_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1518  	KUNIT_EXPECT_PTR_EQ(test, tunnel2->dst_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1519  	KUNIT_ASSERT_EQ(test, tunnel2->npaths, (size_t)2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1520  	KUNIT_ASSERT_EQ(test, tunnel2->paths[0]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1521  	KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[0].in_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1522  	KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[1].out_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1523  	KUNIT_ASSERT_EQ(test, tunnel2->paths[1]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1524  	KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[0].in_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1525  	KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[1].out_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1526  
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1527  	tb_tunnel_free(tunnel2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1528  	tb_tunnel_free(tunnel1);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 @1529  }
40c14d9f4f6d34 Mika Westerberg 2020-05-04  1530  

:::::: The code at line 1529 was first introduced by commit
:::::: 40c14d9f4f6d3482af00356142c4ef6c8e6dd8fb thunderbolt: Add KUnit tests for tunneling

:::::: TO: Mika Westerberg <mika.westerberg@...ux.intel.com>
:::::: CC: Mika Westerberg <mika.westerberg@...ux.intel.com>

---
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" (35696 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ