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: <CALOAHbBQfK16aXUwT3znCwLBWcpLwgovS=kYBBR=eL4Eb62t3g@mail.gmail.com>
Date:   Sat, 13 Nov 2021 22:46:04 +0800
From:   Yafang Shao <laoar.shao@...il.com>
To:     kernel test robot <lkp@...el.com>
Cc:     kbuild-all@...ts.01.org, LKML <linux-kernel@...r.kernel.org>,
        yujie.liu@...el.com, luc.vanoostenryck@...il.com,
        linux-sparse@...r.kernel.org
Subject: Re: /bin/bash: line 1: 45878 Segmentation fault sparse -D__linux__
 -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void
 -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__NDS32_EL__
 --arch=nds32 -mlittle-endian -m32 -Wp,-MMD,ker...

On Sat, Nov 13, 2021 at 12:25 PM kernel test robot <lkp@...el.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   66f4beaa6c1d28161f534471484b2daa2de1dce0
> commit: 60f2415e19d3948641149ac6aca137a7be1d1952 sched: Make schedstats helpers independent of fair sched class
> date:   6 weeks ago
> config: nds32-randconfig-s031-20211015 (attached as .config)
> compiler: nds32le-linux-gcc (GCC) 11.2.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.4-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=60f2415e19d3948641149ac6aca137a7be1d1952
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 60f2415e19d3948641149ac6aca137a7be1d1952
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=nds32
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
>
> All errors (new ones prefixed by >>):
>
>    include/linux/rtmutex.h:68:58: sparse: sparse: got $
>    kernel/sched/fair.c: note: in included file (through include/linux/sched.h, kernel/sched/sched.h):
>    include/linux/seccomp.h:96:63: sparse: sparse: Expected ) in function declarator
>    include/linux/seccomp.h:96:63: sparse: sparse: got $
>    include/linux/seccomp.h:99:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/seccomp.h:99:1: sparse: sparse: got }
>    include/linux/seccomp.h:103:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/seccomp.h:103:1: sparse: sparse: got }
>    include/linux/seccomp.h:116:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/seccomp.h:116:1: sparse: sparse: got }
>    include/linux/seccomp.h:122:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/seccomp.h:122:1: sparse: sparse: got }
>    kernel/sched/fair.c: note: in included file (through include/linux/nodemask.h, include/linux/sched.h, kernel/sched/sched.h):
>    include/linux/numa.h:50:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/numa.h:50:1: sparse: sparse: got }
>    include/linux/numa.h:54:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/numa.h:54:1: sparse: sparse: got }
>    include/linux/numa.h:58:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/numa.h:58:1: sparse: sparse: got }
>    kernel/sched/fair.c: note: in included file (through include/linux/sched.h, kernel/sched/sched.h):
>    include/linux/nodemask.h:98:54: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:98:54: sparse: sparse: got }
>    include/linux/nodemask.h:99:19: sparse: sparse: Expected ; at end of declaration
>    include/linux/nodemask.h:99:19: sparse: sparse: got _unused_nodemask_arg_
>    include/linux/nodemask.h:109:68: sparse: sparse: Expected ) in function declarator
>    include/linux/nodemask.h:109:68: sparse: sparse: got *
>    include/linux/nodemask.h:112:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:112:1: sparse: sparse: got }
>    include/linux/nodemask.h:116:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:116:1: sparse: sparse: got }
>    include/linux/nodemask.h:131:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:131:1: sparse: sparse: got }
>    include/linux/nodemask.h:137:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:137:1: sparse: sparse: got }
>    include/linux/nodemask.h:143:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:143:1: sparse: sparse: got }
>    include/linux/nodemask.h:149:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:149:1: sparse: sparse: got }
>    include/linux/nodemask.h:159:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:159:1: sparse: sparse: got }
>    include/linux/nodemask.h:167:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:167:1: sparse: sparse: got }
>    include/linux/nodemask.h:175:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:175:1: sparse: sparse: got }
>    include/linux/nodemask.h:183:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:183:1: sparse: sparse: got }
>    include/linux/nodemask.h:191:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:191:1: sparse: sparse: got }
>    include/linux/nodemask.h:199:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:199:1: sparse: sparse: got }
>    include/linux/nodemask.h:207:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:207:1: sparse: sparse: got }
>    include/linux/nodemask.h:215:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:215:1: sparse: sparse: got }
>    include/linux/nodemask.h:223:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:223:1: sparse: sparse: got }
>    include/linux/nodemask.h:229:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:229:1: sparse: sparse: got }
>    include/linux/nodemask.h:235:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:235:1: sparse: sparse: got }
>    include/linux/nodemask.h:241:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:241:1: sparse: sparse: got }
>    include/linux/nodemask.h:249:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:249:1: sparse: sparse: got }
>    include/linux/nodemask.h:257:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:257:1: sparse: sparse: got }
>    include/linux/nodemask.h:265:16: sparse: sparse: Expected ) in nested declarator
>    include/linux/nodemask.h:265:16: sparse: sparse: got <
>    include/linux/nodemask.h:265:16: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:265:16: sparse: sparse: got }
>    include/linux/nodemask.h:266:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:266:1: sparse: sparse: got }
>    include/linux/nodemask.h:271:16: sparse: sparse: Expected ) in nested declarator
>    include/linux/nodemask.h:271:16: sparse: sparse: got <
>    include/linux/nodemask.h:271:16: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:271:16: sparse: sparse: got }
>    include/linux/nodemask.h:272:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:272:1: sparse: sparse: got }
>    include/linux/nodemask.h:281:53: sparse: sparse: Expected ) in function declarator
>    include/linux/nodemask.h:281:53: sparse: sparse: got *
>    include/linux/nodemask.h:284:9: sparse: sparse: Expected ) in function declarator
>    include/linux/nodemask.h:284:9: sparse: sparse: got (
>    include/linux/nodemask.h:285:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:285:1: sparse: sparse: got }
>    include/linux/nodemask.h:301:16: sparse: sparse: Expected ) in nested declarator
>    include/linux/nodemask.h:301:16: sparse: sparse: got <
>    include/linux/nodemask.h:301:16: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:301:16: sparse: sparse: got }
>    include/linux/nodemask.h:303:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:303:1: sparse: sparse: got }
>    include/linux/nodemask.h:337:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:337:1: sparse: sparse: got }
>    include/linux/nodemask.h:343:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:343:1: sparse: sparse: got }
>    include/linux/nodemask.h:351:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:351:1: sparse: sparse: got }
>    include/linux/nodemask.h:359:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:359:1: sparse: sparse: got }
>    include/linux/nodemask.h:367:1: sparse: sparse: Expected ; at the end of type declaration
>    include/linux/nodemask.h:367:1: sparse: sparse: too many errors
> >> /bin/bash: line 1: 45878 Segmentation fault      sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__NDS32_EL__ --arch=nds32 -mlittle-endian -m32 -Wp,-MMD,kernel/sched/.fair.o.d -nostdinc -isystem /opt/cross/gcc-11.2.0-nolibc/nds32le-linux/bin/../lib/gcc/nds32le-linux/11.2.0/include -Iarch/nds32/include -I./arch/nds32/include/generated -Iinclude -I./include -Iarch/nds32/include/uapi -I./arch/nds32/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map== -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 -Werror=return-type -Wno-format-security -std=gnu89 -mno-sched-prolog-epilog -mcmodel=large -mno-ext-fpu-sp -mno-ext-fpu-dp -mfloat-abi=soft -EL -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fno-stack-protector -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -fno-inline-functions-called-once -falign-functions=64 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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 -Wno-type-limits -I kernel/sched -I ./kernel/sched -DKBUILD_MODFILE='"kernel/sched/fair"' -DKBUILD_BASENAME='"fair"' -DKBUILD_MODNAME='"fair"' -D__KBUILD_MODNAME=kmod_fair kernel/sched/fair.c
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


Hi ,

+ Yujie, Luc and linux-sparse folks

This is a known issue. I replied to this issue several days earlier,
see also https://lore.kernel.org/lkml/CALOAHbBs463r4WbGKqfq5L=h=Us-En3v0DmoQiBwO9Sh1mY1UQ@mail.gmail.com/
. But it seems there's no progress by now.

Hi sparse folks, could you pls. share some information ?

-- 
Thanks
Yafang

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ