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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202001250728.SBvSrclE%lkp@intel.com>
Date:   Sat, 25 Jan 2020 08:03:40 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     kbuild-all@...ts.01.org, Jason Baron <jbaron@...mai.com>,
        linux-kernel@...r.kernel.org, kernel-team@...roid.com
Subject: Re: [PATCH] dynamic_debug: allow to work if debugfs is disabled

Hi Greg,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.5-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Greg-Kroah-Hartman/dynamic_debug-allow-to-work-if-debugfs-is-disabled/20200124-140304
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1522d9da40bdfe502c91163e6d769332897201fa
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=m68k 

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

All warnings (new ones prefixed by >>):

   lib/dynamic_debug.c: In function 'dynamic_debug_init_debugfs':
>> lib/dynamic_debug.c:1003:6: warning: the address of 'debugfs_initialized' will always evaluate as 'true' [-Waddress]
     if (debugfs_initialized) {
         ^~~~~~~~~~~~~~~~~~~

vim +1003 lib/dynamic_debug.c

   993	
   994	static int __init dynamic_debug_init_debugfs(void)
   995	{
   996		struct dentry *debugfs_dir;
   997		struct proc_dir_entry *procfs_dir;
   998	
   999		if (!ddebug_init_success)
  1000			return -ENODEV;
  1001	
  1002		/* Create the control file in debugfs if it is enabled */
> 1003		if (debugfs_initialized) {
  1004			debugfs_dir = debugfs_create_dir("dynamic_debug", NULL);
  1005			debugfs_create_file("control", 0644, debugfs_dir, NULL,
  1006					    &ddebug_proc_fops);
  1007			return 0;
  1008		}
  1009	
  1010		/* No debugfs so put it in procfs instead */
  1011		procfs_dir = proc_mkdir("dynamic_debug", NULL);
  1012		if (procfs_dir)
  1013			proc_create("control", 0x644, procfs_dir, &ddebug_proc_fops);
  1014	
  1015		return 0;
  1016	}
  1017	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ