All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:locking/core 9/29] /bin/bash: line 1: 5966 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp, -MMD, f...
@ 2020-07-24  9:57 kernel test robot
  2020-07-24 10:44 ` Peter Zijlstra
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-07-24  9:57 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 9165 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head:   c89d240ef194914df3044aebc91dc27b13c4a59d
commit: 8a64023cd449ad7cc9e8f04855a3144020bf499b [9/29] seqlock: Extend seqcount API with associated locks
config: xtensa-randconfig-s032-20200724 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-93-g4c6cbe55-dirty
        git checkout 8a64023cd449ad7cc9e8f04855a3144020bf499b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa 

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

All errors (new ones prefixed by >>):

   fs/namei.c: note: in included file (through arch/xtensa/include/uapi/asm/byteorder.h, arch/xtensa/include/asm/bitops.h, include/linux/bitops.h, ...):
   include/linux/byteorder/little_endian.h:8:2: sparse: sparse: inconsistent configuration, CONFIG_CPU_BIG_ENDIAN is set
   fs/namei.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...):
   include/linux/rcupdate.h:686:9: sparse: sparse: context imbalance in 'terminate_walk' - unexpected unlock
   include/linux/rcupdate.h:686:9: sparse: sparse: context imbalance in 'unlazy_walk' - unexpected unlock
   include/linux/rcupdate.h:686:9: sparse: sparse: context imbalance in 'unlazy_child' - unexpected unlock
   fs/namei.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/slab.h):
   include/linux/seqlock.h:876:24: sparse: sparse: trying to copy expression type 31
   include/linux/seqlock.h:902:16: sparse: sparse: trying to copy expression type 31
   include/linux/seqlock.h:340:16: sparse: sparse: unreplaced symbol 's'
   include/linux/seqlock.h:340:9: sparse: sparse: unreplaced symbol 'return'
   include/linux/seqlock.h:902:16: sparse: sparse: unreplaced symbol 's'
   include/linux/seqlock.h:902:16: sparse: sparse: unreplaced symbol 'return'
>> /bin/bash: line 1:  5966 Segmentation fault      sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp,-MMD,fs/.namei.o.d -nostdinc -isystem /opt/cross/gcc-9.3.0-nolibc/xtensa-linux/bin/../lib/gcc/xtensa-linux/9.3.0/include -Iarch/xtensa/include -I./arch/xtensa/include/generated -Iinclude -I./include -Iarch/xtensa/include/uapi -I./arch/xtensa/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DCONFIG_CPU_BIG_ENDIAN -Iarch/xtensa/variants/dc232b/include -Iarch/xtensa/platforms/iss/include -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -ffreestanding -D__linux__ -pipe -mlongcalls -mtext-section-literals -mforce-no-pic -mno-serialize-volatile -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=8192 -fno-stack-protector -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -femit-struct-debug-baseonly -fno-var-tracking -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map== -Wno-packed-not-aligned -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wpacked-not-aligned -Wstringop-truncation -Wno-missing-field-initializers -Wno-sign-compare -I fs -I ./fs -DKBUILD_MODFILE='"fs/namei"' -DKBUILD_BASENAME='"namei"' -DKBUILD_MODNAME='"namei"' fs/namei.c
--
   fs/dcache.c: note: in included file (through arch/xtensa/include/uapi/asm/byteorder.h, arch/xtensa/include/asm/bitops.h, include/linux/bitops.h, ...):
   include/linux/byteorder/little_endian.h:8:2: sparse: sparse: inconsistent configuration, CONFIG_CPU_BIG_ENDIAN is set
   fs/dcache.c:577:28: sparse: sparse: context imbalance in '__dentry_kill' - unexpected unlock
   fs/dcache.c:622:9: sparse: sparse: context imbalance in '__lock_parent' - wrong count at exit
   fs/dcache.c:725:20: sparse: sparse: context imbalance in 'dentry_kill' - different lock contexts for basic block
   fs/dcache.c:878:17: sparse: sparse: context imbalance in 'dput' - unexpected unlock
   fs/dcache.c:907:20: sparse: sparse: context imbalance in 'dput_to_list' - unexpected unlock
   fs/dcache.c:1046:18: sparse: sparse: context imbalance in 'd_prune_aliases' - different lock contexts for basic block
   fs/dcache.c:1076:13: sparse: sparse: context imbalance in 'shrink_lock_dentry' - different lock contexts for basic block
   fs/dcache.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/list.h:282:16: sparse: sparse: context imbalance in 'shrink_dentry_list' - different lock contexts for basic block
   fs/dcache.c:1226:24: sparse: sparse: context imbalance in 'dentry_lru_isolate_shrink' - different lock contexts for basic block
   fs/dcache.c: note: in included file (through include/linux/time.h, include/linux/ktime.h, include/linux/timer.h, ...):
   include/linux/seqlock.h:876:24: sparse: sparse: trying to copy expression type 31
   include/linux/seqlock.h:902:16: sparse: sparse: trying to copy expression type 31
   include/linux/seqlock.h:340:16: sparse: sparse: unreplaced symbol 's'
   include/linux/seqlock.h:340:9: sparse: sparse: unreplaced symbol 'return'
   include/linux/seqlock.h:902:16: sparse: sparse: unreplaced symbol 's'
   include/linux/seqlock.h:902:16: sparse: sparse: unreplaced symbol 'return'
   sparse: flow.c:615: rewrite_parent_branch: Assertion `changed' failed.
>> /bin/bash: line 1:  6660 Aborted                 sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp,-MMD,fs/.dcache.o.d -nostdinc -isystem /opt/cross/gcc-9.3.0-nolibc/xtensa-linux/bin/../lib/gcc/xtensa-linux/9.3.0/include -Iarch/xtensa/include -I./arch/xtensa/include/generated -Iinclude -I./include -Iarch/xtensa/include/uapi -I./arch/xtensa/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DCONFIG_CPU_BIG_ENDIAN -Iarch/xtensa/variants/dc232b/include -Iarch/xtensa/platforms/iss/include -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -ffreestanding -D__linux__ -pipe -mlongcalls -mtext-section-literals -mforce-no-pic -mno-serialize-volatile -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=8192 -fno-stack-protector -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -femit-struct-debug-baseonly -fno-var-tracking -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map== -Wno-packed-not-aligned -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wpacked-not-aligned -Wstringop-truncation -Wno-missing-field-initializers -Wno-sign-compare -I fs -I ./fs -DKBUILD_MODFILE='"fs/dcache"' -DKBUILD_BASENAME='"dcache"' -DKBUILD_MODNAME='"dcache"' fs/dcache.c

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26100 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [peterz-queue:locking/core 9/29] /bin/bash: line 1: 5966 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp, -MMD, f...
  2020-07-24  9:57 [peterz-queue:locking/core 9/29] /bin/bash: line 1: 5966 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp, -MMD, f kernel test robot
@ 2020-07-24 10:44 ` Peter Zijlstra
  2020-07-24 12:57   ` Luc Van Oostenryck
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Zijlstra @ 2020-07-24 10:44 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3332 bytes --]

On Fri, Jul 24, 2020 at 05:57:07PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
> head:   c89d240ef194914df3044aebc91dc27b13c4a59d
> commit: 8a64023cd449ad7cc9e8f04855a3144020bf499b [9/29] seqlock: Extend seqcount API with associated locks
> config: xtensa-randconfig-s032-20200724 (attached as .config)
> compiler: xtensa-linux-gcc (GCC) 9.3.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.2-93-g4c6cbe55-dirty
>         git checkout 8a64023cd449ad7cc9e8f04855a3144020bf499b
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa 

> >> /bin/bash: line 1:  5966 Segmentation fault      sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp,-MMD,fs/.namei.o.d -nostdinc -isystem /opt/cross/gcc-9.3.0-nolibc/xtensa-linux/bin/../lib/gcc/xtensa-linux/9.3.0/include -Iarch/xtensa/include -I./arch/xtensa/include/generated -Iinclude -I./include -Iarch/xtensa/include/uapi -I./arch/xtensa/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DCONFIG_CPU_BIG_ENDIAN -Iarch/xtensa/variants/dc232b/include -Iarch/xtensa/platforms/iss/include -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -ffreestanding -D__linux__ -pipe -mlongcalls -mtext-section-literals -mforce-no-pic -mno-serialize-volatile -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=8192 -fno-stack-protector -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -femit-struct-debug-baseonly -fno-var-tracking -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map== -Wno-packed-not-aligned -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wpacked-not-aligned -Wstringop-truncation -Wno-missing-field-initializers -Wno-sign-compare -I fs -I ./fs -DKBUILD_MODFILE='"fs/namei"' -DKBUILD_BASENAME='"namei"' -DKBUILD_MODNAME='"namei"' fs/namei.c


Hurm,.. afaict your sparse version does support the _Generic thing. Luc?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [peterz-queue:locking/core 9/29] /bin/bash: line 1: 5966 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp, -MMD, f...
  2020-07-24 10:44 ` Peter Zijlstra
@ 2020-07-24 12:57   ` Luc Van Oostenryck
  0 siblings, 0 replies; 3+ messages in thread
From: Luc Van Oostenryck @ 2020-07-24 12:57 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

On Fri, Jul 24, 2020 at 12:44:40PM +0200, Peter Zijlstra wrote:
> On Fri, Jul 24, 2020 at 05:57:07PM +0800, kernel test robot wrote:
> 
> Hurm,.. afaict your sparse version does support the _Generic thing. Luc?

It does ... (but admittingly it's a very new feature).

For some reasons, 2 of these _Generic() are not evaluated before
the inlining phase, hence the error message:
   include/linux/seqlock.h:876:24: trying to copy expression type 31
   include/linux/seqlock.h:902:16: trying to copy expression type 31

I'm investigating the cause.
-- Luc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-24 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  9:57 [peterz-queue:locking/core 9/29] /bin/bash: line 1: 5966 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__XTENSA_EB__ --arch=xtensa -mlittle-endian -m32 -Wp, -MMD, f kernel test robot
2020-07-24 10:44 ` Peter Zijlstra
2020-07-24 12:57   ` Luc Van Oostenryck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.