18 Mar, 2018

1 commit


11 Mar, 2018

1 commit


03 Mar, 2018

1 commit


28 Feb, 2018

1 commit


25 Feb, 2018

2 commits

  • Greg Kroah-Hartman
     
  • commit e572d0887137acfc53f18175522964ec19d88175 upstream.

    When doing a kernel build with 'make -s', everything is silenced except
    the objtool build. That's because the tools tree support for silent
    builds is some combination of missing and broken.

    Three changes are needed to fix it:

    - Makefile: propagate '-s' to the sub-make's MAKEFLAGS variable so the
    tools Makefiles can see it.

    - tools/scripts/Makefile.include: fix the tools Makefiles' ability to
    recognize '-s'. The MAKE_VERSION and MAKEFLAGS checks are copied from
    the top-level Makefile. This silences the "DESCEND objtool" message.

    - tools/build/Makefile.build: add support to the tools Build files for
    recognizing '-s'. Again the MAKE_VERSION and MAKEFLAGS checks are
    copied from the top-level Makefile. This silences all the object
    compile/link messages.

    Reported-and-Tested-by: Peter Zijlstra
    Signed-off-by: Josh Poimboeuf
    Cc: Jiri Olsa
    Cc: Michal Marek
    Link: http://lkml.kernel.org/r/e8967562ef640c3ae9a76da4ae0f4e47df737c34.1484799200.git.jpoimboe@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Greg Kroah-Hartman

    Josh Poimboeuf
     

22 Feb, 2018

1 commit


17 Feb, 2018

1 commit


13 Feb, 2018

1 commit


04 Feb, 2018

1 commit


31 Jan, 2018

1 commit


24 Jan, 2018

1 commit


17 Jan, 2018

1 commit


10 Jan, 2018

1 commit


05 Jan, 2018

1 commit


03 Jan, 2018

2 commits

  • Greg Kroah-Hartman
     
  • commit 3ce120b16cc548472f80cf8644f90eda958cf1b6 upstream.

    It appears that hardened gentoo enables "-fstack-check" by default for
    gcc.

    That doesn't work _at_all_ for the kernel, because the kernel stack
    doesn't act like a user stack at all: it's much smaller, and it doesn't
    auto-expand on use. So the extra "probe one page below the stack" code
    generated by -fstack-check just breaks the kernel in horrible ways,
    causing infinite double faults etc.

    [ I have to say, that the particular code gcc generates looks very
    stupid even for user space where it works, but that's a separate
    issue. ]

    Reported-and-tested-by: Alexander Tsoy
    Reported-and-tested-by: Toralf Förster
    Cc: Dave Hansen
    Cc: Jiri Kosina
    Cc: Andy Lutomirski
    Signed-off-by: Linus Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Linus Torvalds
     

30 Dec, 2017

1 commit


25 Dec, 2017

1 commit


20 Dec, 2017

1 commit


16 Dec, 2017

2 commits

  • Greg Kroah-Hartman
     
  • [ Upstream commit 433dc2ebe7d17dd21cba7ad5c362d37323592236 ]

    Some $(call cc-option,...) are invoked very early, even before
    KBUILD_CFLAGS, etc. are initialized.

    The returned string from $(call cc-option,...) depends on
    KBUILD_CPPFLAGS, KBUILD_CFLAGS, and GCC_PLUGINS_CFLAGS.

    Since they are exported, they are not empty when the top Makefile
    is recursively invoked.

    The recursion occurs in several places. For example, the top
    Makefile invokes itself for silentoldconfig. "make tinyconfig",
    "make rpm-pkg" are the cases, too.

    In those cases, the second call of cc-option from the same line
    runs a different shell command due to non-pristine KBUILD_CFLAGS.

    To get the same result all the time, KBUILD_* and GCC_PLUGINS_CFLAGS
    must be initialized before any call of cc-option. This avoids
    garbage data in the .cache.mk file.

    Move all calls of cc-option below the config targets because target
    compiler flags are unnecessary for Kconfig.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Douglas Anderson
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    Masahiro Yamada
     

14 Dec, 2017

1 commit


10 Dec, 2017

1 commit


05 Dec, 2017

1 commit


30 Nov, 2017

1 commit


24 Nov, 2017

1 commit


21 Nov, 2017

1 commit


18 Nov, 2017

1 commit


15 Nov, 2017

1 commit


08 Nov, 2017

1 commit


02 Nov, 2017

1 commit


27 Oct, 2017

1 commit


21 Oct, 2017

1 commit


18 Oct, 2017

1 commit


13 Oct, 2017

1 commit


12 Oct, 2017

1 commit


08 Oct, 2017

1 commit


05 Oct, 2017

1 commit


27 Sep, 2017

1 commit