Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1455412 > unrolled thread

[GIT PULL] kbuild changes for v4.8-rc1

Started byMichal Marek <mmarek@suse.com>
First post2016-08-02 21:10 +0200
Last post2016-08-02 23:30 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [GIT PULL] kbuild changes for v4.8-rc1 Michal Marek <mmarek@suse.com> - 2016-08-02 21:10 +0200
    Re: [GIT PULL] kbuild changes for v4.8-rc1 Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-02 22:50 +0200
      Re: [GIT PULL] kbuild changes for v4.8-rc1 Michal Marek <mmarek@suse.com> - 2016-08-02 23:00 +0200
      Re: [GIT PULL] kbuild changes for v4.8-rc1 Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-02 23:10 +0200
        Re: [GIT PULL] kbuild changes for v4.8-rc1 Kees Cook <keescook@chromium.org> - 2016-08-03 00:20 +0200
      Re: [GIT PULL] kbuild changes for v4.8-rc1 Kees Cook <keescook@chromium.org> - 2016-08-02 23:30 +0200

#1455412 — [GIT PULL] kbuild changes for v4.8-rc1

FromMichal Marek <mmarek@suse.com>
Date2016-08-02 21:10 +0200
Subject[GIT PULL] kbuild changes for v4.8-rc1
Message-ID<s1NeG-gB-49@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1455460

FromLinus Torvalds <torvalds@linux-foundation.org>
Date2016-08-02 22:50 +0200
Message-ID<s1ONs-19V-1@gated-at.bofh.it>
In reply to#1455412
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

[toc] | [prev] | [next] | [standalone]


#1455472

FromMichal Marek <mmarek@suse.com>
Date2016-08-02 23:00 +0200
Message-ID<s1OX7-1dt-25@gated-at.bofh.it>
In reply to#1455460
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

[toc] | [prev] | [next] | [standalone]


#1455474

FromLinus Torvalds <torvalds@linux-foundation.org>
Date2016-08-02 23:10 +0200
Message-ID<s1P6N-1xu-3@gated-at.bofh.it>
In reply to#1455460
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

[toc] | [prev] | [next] | [standalone]


#1455504

FromKees Cook <keescook@chromium.org>
Date2016-08-03 00:20 +0200
Message-ID<s1Qcy-2bw-41@gated-at.bofh.it>
In reply to#1455474
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

[toc] | [prev] | [next] | [standalone]


#1455485

FromKees Cook <keescook@chromium.org>
Date2016-08-02 23:30 +0200
Message-ID<s1OX7-1dt-27@gated-at.bofh.it>
In reply to#1455460
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web