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  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]
Date:   Thu, 31 Dec 2020 15:05:40 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/thunderbolt/test.c:1529:1: warning: the frame size of 1216
 bytes is larger than 1024 bytes

Hi Mika,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f6e1ea19649216156576aeafa784e3b4cee45549
commit: 2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2 thunderbolt: Allow KUnit tests to be built also when CONFIG_USB4=m
date:   4 months ago
config: arm-randconfig-r034-20201231 (attached as .config)
compiler: arm-linux-gnueabi-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=2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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 1216 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 1080 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 1216 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1260 | }
         | ^

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for UIO
   Depends on MMU
   Selected by
   - CNIC && NETDEVICES && ETHERNET && NET_VENDOR_BROADCOM && PCI && (IPV6 || IPV6


vim +1529 drivers/thunderbolt/test.c

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

Powered by blists - more mailing lists