All of lore.kernel.org
 help / color / mirror / Atom feed
* next-20160314 - KASAN breaks 'make C=2' build...
@ 2016-03-15  9:11 Valdis Kletnieks
  2016-03-15  9:22 ` Andrey Ryabinin
  0 siblings, 1 reply; 4+ messages in thread
From: Valdis Kletnieks @ 2016-03-15  9:11 UTC (permalink / raw)
  To: Andrew Morton, Andrey Ryabinin, Andrey Konovalov; +Cc: linux-kernel, linux-mm

This config breaks sparse:

grep KASAN .config
CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000
CONFIG_HAVE_ARCH_KASAN=y
CONFIG_KASAN=y
# CONFIG_KASAN_OUTLINE is not set
CONFIG_KASAN_INLINE=y
CONFIG_TEST_KASAN=m

 LANG=C make C=2
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DESCEND  objtool
  CHECK   scripts/mod/empty.c
No such file: asan-stack=1
scripts/Makefile.build:291: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:440: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:552: recipe for target 'scripts' failed
make: *** [scripts] Error 2

Looks like it's this chunk from scripts/Makefile.kasan:

CFLAGS_KASAN := $(call cc-option, -fsanitize=kernel-address 
                -fasan-shadow-offset=$(KASAN_SHADOW_OFFSET) 
                --param asan-stack=1 --param asan-globals=1 
                --param asan-instrumentation-with-call-threshold=$(call_threshold))

4AM is a bad time to figure out who's to blame here....

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

* Re: next-20160314 - KASAN breaks 'make C=2' build...
  2016-03-15  9:11 next-20160314 - KASAN breaks 'make C=2' build Valdis Kletnieks
@ 2016-03-15  9:22 ` Andrey Ryabinin
  2016-03-15 11:19   ` Valdis.Kletnieks
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Ryabinin @ 2016-03-15  9:22 UTC (permalink / raw)
  To: Valdis Kletnieks
  Cc: Andrew Morton, Andrey Ryabinin, Andrey Konovalov, LKML, linux-mm

2016-03-15 12:11 GMT+03:00 Valdis Kletnieks <Valdis.Kletnieks@vt.edu>:
> This config breaks sparse:
>
> grep KASAN .config
> CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000
> CONFIG_HAVE_ARCH_KASAN=y
> CONFIG_KASAN=y
> # CONFIG_KASAN_OUTLINE is not set
> CONFIG_KASAN_INLINE=y
> CONFIG_TEST_KASAN=m
>
>  LANG=C make C=2
>   CHK     include/config/kernel.release
>   CHK     include/generated/uapi/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CHK     include/generated/bounds.h
>   CHK     include/generated/timeconst.h
>   CHK     include/generated/asm-offsets.h
>   CALL    scripts/checksyscalls.sh
>   DESCEND  objtool
>   CHECK   scripts/mod/empty.c
> No such file: asan-stack=1
> scripts/Makefile.build:291: recipe for target 'scripts/mod/empty.o' failed
> make[2]: *** [scripts/mod/empty.o] Error 1
> scripts/Makefile.build:440: recipe for target 'scripts/mod' failed
> make[1]: *** [scripts/mod] Error 2
> Makefile:552: recipe for target 'scripts' failed
> make: *** [scripts] Error 2
>
> Looks like it's this chunk from scripts/Makefile.kasan:
>
> CFLAGS_KASAN := $(call cc-option, -fsanitize=kernel-address
>                 -fasan-shadow-offset=$(KASAN_SHADOW_OFFSET)
>                 --param asan-stack=1 --param asan-globals=1
>                 --param asan-instrumentation-with-call-threshold=$(call_threshold))
>
> 4AM is a bad time to figure out who's to blame here....

Update your sparse please. Make sure it has d917662d54ba ("lib.c: skip
--param parameters").

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

* Re: next-20160314 - KASAN breaks 'make C=2' build...
  2016-03-15  9:22 ` Andrey Ryabinin
@ 2016-03-15 11:19   ` Valdis.Kletnieks
  2016-03-15 11:33     ` Christopher Li
  0 siblings, 1 reply; 4+ messages in thread
From: Valdis.Kletnieks @ 2016-03-15 11:19 UTC (permalink / raw)
  To: Andrey Ryabinin, Christopher Li
  Cc: Andrew Morton, Andrey Ryabinin, Andrey Konovalov, LKML, linux-mm

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

On Tue, 15 Mar 2016 12:22:18 +0300, Andrey Ryabinin said:
> 2016-03-15 12:11 GMT+03:00 Valdis Kletnieks <Valdis.Kletnieks@vt.edu>:
> > This config breaks sparse:

> > 4AM is a bad time to figure out who's to blame here....
>
> Update your sparse please. Make sure it has d917662d54ba ("lib.c: skip
> --param parameters").

And sure enough, sparse built from the git tree works as expected.

Fedora only packaged 0.5.0, which doesn't include the last few
dozen commits.  And they probably won't update until a sparse maintainer
sticks a v0.5.1 tag on it.  I suspect that other distros are similar.

Adding Christopher Li to the recipient list - any thoughts?




[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]

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

* Re: next-20160314 - KASAN breaks 'make C=2' build...
  2016-03-15 11:19   ` Valdis.Kletnieks
@ 2016-03-15 11:33     ` Christopher Li
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Li @ 2016-03-15 11:33 UTC (permalink / raw)
  To: Valdis.Kletnieks
  Cc: Andrey Ryabinin, Andrew Morton, Andrey Ryabinin,
	Andrey Konovalov, LKML, linux-mm

On Tue, Mar 15, 2016 at 4:19 AM,  <Valdis.Kletnieks@vt.edu> wrote:
>
> Fedora only packaged 0.5.0, which doesn't include the last few
> dozen commits.  And they probably won't update until a sparse maintainer
> sticks a v0.5.1 tag on it.  I suspect that other distros are similar.
>
> Adding Christopher Li to the recipient list - any thoughts?

Yes, I should cut a new release long time ago. Let me just do that.

Chris

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

end of thread, other threads:[~2016-03-15 11:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-15  9:11 next-20160314 - KASAN breaks 'make C=2' build Valdis Kletnieks
2016-03-15  9:22 ` Andrey Ryabinin
2016-03-15 11:19   ` Valdis.Kletnieks
2016-03-15 11:33     ` Christopher Li

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.