linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next-20170207 initify_plugin kills gcc7.
@ 2017-02-08 21:48 valdis.kletnieks
  2017-02-08 23:03 ` Kees Cook
  0 siblings, 1 reply; 2+ messages in thread
From: valdis.kletnieks @ 2017-02-08 21:48 UTC (permalink / raw)
  To: Kees Cook; +Cc: kernel-hardening, linux-kernel

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

Seen in next-20170207:

[/usr/src/linux-next] gcc --version
gcc (GCC) 7.0.1 20170204 (Red Hat 7.0.1-0.6)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[/usr/src/linux-next] make drivers/acpi/acpica/utdebug.o
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DESCEND  objtool
  CC      drivers/acpi/acpica/utdebug.o
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_TYPE               | structleak_plugin
PLUGIN_ATTRIBUTES                | latent_entropy_plugin structleak_plugin initify_plugin
PLUGIN_START_UNIT                | latent_entropy_plugin initify_plugin
drivers/acpi/acpica/utdebug.c: In function ?acpi_debug_print?:
drivers/acpi/acpica/utdebug.c:158:1: internal compiler error: in is_call_arg_nocapture, at scripts/gcc-plugins/initify_plugin.c:792
 acpi_debug_print(u32 requested_debug_level,
 ^~~~~~~~~~~~~~~~
0x7f253a2b2127 is_call_arg_nocapture
	scripts/gcc-plugins/initify_plugin.c:792
0x7f253a2b2af8 search_capture_use
	scripts/gcc-plugins/initify_plugin.c:1054
0x7f253a2b2af8 has_capture_use_local_var
	scripts/gcc-plugins/initify_plugin.c:1140
0x7f253a2b349f verify_nocapture_functions
	scripts/gcc-plugins/initify_plugin.c:1477
0x7f253a2b349f initify_function_transform
	scripts/gcc-plugins/initify_plugin.c:1485
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [scripts/Makefile.build:295: drivers/acpi/acpica/utdebug.o] Error 1
make: *** [Makefile:1640: drivers/acpi/acpica/utdebug.o] Error 2
[/usr/src/linux-next]


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

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

* Re: next-20170207 initify_plugin kills gcc7.
  2017-02-08 21:48 next-20170207 initify_plugin kills gcc7 valdis.kletnieks
@ 2017-02-08 23:03 ` Kees Cook
  0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2017-02-08 23:03 UTC (permalink / raw)
  To: Valdis.Kletnieks@vt.edu; +Cc: kernel-hardening, LKML, Emese Revfy, PaX Team

On Wed, Feb 8, 2017 at 1:48 PM,  <valdis.kletnieks@vt.edu> wrote:
> Seen in next-20170207:
>
> [/usr/src/linux-next] gcc --version
> gcc (GCC) 7.0.1 20170204 (Red Hat 7.0.1-0.6)
> Copyright (C) 2017 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> [/usr/src/linux-next] make drivers/acpi/acpica/utdebug.o
>   CHK     include/config/kernel.release
>   CHK     include/generated/uapi/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CHK     include/generated/timeconst.h
>   CHK     include/generated/bounds.h
>   CHK     include/generated/asm-offsets.h
>   CALL    scripts/checksyscalls.sh
>   DESCEND  objtool
>   CC      drivers/acpi/acpica/utdebug.o
> *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
> Event                            | Plugins
> PLUGIN_FINISH_TYPE               | structleak_plugin
> PLUGIN_ATTRIBUTES                | latent_entropy_plugin structleak_plugin initify_plugin
> PLUGIN_START_UNIT                | latent_entropy_plugin initify_plugin
> drivers/acpi/acpica/utdebug.c: In function ?acpi_debug_print?:
> drivers/acpi/acpica/utdebug.c:158:1: internal compiler error: in is_call_arg_nocapture, at scripts/gcc-plugins/initify_plugin.c:792
>  acpi_debug_print(u32 requested_debug_level,
>  ^~~~~~~~~~~~~~~~
> 0x7f253a2b2127 is_call_arg_nocapture
>         scripts/gcc-plugins/initify_plugin.c:792
> 0x7f253a2b2af8 search_capture_use
>         scripts/gcc-plugins/initify_plugin.c:1054
> 0x7f253a2b2af8 has_capture_use_local_var
>         scripts/gcc-plugins/initify_plugin.c:1140
> 0x7f253a2b349f verify_nocapture_functions
>         scripts/gcc-plugins/initify_plugin.c:1477
> 0x7f253a2b349f initify_function_transform
>         scripts/gcc-plugins/initify_plugin.c:1485
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <http://bugzilla.redhat.com/bugzilla> for instructions.
> The bug is not reproducible, so it is likely a hardware or OS problem.
> make[1]: *** [scripts/Makefile.build:295: drivers/acpi/acpica/utdebug.o] Error 1
> make: *** [Makefile:1640: drivers/acpi/acpica/utdebug.o] Error 2
> [/usr/src/linux-next]
>

Ah, fun! I'll bet this isn't seen in grsecurity because acpica/ is
actually marked up correctly. Still, it shouldn't explode. I'll see if
I can get a gcc 7 installed ...

Thanks!

-Kees

-- 
Kees Cook
Pixel Security

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

end of thread, other threads:[~2017-02-08 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 21:48 next-20170207 initify_plugin kills gcc7 valdis.kletnieks
2017-02-08 23:03 ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).