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: <201710202011.ReGnWOuz%fengguang.wu@intel.com>
Date:   Fri, 20 Oct 2017 20:57:15 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Masami Hiramatsu <mhiramat@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>
Subject: [tip:perf/core 18/21] drivers/misc/lkdtm_core.c:317:3: warning:
 'unregister_jprobe' is deprecated

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
head:   9b17374e11c7ce2cf0b2b990fa4aa0360921aa2b
commit: 590c845930457d25d27dc1fdd964a1ce18ef2d7d [18/21] kprobes: Disable the jprobes APIs
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 590c845930457d25d27dc1fdd964a1ce18ef2d7d
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All warnings (new ones prefixed by >>):

   drivers/misc/lkdtm_core.c: In function 'lkdtm_register_cpoint':
>> drivers/misc/lkdtm_core.c:317:3: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
      unregister_jprobe(lkdtm_jprobe);
      ^~~~~~~~~~~~~~~~~
   In file included from drivers/misc/lkdtm_core.c:37:0:
   include/linux/kprobes.h:479:33: note: declared here
    static inline void __deprecated unregister_jprobe(struct jprobe *p)
                                    ^~~~~~~~~~~~~~~~~
>> drivers/misc/lkdtm_core.c:322:2: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
     ret = register_jprobe(lkdtm_jprobe);
     ^~~
   In file included from drivers/misc/lkdtm_core.c:37:0:
   include/linux/kprobes.h:471:32: note: declared here
    static inline int __deprecated register_jprobe(struct jprobe *p)
                                   ^~~~~~~~~~~~~~~
   drivers/misc/lkdtm_core.c: In function 'lkdtm_module_exit':
   drivers/misc/lkdtm_core.c:560:3: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
      unregister_jprobe(lkdtm_jprobe);
      ^~~~~~~~~~~~~~~~~
   In file included from drivers/misc/lkdtm_core.c:37:0:
   include/linux/kprobes.h:479:33: note: declared here
    static inline void __deprecated unregister_jprobe(struct jprobe *p)
                                    ^~~~~~~~~~~~~~~~~

vim +/unregister_jprobe +317 drivers/misc/lkdtm_core.c

0347af4e drivers/misc/lkdtm.c      Simon Kagstrom 2010-03-05  304  
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  305  static int lkdtm_register_cpoint(struct crashpoint *crashpoint,
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  306  				 struct crashtype *crashtype)
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  307  {
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  308  	int ret;
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  309  
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  310  	/* If this doesn't have a symbol, just call immediately. */
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  311  	if (!crashpoint->jprobe.kp.symbol_name) {
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  312  		lkdtm_do_action(crashtype);
0347af4e drivers/misc/lkdtm.c      Simon Kagstrom 2010-03-05  313  		return 0;
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  314  	}
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  315  
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  316  	if (lkdtm_jprobe != NULL)
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29 @317  		unregister_jprobe(lkdtm_jprobe);
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  318  
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  319  	lkdtm_crashpoint = crashpoint;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  320  	lkdtm_crashtype = crashtype;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  321  	lkdtm_jprobe = &crashpoint->jprobe;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29 @322  	ret = register_jprobe(lkdtm_jprobe);
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  323  	if (ret < 0) {
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  324  		pr_info("Couldn't register jprobe %s\n",
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  325  			crashpoint->jprobe.kp.symbol_name);
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  326  		lkdtm_jprobe = NULL;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  327  		lkdtm_crashpoint = NULL;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook      2016-06-29  328  		lkdtm_crashtype = NULL;
0347af4e drivers/misc/lkdtm.c      Simon Kagstrom 2010-03-05  329  	}
0347af4e drivers/misc/lkdtm.c      Simon Kagstrom 2010-03-05  330  
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  331  	return ret;
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  332  }
8bb31b9d drivers/misc/lkdtm.c      Ankita Garg    2006-10-02  333  

:::::: The code at line 317 was first introduced by commit
:::::: c479e3fd88703c4b1049d7102a3fa8c6b3affef5 lkdtm: use struct arrays instead of enums

:::::: TO: Kees Cook <keescook@...omium.org>
:::::: CC: Kees Cook <keescook@...omium.org>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ