Skip to contentSkip to conversation

kbuild changes for v4.8-rc1

GIT PULL Michal Marek 3 participants 6 messages Aug 2, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 2 lines · Michal Marek

please merge these kbuild changes for v4.8-rc1:

Merged. However, there were two slightly different versions of this commit in my tree:

Quoted 2 lines

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

#3 lore raw
In reply to Kees Cook

Dne 2.8.2016 v 22:55 Kees Cook napsal(a):

Quoted 12 lines
Quoted 10 lines · Linus Torvalds
Quoted 2 lines · Michal Marek

please merge these kbuild changes for v4.8-rc1:

Merged. However, there were two slightly different versions of this commit in my tree:

Quoted 2 lines

Kees Cook (2):
kbuild: Abort build on bad stack protector flag

Quoted 6 lines
Quoted 2 lines

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

#4 lore raw
In reply to Kees Cook
Quoted 4 lines · Kees Cook

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

#2 lore raw
In reply to Linus Torvalds
Quoted 4 lines · Linus Torvalds
Quoted 2 lines · Michal Marek

please merge these kbuild changes for v4.8-rc1:

Quoted 8 lines

Merged. However, there were two slightly different versions of this commit in my tree:

Quoted 2 lines

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.)

Signature · 2 lines
Kees Cook
Chrome OS & Brillo Security
#5 lore raw
In reply to Linus Torvalds
Quoted 10 lines · Linus Torvalds
Quoted 4 lines · Kees Cook

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

Signature · 2 lines
Kees Cook
Chrome OS & Brillo Security