Re: [PATCH v2] appletalk: Fix use-after-free in atalk_proc_exit

From: kbuild test robot
Date: Thu Feb 28 2019 - 14:30:16 EST


Hi YueHaibing,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]
[also build test WARNING on v5.0-rc8 next-20190228]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Yue-Haibing/appletalk-Fix-use-after-free-in-atalk_proc_exit/20190228-195802
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 8.2.0-11) 8.2.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=8.2.0 make.cross ARCH=arm64

All warnings (new ones prefixed by >>):

>> WARNING: vmlinux.o(.init.text+0x1ebba4): Section mismatch in reference from the function atalk_init() to the function .exit.text:atalk_proc_exit()
The function __init atalk_init() references
a function __exit atalk_proc_exit().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
atalk_proc_exit() so it may be used outside an exit section.

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

Attachment: .config.gz
Description: application/gzip