linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] MIPS: Remove get_fs/set_fs
@ 2021-03-31 11:55 Thomas Bogendoerfer
  2021-03-31 11:55 ` [PATCH v2 1/4] MIPS: kernel: Remove not needed set_fs calls Thomas Bogendoerfer
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Thomas Bogendoerfer @ 2021-03-31 11:55 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar, linux-mips, linux-kernel; +Cc: hch

This series replaces get_fs/set_fs and removes it from MIPS arch code.

Changes in v2:
- added copy_from_kernel_nofault_allowed() for !EVA to restrict
  access of __get/__put_kernel_nofault
- replaced __get_data macro by helper functions
- removed leftover set_fs calls in ftrace.c
- further cleanup uaccess.h

Thomas Bogendoerfer (4):
  MIPS: kernel: Remove not needed set_fs calls
  MIPS: uaccess: Added __get/__put_kernel_nofault
  MIPS: uaccess: Remove get_fs/set_fs call sites
  MIPS: Remove get_fs/set_fs

 arch/mips/Kconfig                   |   1 -
 arch/mips/include/asm/processor.h   |   4 -
 arch/mips/include/asm/thread_info.h |   6 -
 arch/mips/include/asm/uaccess.h     | 436 +++++++++++-----------------
 arch/mips/kernel/access-helper.h    |  53 ++++
 arch/mips/kernel/asm-offsets.c      |   1 -
 arch/mips/kernel/ftrace.c           |   8 -
 arch/mips/kernel/process.c          |   2 -
 arch/mips/kernel/scall32-o32.S      |   4 +-
 arch/mips/kernel/traps.c            | 105 +++----
 arch/mips/kernel/unaligned.c        | 199 +++++--------
 arch/mips/lib/memcpy.S              |  28 +-
 arch/mips/lib/memset.S              |   3 -
 arch/mips/lib/strncpy_user.S        |  48 +--
 arch/mips/lib/strnlen_user.S        |  44 +--
 arch/mips/mm/Makefile               |   4 +
 arch/mips/mm/maccess.c              |  10 +
 17 files changed, 392 insertions(+), 564 deletions(-)
 create mode 100644 arch/mips/kernel/access-helper.h
 create mode 100644 arch/mips/mm/maccess.c

-- 
2.29.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-04-01 18:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 11:55 [PATCH v2 0/4] MIPS: Remove get_fs/set_fs Thomas Bogendoerfer
2021-03-31 11:55 ` [PATCH v2 1/4] MIPS: kernel: Remove not needed set_fs calls Thomas Bogendoerfer
2021-04-01  6:22   ` Christoph Hellwig
2021-03-31 11:55 ` [PATCH v2 2/4] MIPS: uaccess: Added __get/__put_kernel_nofault Thomas Bogendoerfer
2021-04-01  6:27   ` Christoph Hellwig
2021-03-31 11:56 ` [PATCH v2 3/4] MIPS: uaccess: Remove get_fs/set_fs call sites Thomas Bogendoerfer
2021-04-01  6:30   ` Christoph Hellwig
2021-04-01 12:51     ` Thomas Bogendoerfer
2021-03-31 11:56 ` [PATCH v2 4/4] MIPS: Remove get_fs/set_fs Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).