1208 Commits
Author SHA1 Message Date
Greg Kroah-Hartman c5ae3a6aa1 Linux 4.4.111 2018-01-10 09:27:15 +01:00
Greg Kroah-Hartman b3e3db15b4 Linux 4.4.110 2018-01-05 15:44:27 +01:00
Greg Kroah-Hartman e68d6189c7 Linux 4.4.109 2018-01-02 20:33:28 +01:00
Linus Torvalds 1cd09d4b38 kbuild: add '-fno-stack-check' to kernel build options
commit 3ce120b16c 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 <alexander@tsoy.me>
Reported-and-tested-by: Toralf Förster <toralf.foerster@gmx.de>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-02 20:33:24 +01:00
Greg Kroah-Hartman 03028e068a Linux 4.4.108 2017-12-25 14:22:16 +01:00
Greg Kroah-Hartman 96c00ece76 Linux 4.4.107 2017-12-20 10:05:01 +01:00
Greg Kroah-Hartman 4231b6a98f Linux 4.4.106 2017-12-16 10:33:57 +01:00
Greg Kroah-Hartman 69b0bf95a5 Linux 4.4.105 2017-12-09 18:42:44 +01:00
Greg Kroah-Hartman bd37993918 Linux 4.4.104 2017-12-05 11:22:52 +01:00
Greg Kroah-Hartman 08c15ad2e6 Linux 4.4.103 2017-11-30 08:37:28 +00:00
Greg Kroah-Hartman 29ffb9c1fb Linux 4.4.102 2017-11-24 11:26:29 +01:00
Greg Kroah-Hartman 5baf0fb260 Linux 4.4.101 2017-11-24 08:32:25 +01:00
Greg Kroah-Hartman 26d6298789 Linux 4.4.100 2017-11-21 09:21:23 +01:00
Greg Kroah-Hartman 0cbac004e6 Linux 4.4.99 2017-11-18 11:11:07 +01:00
Greg Kroah-Hartman c4e3d53bd9 Linux 4.4.98 2017-11-15 17:13:14 +01:00
Greg Kroah-Hartman c54d0707aa Linux 4.4.97 2017-11-08 10:06:31 +01:00
Greg Kroah-Hartman 27e68f1bca Linux 4.4.96 2017-11-02 09:40:50 +01:00
Greg Kroah-Hartman 9b36699635 Linux 4.4.95 2017-10-27 10:23:18 +02:00
Greg Kroah-Hartman af9a9a7bed Linux 4.4.94 2017-10-21 17:09:07 +02:00
Greg Kroah-Hartman e1fe381311 Linux 4.4.93 2017-10-18 09:20:43 +02:00
Greg Kroah-Hartman 69f53f5d37 Linux 4.4.92 2017-10-12 11:27:40 +02:00
Greg Kroah-Hartman c030c36a88 Linux 4.4.91 2017-10-08 10:24:24 +02:00
Greg Kroah-Hartman 37c2d0d3e8 Linux 4.4.90 2017-10-05 09:41:59 +02:00
Greg Kroah-Hartman 10def3a677 Linux 4.4.89 2017-09-27 11:00:37 +02:00
Greg Kroah-Hartman b52c9082f2 Linux 4.4.88 2017-09-13 14:10:05 -07:00
Greg Kroah-Hartman 573b59e17e Linux 4.4.87 2017-09-07 08:34:25 +02:00
Greg Kroah-Hartman cd99a4f3f4 Linux 4.4.86 2017-09-02 07:07:05 +02:00
Greg Kroah-Hartman 717bd21f81 Linux 4.4.85 2017-08-30 10:19:42 +02:00
Greg Kroah-Hartman 982ce2aa79 Linux 4.4.84 2017-08-24 17:02:58 -07:00
Greg Kroah-Hartman 425fdd287e Linux 4.4.83 2017-08-16 13:40:42 -07:00
Greg Kroah-Hartman 4e2e415f4c Linux 4.4.82 2017-08-12 19:29:34 -07:00
Greg Kroah-Hartman 2ab639c7e2 Linux 4.4.81 2017-08-11 09:22:51 -07:00
Greg Kroah-Hartman 09e69607e4 Linux 4.4.80 2017-08-06 19:20:47 -07:00
Greg Kroah-Hartman e058f63485 Linux 4.4.79 2017-07-27 15:06:26 -07:00
Linus Torvalds 8386358980 disable new gcc-7.1.1 warnings for now
commit bd664f6b3e upstream.

I made the mistake of upgrading my desktop to the new Fedora 26 that
comes with gcc-7.1.1.

There's nothing wrong per se that I've noticed, but I now have 1500
lines of warnings, mostly from the new format-truncation warning
triggering all over the tree.

We use 'snprintf()' and friends in a lot of places, and often know that
the numbers are fairly small (ie a controller index or similar), but gcc
doesn't know that, and sees an 'int', and thinks that it could be some
huge number.  And then complains when our buffers are not able to fit
the name for the ten millionth controller.

These warnings aren't necessarily bad per se, and we probably want to
look through them subsystem by subsystem, but at least during the merge
window they just mean that I can't even see if somebody is introducing
any *real* problems when I pull.

So warnings disabled for now.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-27 15:06:02 -07:00
Greg Kroah-Hartman ece78cd779 Linux 4.4.78 2017-07-21 07:45:10 +02:00
Greg Kroah-Hartman 9e0499d7d3 Linux 4.4.77 2017-07-15 11:58:03 +02:00
Greg Kroah-Hartman 4282d39575 Linux 4.4.76 2017-07-05 14:39:21 +02:00
Gleb Fotengauer-Malinovskiy 736b342cc9 jump label: fix passing kbuild_cflags when checking for asm goto support
commit 7292ae3d5a upstream.

The latest change of asm goto support check added passing of KBUILD_CFLAGS
to compiler.  When these flags reference gcc plugins that are not built yet,
the check fails.

When one runs "make bzImage" followed by "make modules", the kernel is always
built with HAVE_JUMP_LABEL disabled, while the modules are built depending on
CONFIG_JUMP_LABEL.  If HAVE_JUMP_LABEL macro happens to be different, modules
are built with undefined references, e.g.:

ERROR: "static_key_slow_inc" [net/netfilter/xt_TEE.ko] undefined!
ERROR: "static_key_slow_dec" [net/netfilter/xt_TEE.ko] undefined!
ERROR: "static_key_slow_dec" [net/netfilter/nft_meta.ko] undefined!
ERROR: "static_key_slow_inc" [net/netfilter/nft_meta.ko] undefined!
ERROR: "nf_hooks_needed" [net/netfilter/ipvs/ip_vs.ko] undefined!
ERROR: "nf_hooks_needed" [net/ipv6/ipv6.ko] undefined!
ERROR: "static_key_count" [net/ipv6/ipv6.ko] undefined!
ERROR: "static_key_slow_inc" [net/ipv6/ipv6.ko] undefined!

This change moves the check before all these references are added
to KBUILD_CFLAGS.  This is correct because subsequent KBUILD_CFLAGS
modifications are not relevant to this check.

Reported-by: Anton V. Boyarshinov <boyarsh@altlinux.org>
Fixes: 35f860f9ba ("jump label: pass kbuild_cflags when checking for asm goto support")
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: David Lin <dtwlin@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-05 14:37:21 +02:00
Greg Kroah-Hartman 6ee496d721 Linux 4.4.75 2017-06-29 12:49:08 +02:00
Greg Kroah-Hartman 22da7ca81a Linux 4.4.74 2017-06-26 07:13:24 +02:00
Greg Kroah-Hartman 1bd30958ec Linux 4.4.73 2017-06-17 06:40:54 +02:00
David Lin 1948d0afe4 jump label: pass kbuild_cflags when checking for asm goto support
[ Upstream commit 35f860f9ba ]

Some versions of ARM GCC compiler such as Android toolchain throws in a
'-fpic' flag by default.  This causes the gcc-goto check script to fail
although some config would have '-fno-pic' flag in the KBUILD_CFLAGS.

This patch passes the KBUILD_CFLAGS to the check script so that the
script does not rely on the default config from different compilers.

Link: http://lkml.kernel.org/r/20170120234329.78868-1-dtwlin@google.com
Signed-off-by: David Lin <dtwlin@google.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Michal Marek <mmarek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-17 06:39:36 +02:00
Greg Kroah-Hartman 30c9187fa8 Linux 4.4.72 2017-06-14 13:43:38 +02:00
Greg Kroah-Hartman 4bbbc76964 Linux 4.4.71 2017-06-07 12:06:14 +02:00
Greg Kroah-Hartman b409ba3b05 Linux 4.4.70 2017-05-25 14:50:50 +02:00
Greg Kroah-Hartman bb56ca2913 Linux 4.4.69 2017-05-20 14:27:22 +02:00
Greg Kroah-Hartman be90e26014 Linux 4.4.68 2017-05-14 13:33:15 +02:00
Greg Kroah-Hartman dec1dc2a0e Linux 4.4.67 2017-05-08 07:46:17 +02:00
Greg Kroah-Hartman 0c49a2c16c Linux 4.4.66 2017-05-02 21:20:09 -07:00