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]
Date:   Wed, 6 Jul 2022 16:41:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Moshe Tal <moshet@...dia.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Saeed Mahameed <saeedm@...dia.com>,
        Tariq Toukan <tariqt@...dia.com>
Subject: [saeed:net-next 1/52]
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c:3404:12: warning: stack
 frame size (1104) exceeds limit (1024) in 'mlx5e_setup_tc_mqprio'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git net-next
head:   f42c9d1eb0a1e2c7f986e0c2f6b362fddd0cdae7
commit: b229566876d91a99322a682e98beaa68dc38f9c9 [1/52] net/mlx5e: Fix mqprio_rl handling on devlink reload
config: powerpc-powernv_defconfig (https://download.01.org/0day-ci/archive/20220706/202207061612.xOfK0eiz-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f553287b588916de09c66e3e32bf75e5060f967f)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/commit/?id=b229566876d91a99322a682e98beaa68dc38f9c9
        git remote add saeed https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
        git fetch --no-tags saeed net-next
        git checkout b229566876d91a99322a682e98beaa68dc38f9c9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/ethernet/mellanox/mlx5/core/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/mellanox/mlx5/core/en_main.c:3404:12: warning: stack frame size (1104) exceeds limit (1024) in 'mlx5e_setup_tc_mqprio' [-Wframe-larger-than]
   static int mlx5e_setup_tc_mqprio(struct mlx5e_priv *priv,
              ^
   1 warning generated.


vim +/mlx5e_setup_tc_mqprio +3404 drivers/net/ethernet/mellanox/mlx5/core/en_main.c

b229566876d91a Moshe Tal    2022-05-04  3403  
e2aeac448f06ac Tariq Toukan 2021-07-06 @3404  static int mlx5e_setup_tc_mqprio(struct mlx5e_priv *priv,
e2aeac448f06ac Tariq Toukan 2021-07-06  3405  				 struct tc_mqprio_qopt_offload *mqprio)
e2aeac448f06ac Tariq Toukan 2021-07-06  3406  {
e2aeac448f06ac Tariq Toukan 2021-07-06  3407  	/* MQPRIO is another toplevel qdisc that can't be attached
e2aeac448f06ac Tariq Toukan 2021-07-06  3408  	 * simultaneously with the offloaded HTB.
e2aeac448f06ac Tariq Toukan 2021-07-06  3409  	 */
e2aeac448f06ac Tariq Toukan 2021-07-06  3410  	if (WARN_ON(priv->htb.maj_id))
e2aeac448f06ac Tariq Toukan 2021-07-06  3411  		return -EINVAL;
e2aeac448f06ac Tariq Toukan 2021-07-06  3412  
e2aeac448f06ac Tariq Toukan 2021-07-06  3413  	switch (mqprio->mode) {
e2aeac448f06ac Tariq Toukan 2021-07-06  3414  	case TC_MQPRIO_MODE_DCB:
e2aeac448f06ac Tariq Toukan 2021-07-06  3415  		return mlx5e_setup_tc_mqprio_dcb(priv, &mqprio->qopt);
ec60c4581bd952 Tariq Toukan 2021-08-11  3416  	case TC_MQPRIO_MODE_CHANNEL:
ec60c4581bd952 Tariq Toukan 2021-08-11  3417  		return mlx5e_setup_tc_mqprio_channel(priv, mqprio);
e2aeac448f06ac Tariq Toukan 2021-07-06  3418  	default:
e2aeac448f06ac Tariq Toukan 2021-07-06  3419  		return -EOPNOTSUPP;
e2aeac448f06ac Tariq Toukan 2021-07-06  3420  	}
e2aeac448f06ac Tariq Toukan 2021-07-06  3421  }
e2aeac448f06ac Tariq Toukan 2021-07-06  3422  

:::::: The code at line 3404 was first introduced by commit
:::::: e2aeac448f06ac6c6bee41a7ebecf814f7a57eef net/mlx5e: Maintain MQPRIO mode parameter

:::::: TO: Tariq Toukan <tariqt@...dia.com>
:::::: CC: Saeed Mahameed <saeedm@...dia.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ