Kees Cook
c9174047b4
vmlinux.lds.h: Replace RW_DATA_SECTION with RW_DATA
...
Rename RW_DATA_SECTION to RW_DATA. (Calling this a "section" is a lie,
since it's multiple sections and section flags cannot be applied to
the macro.)
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Borislav Petkov <bp@suse.de >
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com > # s390
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org > # m68k
Cc: Andy Lutomirski <luto@kernel.org >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: linux-alpha@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-c6x-dev@linux-c6x.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Rick Edgecombe <rick.p.edgecombe@intel.com >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Will Deacon <will@kernel.org >
Cc: x86-ml <x86@kernel.org >
Cc: Yoshinori Sato <ysato@users.sourceforge.jp >
Link: https://lkml.kernel.org/r/20191029211351.13243-14-keescook@chromium.org
2019-11-04 15:57:41 +01:00
Kees Cook
93240b3279
vmlinux.lds.h: Replace RO_DATA_SECTION with RO_DATA
...
Finish renaming RO_DATA_SECTION to RO_DATA. (Calling this a "section"
is a lie, since it's multiple sections and section flags cannot be
applied to the macro.)
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Borislav Petkov <bp@suse.de >
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com > # s390
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org > # m68k
Cc: Andy Lutomirski <luto@kernel.org >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: linux-alpha@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-c6x-dev@linux-c6x.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Rick Edgecombe <rick.p.edgecombe@intel.com >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Will Deacon <will@kernel.org >
Cc: x86-ml <x86@kernel.org >
Cc: Yoshinori Sato <ysato@users.sourceforge.jp >
Link: https://lkml.kernel.org/r/20191029211351.13243-13-keescook@chromium.org
2019-11-04 15:56:16 +01:00
Kees Cook
eaf937075c
vmlinux.lds.h: Move NOTES into RO_DATA
...
The .notes section should be non-executable read-only data. As such,
move it to the RO_DATA macro instead of being per-architecture defined.
Signed-off-by: Kees Cook <keescook@chromium.org >
Signed-off-by: Borislav Petkov <bp@suse.de >
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com > # s390
Cc: Andy Lutomirski <luto@kernel.org >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: linux-alpha@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-c6x-dev@linux-c6x.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Rick Edgecombe <rick.p.edgecombe@intel.com >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Will Deacon <will@kernel.org >
Cc: x86-ml <x86@kernel.org >
Cc: Yoshinori Sato <ysato@users.sourceforge.jp >
Link: https://lkml.kernel.org/r/20191029211351.13243-11-keescook@chromium.org
2019-11-04 15:34:41 +01:00
Thomas Gleixner
d2912cb15b
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
...
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Enrico Weigelt <info@metux.net >
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org >
Reviewed-by: Allison Randal <allison@lohutok.net >
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-06-19 17:09:55 +02:00
Chris Metcalf
6727ad9e20
nmi_backtrace: generate one-line reports for idle cpus
...
When doing an nmi backtrace of many cores, most of which are idle, the
output is a little overwhelming and very uninformative. Suppress
messages for cpus that are idling when they are interrupted and just
emit one line, "NMI backtrace for N skipped: idling at pc 0xNNN".
We do this by grouping all the cpuidle code together into a new
.cpuidle.text section, and then checking the address of the interrupted
PC to see if it lies within that section.
This commit suitably tags x86 and tile idle routines, and only adds in
the minimal framework for other architectures.
Link: http://lkml.kernel.org/r/1472487169-14923-5-git-send-email-cmetcalf@mellanox.com
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com >
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Tested-by: Daniel Thompson <daniel.thompson@linaro.org > [arm]
Tested-by: Petr Mladek <pmladek@suse.com >
Cc: Aaron Tomlin <atomlin@redhat.com >
Cc: Peter Zijlstra (Intel) <peterz@infradead.org >
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@elte.hu >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-10-07 18:46:30 -07:00
Guan Xuetao
42733b3c48
unicore32: change PERCPU to PERCPU_SECTION
...
The patch changes PERCPU to PERCPU_SECTION
see commit from Tejun Heo <0415b00d175e0d8945e6785aad21b5f157976ce0>
percpu: Always align percpu output section to PAGE_SIZE
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Acked-by: Tejun Heo <tj@kernel.org >
2011-06-09 16:27:46 +08:00
Guan Xuetao
df93878c96
unicore32 ldscript fix: add cacheline parameter to PERCPU() macro
...
Also, adjust cacheline parameter of RW_DATA_SECTION and EXCEPTION_TABLE
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Acked-by: Arnd Bergmann <arnd@arndb.de >
2011-04-02 16:14:01 +08:00
GuanXuetao
790edb61c0
unicore32 core architecture: build infrastructure
...
This patch implements build infrastructure.
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Reviewed-by: Arnd Bergmann <arnd@arndb.de >
2011-03-17 09:19:05 +08:00