[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1633964380.git.christophe.leroy@csgroup.eu>
Date: Mon, 11 Oct 2021 17:25:27 +0200
From: Christophe Leroy <christophe.leroy@...roup.eu>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>,
Andrew Morton <akpm@...ux-foundation.org>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
Helge Deller <deller@....de>, Arnd Bergmann <arnd@...db.de>,
Kees Cook <keescook@...omium.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Christophe Leroy <christophe.leroy@...roup.eu>,
linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-ia64@...r.kernel.org, linux-parisc@...r.kernel.org,
linux-arch@...r.kernel.org, linux-mm@...ck.org
Subject: [PATCH v1 00/10] Fix LKDTM for PPC64/IA64/PARISC
PPC64/IA64/PARISC have function descriptors. LKDTM doesn't work
on those three architectures because LKDTM messes up function
descriptors with functions.
This series does some cleanup in the three architectures and
refactors function descriptors so that it can then easily use it
in a generic way in LKDTM.
Patch 6 is not absolutely necessary but it is a good trivial cleanup.
Christophe Leroy (10):
powerpc: Move 'struct ppc64_opd_entry' back into asm/elf.h
powerpc: Rename 'funcaddr' to 'addr' in 'struct ppc64_opd_entry'
ia64: Rename 'ip' to 'addr' in 'struct fdesc'
asm-generic: Use HAVE_DEREFERENCE_FUNCTION_DESCRIPTOR to define
associated stubs
asm-generic: Define 'funct_descr_t' to commonly describe function
descriptors
asm-generic: Refactor dereference_[kernel]_function_descriptor()
lkdtm: Force do_nothing() out of line
lkdtm: Really write into kernel text in WRITE_KERN
lkdtm: Fix lkdtm_EXEC_RODATA()
lkdtm: Fix execute_[user]_location()
arch/ia64/include/asm/elf.h | 2 +-
arch/ia64/include/asm/sections.h | 24 ++---------
arch/ia64/kernel/module.c | 6 +--
arch/parisc/include/asm/sections.h | 16 +++----
arch/parisc/kernel/process.c | 21 ---------
arch/powerpc/include/asm/elf.h | 7 +++
arch/powerpc/include/asm/sections.h | 30 +++----------
arch/powerpc/include/uapi/asm/elf.h | 8 ----
arch/powerpc/kernel/module_64.c | 6 +--
drivers/misc/lkdtm/perms.c | 66 +++++++++++++++++++++++------
include/asm-generic/sections.h | 24 ++++++++++-
11 files changed, 102 insertions(+), 108 deletions(-)
--
2.31.1
Powered by blists - more mailing lists