Re: [PATCH 1/2] scripts: genksyms: fix resource leak

From: kbuild test robot
Date: Tue Apr 12 2016 - 10:41:35 EST


Hi Maxim,

[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.6-rc3 next-20160412]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Maxim-Zhukov/scripts-genksyms-fix-resource-leak/20160412-221051
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux for-next
config: cris-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=cris

All errors (new ones prefixed by >>):

>> /bin/bash: line 1: 35964 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/devfreq/.devfreq.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/devfreq -Idrivers/devfreq -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(devfreq)" -D"KBUILD_MODNAME=KBUILD_STR(devfreq)" drivers/devfreq/devfreq.c
35966 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/devfreq/.tmp_devfreq.ver
--
>> /bin/bash: line 1: 38095 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/gpu/drm/.drm_atomic_helper.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/gpu/drm -Idrivers/gpu/drm -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(drm_atomic_helper)" -D"KBUILD_MODNAME=KBUILD_STR(drm_kms_helper)" drivers/gpu/drm/drm_atomic_helper.c
38096 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/gpu/drm/.tmp_drm_atomic_helper.ver
--
>> /bin/bash: line 1: 36678 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/gpu/drm/.drm_cache.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/gpu/drm -Idrivers/gpu/drm -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(drm_cache)" -D"KBUILD_MODNAME=KBUILD_STR(drm)" drivers/gpu/drm/drm_cache.c
36679 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/gpu/drm/.tmp_drm_cache.ver
--
>> /bin/bash: line 1: 38621 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/gpu/drm/.drm_irq.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/gpu/drm -Idrivers/gpu/drm -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(drm_irq)" -D"KBUILD_MODNAME=KBUILD_STR(drm)" drivers/gpu/drm/drm_irq.c
38623 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/gpu/drm/.tmp_drm_irq.ver
--
>> /bin/bash: line 1: 38856 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/gpu/drm/.drm_sysfs.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/gpu/drm -Idrivers/gpu/drm -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(drm_sysfs)" -D"KBUILD_MODNAME=KBUILD_STR(drm)" drivers/gpu/drm/drm_sysfs.c
38857 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/gpu/drm/.tmp_drm_sysfs.ver
--
drivers/gpu/drm/drm_crtc.c: In function 'drm_plane_index':
drivers/gpu/drm/drm_crtc.c:1381:1: warning: control reaches end of non-void function [-Wreturn-type]
drivers/gpu/drm/drm_crtc.c: In function 'drm_encoder_index':
drivers/gpu/drm/drm_crtc.c:1170:1: warning: control reaches end of non-void function [-Wreturn-type]
drivers/gpu/drm/drm_crtc.c: In function 'drm_crtc_index':
drivers/gpu/drm/drm_crtc.c:784:1: warning: control reaches end of non-void function [-Wreturn-type]
>> /bin/bash: line 1: 39945 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/gpu/drm/.drm_crtc.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/gpu/drm -Idrivers/gpu/drm -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(drm_crtc)" -D"KBUILD_MODNAME=KBUILD_STR(drm)" drivers/gpu/drm/drm_crtc.c
39946 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/gpu/drm/.tmp_drm_crtc.ver
--
>> /bin/bash: line 1: 39445 Done cris-linux-gcc -E -D__GENKSYMS__ -Wp,-MD,drivers/gpu/drm/.drm_edid.o.d -nostdinc -isystem /usr/local/gcc-4.6.3-nolibc/cris-linux/bin/../lib/gcc/cris-linux/4.6.3/include -Iarch/cris/include -Iarch/cris/include/generated/uapi -Iarch/cris/include/generated -Iinclude -Iinclude -Iarch/cris/include/uapi -Iarch/cris/include/generated/uapi -Iinclude/uapi -Iinclude/generated/uapi -include include/linux/kconfig.h -Idrivers/gpu/drm -Idrivers/gpu/drm -D__KERNEL__ -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mlinux -march=v10 -pipe -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/uapi/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/arch-v10 -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/uapi/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/arch -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/ -Iarch/cris/include/arch-v10/mach-fs/mach -Iarch/cris/include/arch-v10/mach-fs/mach -g -fno-omit-frame-pointer -fno-delete-null-pointer-checks -Os -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(drm_edid)" -D"KBUILD_MODNAME=KBUILD_STR(drm)" drivers/gpu/drm/drm_edid.c
39446 Segmentation fault | scripts/genksyms/genksyms -r /dev/null > drivers/gpu/drm/.tmp_drm_edid.ver

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

Attachment: .config.gz
Description: Binary data