* [GIT PULL] kbuild changes for v4.8-rc1
@ 2016-08-02 19:00 Michal Marek
2016-08-02 20:41 ` Linus Torvalds
0 siblings, 1 reply; 6+ messages in thread
From: Michal Marek @ 2016-08-02 19:00 UTC (permalink / raw)
To: Linus Torvalds
Cc: arnd, keescook, re.emese, tautschn, wsa, yamada.masahiro,
linux-kbuild, linux-kernel
Hi Linus,
please merge these kbuild changes for v4.8-rc1:
- GCC plugin support by Emese Revfy from grsecurity, with a fixup from
Kees Cook. The plugins are meant to be used for static analysis of the
kernel code. Two plugins are provided already.
- Reduction of the gcc commandline by Arnd Bergmann.
- IS_ENABLED / IS_REACHABLE macro enhancements by Masahiro Yamada
- bin2c fix by Michael Tautschnig
- setlocalversion fix by Wolfram Sang
Thanks,
Michal
The following changes since commit 1a695a905c18548062509178b98bc91e67510864:
Linux 4.7-rc1 (2016-05-29 09:29:24 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild.git kbuild
for you to fetch changes up to a519167e753e6a89476115375b65a7eb6ec485b3:
gcc-plugins: disable under COMPILE_TEST (2016-07-27 00:08:54 +0200)
----------------------------------------------------------------
Arnd Bergmann (6):
Kbuild: don't add ../../ to include path
Kbuild: avoid duplicate include path
Kbuild: always prefix objtree in LINUXINCLUDE
Kbuild: arch: look for generated headers in obtree
Kbuild: don't add obj tree in additional includes
kbuild: make samples depend on headers_install
Emese Revfy (4):
Shared library support
GCC plugin infrastructure
Add Cyclomatic complexity GCC plugin
Add sancov plugin
Kees Cook (2):
kbuild: Abort build on bad stack protector flag
gcc-plugins: disable under COMPILE_TEST
Masahiro Yamada (5):
kconfig.h: use __is_defined() to check if MODULE is defined
export.h: use __is_defined() to check if __KSYM_* is defined
kconfig.h: use already defined macros for IS_REACHABLE() define
kconfig.h: allow to use IS_{ENABLE,REACHABLE} in macro expansion
vmlinux.lds.h: replace config_enabled() with IS_ENABLED()
Tautschnig, Michael (1):
scripts: Fix size mismatch of kexec_purgatory_size
Wolfram Sang (1):
kbuild: setlocalversion: print error to STDERR
.gitignore | 1 +
Documentation/dontdiff | 1 +
Documentation/gcc-plugins.txt | 87 +++
MAINTAINERS | 9 +
Makefile | 106 +--
arch/Kconfig | 37 +
arch/alpha/boot/Makefile | 2 +-
arch/arm/Kconfig | 1 +
arch/arm64/Kconfig | 1 +
arch/powerpc/boot/Makefile | 2 +-
arch/powerpc/kvm/Makefile | 2 +-
arch/s390/boot/compressed/Makefile | 4 +-
arch/um/Kconfig.common | 1 +
arch/um/Makefile | 4 +-
arch/x86/Kconfig | 1 +
arch/x86/Makefile | 8 -
arch/x86/boot/Makefile | 2 +-
arch/x86/entry/vdso/Makefile | 3 +-
arch/x86/purgatory/Makefile | 2 +
arch/x86/realmode/rm/Makefile | 2 +-
include/asm-generic/vmlinux.lds.h | 2 +-
include/linux/export.h | 2 +-
include/linux/kconfig.h | 31 +-
lib/Kconfig.debug | 2 +
scripts/Kbuild.include | 2 +-
scripts/Makefile | 2 +-
scripts/Makefile.build | 2 +-
scripts/Makefile.clean | 4 +-
scripts/Makefile.gcc-plugins | 43 ++
scripts/Makefile.host | 55 +-
scripts/Makefile.lib | 7 +-
scripts/basic/bin2c.c | 3 +-
scripts/gcc-plugin.sh | 51 ++
scripts/gcc-plugins/Makefile | 27 +
scripts/gcc-plugins/cyc_complexity_plugin.c | 73 ++
scripts/gcc-plugins/gcc-common.h | 830 +++++++++++++++++++++
scripts/gcc-plugins/gcc-generate-gimple-pass.h | 175 +++++
scripts/gcc-plugins/gcc-generate-ipa-pass.h | 289 +++++++
scripts/gcc-plugins/gcc-generate-rtl-pass.h | 175 +++++
scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | 175 +++++
scripts/gcc-plugins/sancov_plugin.c | 144 ++++
scripts/link-vmlinux.sh | 2 +-
scripts/package/builddeb | 1 +
scripts/setlocalversion | 2 +-
44 files changed, 2290 insertions(+), 85 deletions(-)
create mode 100644 Documentation/gcc-plugins.txt
create mode 100644 scripts/Makefile.gcc-plugins
create mode 100755 scripts/gcc-plugin.sh
create mode 100644 scripts/gcc-plugins/Makefile
create mode 100644 scripts/gcc-plugins/cyc_complexity_plugin.c
create mode 100644 scripts/gcc-plugins/gcc-common.h
create mode 100644 scripts/gcc-plugins/gcc-generate-gimple-pass.h
create mode 100644 scripts/gcc-plugins/gcc-generate-ipa-pass.h
create mode 100644 scripts/gcc-plugins/gcc-generate-rtl-pass.h
create mode 100644 scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
create mode 100644 scripts/gcc-plugins/sancov_plugin.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] kbuild changes for v4.8-rc1
2016-08-02 19:00 [GIT PULL] kbuild changes for v4.8-rc1 Michal Marek
@ 2016-08-02 20:41 ` Linus Torvalds
2016-08-02 20:55 ` Kees Cook
0 siblings, 1 reply; 6+ messages in thread
From: Linus Torvalds @ 2016-08-02 20:41 UTC (permalink / raw)
To: Michal Marek
Cc: Arnd Bergmann, Kees Cook, Emese Revfy, tautschn, Wolfram Sang,
Masahiro Yamada, Linux Kbuild mailing list,
Linux Kernel Mailing List
On Tue, Aug 2, 2016 at 3:00 PM, Michal Marek <mmarek@suse.com> wrote:
>
> please merge these kbuild changes for v4.8-rc1:
Merged. However, there were two slightly different versions of this
commit in my tree:
> Kees Cook (2):
> kbuild: Abort build on bad stack protector flag
differing by $ARCH vs $SRCARCH. There were a few other changes in that
area too, so I'd really like you to verify the end result.
(I haven't pushed out yet, it's still doing the test builds, so if you
don't see it yet, wait a bit and the merge should be out soon. Unless
the test build shows problems, in which case it might be longer ;^)
Linus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] kbuild changes for v4.8-rc1
2016-08-02 20:41 ` Linus Torvalds
@ 2016-08-02 20:55 ` Kees Cook
2016-08-02 20:59 ` Michal Marek
2016-08-02 21:00 ` Linus Torvalds
0 siblings, 2 replies; 6+ messages in thread
From: Kees Cook @ 2016-08-02 20:55 UTC (permalink / raw)
To: Linus Torvalds
Cc: Michal Marek, Arnd Bergmann, Emese Revfy, tautschn, Wolfram Sang,
Masahiro Yamada, Linux Kbuild mailing list,
Linux Kernel Mailing List
On Tue, Aug 2, 2016 at 1:41 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> On Tue, Aug 2, 2016 at 3:00 PM, Michal Marek <mmarek@suse.com> wrote:
>>
>> please merge these kbuild changes for v4.8-rc1:
>
> Merged. However, there were two slightly different versions of this
> commit in my tree:
>
>> Kees Cook (2):
>> kbuild: Abort build on bad stack protector flag
>
> differing by $ARCH vs $SRCARCH. There were a few other changes in that
> area too, so I'd really like you to verify the end result.
The version with $SRCARCH is the correct version. (I think akpm may
have picked up the v1, but Michal requested some changes that resulted
in the v2 with the $SRCARCH correction.)
--
Kees Cook
Chrome OS & Brillo Security
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] kbuild changes for v4.8-rc1
2016-08-02 20:55 ` Kees Cook
@ 2016-08-02 20:59 ` Michal Marek
2016-08-02 21:00 ` Linus Torvalds
1 sibling, 0 replies; 6+ messages in thread
From: Michal Marek @ 2016-08-02 20:59 UTC (permalink / raw)
To: Kees Cook, Linus Torvalds
Cc: Arnd Bergmann, Emese Revfy, tautschn, Wolfram Sang,
Masahiro Yamada, Linux Kbuild mailing list,
Linux Kernel Mailing List
Dne 2.8.2016 v 22:55 Kees Cook napsal(a):
> On Tue, Aug 2, 2016 at 1:41 PM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>> On Tue, Aug 2, 2016 at 3:00 PM, Michal Marek <mmarek@suse.com> wrote:
>>>
>>> please merge these kbuild changes for v4.8-rc1:
>>
>> Merged. However, there were two slightly different versions of this
>> commit in my tree:
>>
>>> Kees Cook (2):
>>> kbuild: Abort build on bad stack protector flag
>>
>> differing by $ARCH vs $SRCARCH. There were a few other changes in that
>> area too, so I'd really like you to verify the end result.
>
> The version with $SRCARCH is the correct version. (I think akpm may
> have picked up the v1, but Michal requested some changes that resulted
> in the v2 with the $SRCARCH correction.)
Right, it should be $SRCARCH. But if you accidentally pushed the wrong
version, sky is not going to fall. It's just that make
ARCH=(i386|x86_64|um) will not do the compiler check, until a fix patch
is merged.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] kbuild changes for v4.8-rc1
2016-08-02 20:55 ` Kees Cook
2016-08-02 20:59 ` Michal Marek
@ 2016-08-02 21:00 ` Linus Torvalds
2016-08-02 22:11 ` Kees Cook
1 sibling, 1 reply; 6+ messages in thread
From: Linus Torvalds @ 2016-08-02 21:00 UTC (permalink / raw)
To: Kees Cook
Cc: Michal Marek, Arnd Bergmann, Emese Revfy, tautschn, Wolfram Sang,
Masahiro Yamada, Linux Kbuild mailing list,
Linux Kernel Mailing List
On Tue, Aug 2, 2016 at 4:55 PM, Kees Cook <keescook@chromium.org> wrote:
>
> The version with $SRCARCH is the correct version. (I think akpm may
> have picked up the v1, but Michal requested some changes that resulted
> in the v2 with the $SRCARCH correction.)
That's what I assumed, and that's the version I picked. There were
some other confusing changes in that area though, so I'd like the
involved people to give my resolution a second look, just to make sure
it's fine.
Linus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] kbuild changes for v4.8-rc1
2016-08-02 21:00 ` Linus Torvalds
@ 2016-08-02 22:11 ` Kees Cook
0 siblings, 0 replies; 6+ messages in thread
From: Kees Cook @ 2016-08-02 22:11 UTC (permalink / raw)
To: Linus Torvalds
Cc: Michal Marek, Arnd Bergmann, Emese Revfy, tautschn, Wolfram Sang,
Masahiro Yamada, Linux Kbuild mailing list,
Linux Kernel Mailing List
On Tue, Aug 2, 2016 at 2:00 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> On Tue, Aug 2, 2016 at 4:55 PM, Kees Cook <keescook@chromium.org> wrote:
>>
>> The version with $SRCARCH is the correct version. (I think akpm may
>> have picked up the v1, but Michal requested some changes that resulted
>> in the v2 with the $SRCARCH correction.)
>
> That's what I assumed, and that's the version I picked. There were
> some other confusing changes in that area though, so I'd like the
> involved people to give my resolution a second look, just to make sure
> it's fine.
Awesome, yeah, it looks good and tests out correctly for me.
Thanks!
-Kees
--
Kees Cook
Chrome OS & Brillo Security
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-08-02 22:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 19:00 [GIT PULL] kbuild changes for v4.8-rc1 Michal Marek
2016-08-02 20:41 ` Linus Torvalds
2016-08-02 20:55 ` Kees Cook
2016-08-02 20:59 ` Michal Marek
2016-08-02 21:00 ` Linus Torvalds
2016-08-02 22:11 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox