linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] fs: deduplicate compat logic
@ 2021-01-12  0:30 Willem de Bruijn
  2021-01-12  0:30 ` [PATCH 1/6] selftests/filesystems: add initial select and poll selftest Willem de Bruijn
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Willem de Bruijn @ 2021-01-12  0:30 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux-kernel, viro, akpm, willy, arnd, Willem de Bruijn

From: Willem de Bruijn <willemb@google.com>

Use in_compat_syscall() to differentiate compat handling exactly
where needed, including in nested function calls. Then remove
duplicated code in callers.

Changes
  RFC[1]->v1
  - remove kselftest dependency on variant support in teardown
    (patch is out for review, not available in linux-next/akpm yet)
  - add patch 5: deduplicate set_user_sigmask compat handling
  - add patch 6: deduplicate io_pgetevents sigmask compat handling

[1] RFC: https://github.com/wdebruij/linux-next-mirror/tree/select-compat-1

Willem de Bruijn (6):
  selftests/filesystems: add initial select and poll selftest
  select: deduplicate compat logic
  ppoll: deduplicate compat logic
  epoll: deduplicate compat logic
  compat: add set_maybe_compat_user_sigmask helper
  io_pgetevents: deduplicate compat logic

 fs/aio.c                                      |  94 ++---
 fs/eventpoll.c                                |  35 +-
 fs/io_uring.c                                 |   9 +-
 fs/select.c                                   | 339 +++++-------------
 include/linux/compat.h                        |  10 +
 .../testing/selftests/filesystems/.gitignore  |   1 +
 tools/testing/selftests/filesystems/Makefile  |   2 +-
 .../selftests/filesystems/selectpoll.c        | 207 +++++++++++
 8 files changed, 344 insertions(+), 353 deletions(-)
 create mode 100644 tools/testing/selftests/filesystems/selectpoll.c

-- 
2.30.0.284.gd98b1dd5eaa7-goog


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

end of thread, other threads:[~2021-01-12  7:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-12  0:30 [PATCH 0/6] fs: deduplicate compat logic Willem de Bruijn
2021-01-12  0:30 ` [PATCH 1/6] selftests/filesystems: add initial select and poll selftest Willem de Bruijn
2021-01-12  0:30 ` [PATCH 2/6] select: deduplicate compat logic Willem de Bruijn
2021-01-12  0:30 ` [PATCH 3/6] ppoll: " Willem de Bruijn
2021-01-12  0:30 ` [PATCH 4/6] epoll: " Willem de Bruijn
2021-01-12  0:30 ` [PATCH 5/6] compat: add set_maybe_compat_user_sigmask helper Willem de Bruijn
2021-01-12  7:11   ` kernel test robot
2021-01-12  0:30 ` [PATCH 6/6] io_pgetevents: deduplicate compat logic Willem de Bruijn
2021-01-12  0:58 ` [PATCH 0/6] fs: " Al Viro
2021-01-12  1:16   ` Willem de Bruijn

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).