public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [arm-integrator:kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split 29/31] kernel/sys.c:1288:1: warning: stack frame size (1040) exceeds limit (1024) in '__se_sys_newuname'
@ 2023-02-08 16:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-08 16:08 UTC (permalink / raw)
  To: Linus Walleij; +Cc: llvm, oe-kbuild-all

Hi Linus,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split
head:   e6fc25ec2770c9db62486fb1f291b99531f86533
commit: 0facdc348172563db9b913d75c9aab1bf68550f8 [29/31] hack passing kernel_init()
config: arm-randconfig-r046-20230206 (https://download.01.org/0day-ci/archive/20230209/202302090016.DRnD1KVw-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db0e6591612b53910a1b366863348bdb9d7d2fb1)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=0facdc348172563db9b913d75c9aab1bf68550f8
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split
        git checkout 0facdc348172563db9b913d75c9aab1bf68550f8
        # 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=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/media/dvb-core/ drivers/tty/vt/ kernel/

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

All warnings (new ones prefixed by >>):

>> kernel/sys.c:1288:1: warning: stack frame size (1040) exceeds limit (1024) in '__se_sys_newuname' [-Wframe-larger-than]
   SYSCALL_DEFINE1(newuname, struct new_utsname __user *, name)
   ^
   include/linux/syscalls.h:217:36: note: expanded from macro 'SYSCALL_DEFINE1'
   #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
                                      ^
   include/linux/syscalls.h:228:2: note: expanded from macro 'SYSCALL_DEFINEx'
           __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
           ^
   include/linux/syscalls.h:247:18: note: expanded from macro '__SYSCALL_DEFINEx'
           asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__))  \
                           ^
   <scratch space>:124:1: note: expanded from here
   __se_sys_newuname
   ^
   40/1040 (3.85%) spills, 1000/1040 (96.15%) variables
   1 warning generated.
--
>> drivers/media/dvb-core/dvb_frontend.c:2424:12: warning: stack frame size (1072) exceeds limit (1024) in 'dvb_frontend_handle_ioctl' [-Wframe-larger-than]
   static int dvb_frontend_handle_ioctl(struct file *file,
              ^
   66/1072 (6.16%) spills, 1006/1072 (93.84%) variables
   1 warning generated.
--
>> drivers/tty/vt/consolemap.c:402:5: warning: stack frame size (1064) exceeds limit (1024) in 'con_get_trans_new' [-Wframe-larger-than]
   int con_get_trans_new(ushort __user * arg)
       ^
   24/1064 (2.26%) spills, 1040/1064 (97.74%) variables
   1 warning generated.


vim +/__se_sys_newuname +1288 kernel/sys.c

be27425dcc516f Andi Kleen        2011-08-19  1287  
e48fbb699f82ef Heiko Carstens    2009-01-14 @1288  SYSCALL_DEFINE1(newuname, struct new_utsname __user *, name)
^1da177e4c3f41 Linus Torvalds    2005-04-16  1289  {
42a0cc3478584d Jann Horn         2018-06-25  1290  	struct new_utsname tmp;
^1da177e4c3f41 Linus Torvalds    2005-04-16  1291  
^1da177e4c3f41 Linus Torvalds    2005-04-16  1292  	down_read(&uts_sem);
42a0cc3478584d Jann Horn         2018-06-25  1293  	memcpy(&tmp, utsname(), sizeof(tmp));
^1da177e4c3f41 Linus Torvalds    2005-04-16  1294  	up_read(&uts_sem);
42a0cc3478584d Jann Horn         2018-06-25  1295  	if (copy_to_user(name, &tmp, sizeof(tmp)))
42a0cc3478584d Jann Horn         2018-06-25  1296  		return -EFAULT;
e28cbf22933d0c Christoph Hellwig 2010-03-10  1297  
42a0cc3478584d Jann Horn         2018-06-25  1298  	if (override_release(name->release, sizeof(name->release)))
42a0cc3478584d Jann Horn         2018-06-25  1299  		return -EFAULT;
42a0cc3478584d Jann Horn         2018-06-25  1300  	if (override_architecture(name))
42a0cc3478584d Jann Horn         2018-06-25  1301  		return -EFAULT;
42a0cc3478584d Jann Horn         2018-06-25  1302  	return 0;
^1da177e4c3f41 Linus Torvalds    2005-04-16  1303  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  1304  

:::::: The code at line 1288 was first introduced by commit
:::::: e48fbb699f82ef1e80bd7126046394d2dc9ca7e6 [CVE-2009-0029] System call wrappers part 24

:::::: TO: Heiko Carstens <heiko.carstens@de.ibm.com>
:::::: CC: Heiko Carstens <heiko.carstens@de.ibm.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-08 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 16:08 [arm-integrator:kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split 29/31] kernel/sys.c:1288:1: warning: stack frame size (1040) exceeds limit (1024) in '__se_sys_newuname' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox