Centos-kernel-stream-9/fs
Frantisek Hrbata e9e9bc8da2 Merge: mm changes through v5.18 for 9.2
Merge conflicts:
-----------------
Conflicts with !1142(merged) "io_uring: update to v5.15"

fs/io-wq.c
        - static bool io_wqe_create_worker(struct io_wqe *wqe, struct io_wqe_acct *acct)
          !1142 already contains backport of 3146cba99aa2 ("io-wq: make worker creation resilient against signals")
          along with other commits which are not present in !1370. Resolved in favor of HEAD(!1142)
        - static int io_wqe_worker(void *data)
          !1370 does not contain 767a65e9f317 ("io-wq: fix potential race of acct->nr_workers")
          Resolved in favor of HEAD(!1142)
        - static void io_init_new_worker(struct io_wqe *wqe, struct io_worker *worker,
          HEAD(!1142) does not contain e32cf5dfbe22 ("kthread: Generalize pf_io_worker so it can point to struct kthread")
          Resolved in favor of !1370
        - static void create_worker_cont(struct callback_head *cb)
          !1370 does not contain 66e70be72288 ("io-wq: fix memory leak in create_io_worker()")
          Resolved in favor of HEAD(!1142)
        - static void io_workqueue_create(struct work_struct *work)
          !1370 does not contain 66e70be72288 ("io-wq: fix memory leak in create_io_worker()")
          Resolved in favor of HEAD(!1142)
        - static bool create_io_worker(struct io_wq *wq, struct io_wqe *wqe, int index)
          !1370 does not contain 66e70be72288 ("io-wq: fix memory leak in create_io_worker()")
          Resolved in favor of HEAD(!1142)
        - static bool io_wq_work_match_item(struct io_wq_work *work, void *data)
          !1370 does not contain 713b9825a4c4 ("io-wq: fix cancellation on create-worker failure")
          Resolved in favor of HEAD(!1142)
        - static void io_wqe_enqueue(struct io_wqe *wqe, struct io_wq_work *work)
          !1370 is missing 713b9825a4c4 ("io-wq: fix cancellation on create-worker failure")
          removed wrongly merged run_cancel label
          Resolved in favor of HEAD(!1142)
        - static bool io_task_work_match(struct callback_head *cb, void *data)
          !1370 is missing 3b33e3f4a6c0 ("io-wq: fix silly logic error in io_task_work_match()")
          Resolved in favor of HEAD(!1142)
        - static void io_wq_exit_workers(struct io_wq *wq)
          !1370 is missing 3b33e3f4a6c0 ("io-wq: fix silly logic error in io_task_work_match()")
          Resolved in favor of HEAD(!1142)
        - int io_wq_max_workers(struct io_wq *wq, int *new_count)
          !1370 is missing 3b33e3f4a6c0 ("io-wq: fix silly logic error in io_task_work_match()")
fs/io_uring.c
        - static int io_register_iowq_max_workers(struct io_ring_ctx *ctx,
          !1370 is missing bunch of commits after 2e480058ddc2 ("io-wq: provide a way to limit max number of workers")
          Resolved in favor of HEAD(!1142)
include/uapi/linux/io_uring.h
        - !1370 is missing dd47c104533d ("io-wq: provide IO_WQ_* constants for IORING_REGISTER_IOWQ_MAX_WORKERS arg items")
          just a comment conflict
          Resolved in favor of HEAD(!1142)
kernel/exit.c
        - void __noreturn do_exit(long code)
        - !1370 contains bunch of commits after f552a27afe67 ("io_uring: remove files pointer in cancellation functions")
          Resolved in favor of !1370

Conflicts with !1357(merged) "NFS refresh for RHEL-9.2"

fs/nfs/callback.c
        - nfs4_callback_svc(void *vrqstp)
          !1370 is missing f49169c97fce ("NFSD: Remove svc_serv_ops::svo_module") where the module_put_and_kthread_exit() was removed
          Resolved in favor of HEAD(!1357)
fs/nfs/file.c
          !1357 is missing 187c82cb0380 ("fs: Convert trivial uses of __set_page_dirty_nobuffers to filemap_dirty_folio")
          Resolved in favor of HEAD(!1370)
fs/nfsd/nfssvc.c
        - nfsd(void *vrqstp)
          !1370 is missing f49169c97fce ("NFSD: Remove svc_serv_ops::svo_module")
          Resolved in favor of HEAD(!1357)
-----------------

MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1370

Bugzilla: https://bugzilla.redhat.com/2120352

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2099722

Patches 1-9 are changes to selftests
Patches 10-31 are reverts of RHEL-only patches to address COR CVE
Patches 32-320 are the machine dependent mm changes ported by Rafael
Patch 321 reverts the backport of 6692c98c7df5. See below.
Patches 322-981 are the machine independent mm changes
Patches 982-1016 are David Hildebrand's upstream changes to address the COR CVE

RHEL commit b23c298982 fork: Stop protecting back_fork_cleanup_cgroup_lock with CONFIG_NUMA
which is a backport of upstream 6692c98c7df5 and is reverted early in this series. 6692c98c7df5
is a fix for upstream 40966e316f86 which was not in RHEL until this series. 6692c98c7df5 is re-added
after 40966e316f86.

Omitted-fix: 310d1344e3c5 ("Revert "powerpc: Remove unused FW_FEATURE_NATIVE references"")
        to be fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2131716

Omitted-fix: 465d0eb0dc31 ("Docs/admin-guide/mm/damon/usage: fix the example code snip")
        to be fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2131716

Omitted-fix: 317314527d17 ("mm/hugetlb: correct demote page offset logic")
        to be fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2131716

Omitted-fix: 37dcc673d065 ("frontswap: don't call ->init if no ops are registered")
        to be fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2131716

Omitted-fix: 30c19366636f ("mm: fix BUG splat with kvmalloc + GFP_ATOMIC")
        to be fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2131716

Omitted: fix: fa84693b3c89 io_uring: ensure IORING_REGISTER_IOWQ_MAX_WORKERS works with SQPOLL
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: 009ad9f0c6ee io_uring: drop ctx->uring_lock before acquiring sqd->lock
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: bc369921d670 io-wq: max_worker fixes
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107743

Omitted-fix: e139a1ec92f8 io_uring: apply max_workers limit to all future users
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107743

Omitted-fix: 71c9ce27bb57 io-wq: fix max-workers not correctly set on multi-node system
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107743

Omitted-fix: 41d3a6bd1d37 io_uring: pin SQPOLL data before unlocking ring lock
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: bad119b9a000 io_uring: honour zeroes as io-wq worker limits
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107743

Omitted-fix: 08bdbd39b584 io-wq: ensure that hash wait lock is IRQ disabling
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: 713b9825a4c4 io-wq: fix cancellation on create-worker failure
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: 3b33e3f4a6c0 io-wq: fix silly logic error in io_task_work_match()
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: 71e1cef2d794 io-wq: Remove duplicate code in io_workqueue_create()
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=210774

Omitted-fix: a226abcd5d42 io-wq: don't retry task_work creation failure on fatal conditions
	fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107743

Omitted-fix: fa84693b3c89 io_uring: ensure IORING_REGISTER_IOWQ_MAX_WORKERS works with SQPOLL
        fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: dd47c104533d io-wq: provide IO_WQ_* constants for IORING_REGISTER_IOWQ_MAX_WORKERS arg items
        fixed under https://bugzilla.redhat.com/show_bug.cgi?id=2107656

Omitted-fix: 4f0712ccec09 hexagon: Fix function name in die()
	unsupported arch

Omitted-fix: 751971af2e36 csky: Fix function name in csky_alignment() and die()
	unsupported arch

Omitted-fix: dcbc65aac283 ptrace: Remove duplicated include in ptrace.c
        unsupported arch

Omitted-fix: eb48d4219879 drm/i915: Fix oops due to missing stack depot
	fixed in RHEL commit 105d2d4832 Merge DRM changes from upstream v5.16..v5.17

Omitted-fix: 751a9d69b197 drm/i915: Fix oops due to missing stack depot
	fixed in RHEL commit 99fc716fc4 Merge DRM changes from upstream v5.17..v5.18

Omitted-fix: eb48d4219879 drm/i915: Fix oops due to missing stack depot
	fixed in RHEL commit 105d2d4832 Merge DRM changes from upstream v5.16..v5.17

Omitted-fix: 751a9d69b197 drm/i915: Fix oops due to missing stack depot
	fixed in RHEL commit 99fc716fc4 Merge DRM changes from upstream v5.17..v5.18

Omitted-fix: b95dc06af3e6 drm/amdgpu: disable runpm if we are the primary adapter
        reverted later

Omitted-fix: 5a90c24ad028 Revert "drm/amdgpu: disable runpm if we are the primary adapter"
        revert of above omitted fix

Omitted-fix: 724bbe49c5e4 fs/ntfs3: provide block_invalidate_folio to fix memory leak
	unsupported fs

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>

Approved-by: John W. Linville <linville@redhat.com>
Approved-by: Jiri Benc <jbenc@redhat.com>
Approved-by: Jarod Wilson <jarod@redhat.com>
Approved-by: Prarit Bhargava <prarit@redhat.com>
Approved-by: Lyude Paul <lyude@redhat.com>
Approved-by: Donald Dutile <ddutile@redhat.com>
Approved-by: Rafael Aquini <aquini@redhat.com>
Approved-by: Phil Auld <pauld@redhat.com>
Approved-by: Waiman Long <longman@redhat.com>

Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
2022-10-23 19:49:41 +02:00
..
9p netfs: Rename the netfs_io_request cleanup op and give it an op pointer 2022-08-29 11:10:17 -04:00
adfs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
affs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
afs afs: Convert afs_dir_set_page_dirty() to afs_dir_dirty_folio() 2022-10-12 07:27:48 -04:00
autofs
befs Merge: mm: Optimize list lru memory consumption 2022-05-09 09:48:03 +02:00
bfs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
btrfs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
cachefiles fs: remove kiocb.ki_hint 2022-10-12 09:20:11 +08:00
ceph ceph: no need to invalidate the fscache twice 2022-10-12 07:28:08 -04:00
cifs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
coda fs: Move many prototypes to pagemap.h 2022-07-10 10:44:17 -04:00
configfs fsnotify: fix fsnotify hooks in pseudo filesystems 2022-10-03 11:41:40 +02:00
cramfs
crypto fs: Remove ->readpages address space operation 2022-10-12 07:28:04 -04:00
debugfs
devpts fsnotify: fix fsnotify hooks in pseudo filesystems 2022-10-03 11:41:40 +02:00
dlm Merge: fs: dlm: fix potential recursive spinlock issue 2022-08-19 21:20:32 +00:00
ecryptfs fs: Remove aops ->set_page_dirty 2022-10-12 07:27:48 -04:00
efivarfs
efs fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
erofs block: pass a block_device and opf to bio_alloc 2022-06-22 08:56:19 +08:00
exfat Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
exportfs
ext2 Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
ext4 Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
f2fs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
fat fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
freevxfs fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
fscache fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio() 2022-10-12 07:27:48 -04:00
fuse fs: Remove ->readpages address space operation 2022-10-12 07:28:04 -04:00
gfs2 Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
hfs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
hfsplus Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
hostfs fs: Convert trivial uses of __set_page_dirty_nobuffers to filemap_dirty_folio 2022-10-12 07:27:48 -04:00
hpfs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
hugetlbfs fs: Convert __set_page_dirty_no_writeback to noop_dirty_folio 2022-10-12 07:27:48 -04:00
iomap Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
isofs fs/buffer: Combine two submit_bh() and ll_rw_block() arguments 2022-10-12 09:20:21 +08:00
jbd2 fs/jbd2: Fix the documentation of the jbd2_write_superblock() callers 2022-10-12 09:20:22 +08:00
jffs2 exit: Rename complete_and_exit to kthread_complete_and_exit 2022-10-12 07:27:33 -04:00
jfs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
kernfs
lockd NFSD: Move svc_serv_ops::svo_function into struct svc_serv 2022-09-26 09:34:15 -04:00
minix fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
netfs netfs: do not unlock and put the folio twice 2022-08-29 11:10:23 -04:00
nfs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
nfs_common
nfsd exit: Rename module_put_and_exit to module_put_and_kthread_exit 2022-10-12 07:27:33 -04:00
nilfs2 Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
nls
notify inotify: show inotify mask flags in proc fdinfo 2022-10-03 11:41:41 +02:00
ntfs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
ocfs2 Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
omfs fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
openpromfs fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
orangefs fs: Convert trivial uses of __set_page_dirty_nobuffers to filemap_dirty_folio 2022-10-12 07:27:48 -04:00
overlayfs fs: add is_idmapped_mnt() helper 2022-08-22 12:31:31 -04:00
proc mm: handling Non-LRU pages returned by vm_normal_pages 2022-10-12 07:28:09 -04:00
pstore pstore: Don't use semaphores in always-atomic-context code 2022-08-25 10:45:07 -06:00
qnx4 fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
qnx6 fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
quota quota: make dquot_quota_sync return errors from ->sync_fs 2022-05-09 10:04:04 +02:00
ramfs
reiserfs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
romfs fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
smbfs_common cifs: fix bad fids sent over wire 2022-06-29 09:49:10 +10:00
squashfs block: turn bio_kmalloc into a simple kmalloc wrapper 2022-06-22 08:58:00 +08:00
sysfs
sysv fs: Convert __set_page_dirty_buffers to block_dirty_folio 2022-10-12 07:27:48 -04:00
tracefs
ubifs fs: allocate inode by using alloc_inode_sb() 2022-04-07 14:11:13 -04:00
udf Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
ufs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
unicode
vboxsf fs: Convert trivial uses of __set_page_dirty_nobuffers to filemap_dirty_folio 2022-10-12 07:27:48 -04:00
verity fs: Remove ->readpages address space operation 2022-10-12 07:28:04 -04:00
xfs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
zonefs Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
Kconfig Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
Kconfig.binfmt
Makefile cachefiles: Introduce rewritten driver 2022-08-22 12:31:34 -04:00
aio.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
anon_inodes.c fs: add anon_inode_getfile_secure() similar to anon_inode_getfd_secure() 2022-07-15 15:17:03 -04:00
attr.c vfs: Check the truncate maximum size in inode_newsize_ok() 2022-08-22 12:32:28 -04:00
bad_inode.c
binfmt_aout.c
binfmt_elf.c coredump: Limit coredumps to a single thread group 2022-10-12 07:27:25 -04:00
binfmt_elf_fdpic.c coredump: Limit coredumps to a single thread group 2022-10-12 07:27:25 -04:00
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
buffer.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
char_dev.c
compat_binfmt_elf.c
coredump.c signal: Remove the helper signal_group_exit 2022-10-12 07:27:36 -04:00
d_path.c
dax.c block: remove genhd.h 2022-06-22 08:53:32 +08:00
dcache.c mm: dcache: use kmem_cache_alloc_lru() to allocate dentry 2022-04-07 14:11:13 -04:00
direct-io.c fs/direct-io: Reduce the size of struct dio 2022-10-12 09:20:21 +08:00
drop_caches.c
eventfd.c
eventpoll.c
exec.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
fcntl.c fs: remove fs.f_write_hint 2022-10-12 09:20:11 +08:00
fhandle.c
file.c
file_table.c SUNRPC: Ensure we flush any closed sockets before xs_xprt_free() 2022-07-07 12:21:26 -04:00
filesystems.c
fs-writeback.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fsopen.c
init.c
inode.c mm,fs: split dump_mapping() out from dump_page() 2022-10-12 07:27:38 -04:00
internal.h Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
io-wq.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
io-wq.h Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
io_uring.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
ioctl.c
kernel_read_file.c
libfs.c fs: Convert __set_page_dirty_no_writeback to noop_dirty_folio 2022-10-12 07:27:48 -04:00
locks.c
mbcache.c
mount.h
mpage.c Merge: mm changes through v5.18 for 9.2 2022-10-23 19:49:41 +02:00
namei.c Merge: io_uring: update to v5.15 2022-10-21 09:47:33 -04:00
namespace.c fs: add is_idmapped_mnt() helper 2022-08-22 12:31:31 -04:00
no-block.c
nsfs.c
open.c fs: remove fs.f_write_hint 2022-10-12 09:20:11 +08:00
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c fs: add is_idmapped_mnt() helper 2022-08-22 12:31:31 -04:00
read_write.c
readdir.c
remap_range.c fs/remap_range: Pass the file pointer to read_mapping_folio() 2022-07-10 10:44:13 -04:00
select.c net: Don't include filter.h from net/sock.h 2022-07-13 10:49:16 +02:00
seq_file.c
signalfd.c signal: Requeue signals in the appropriate queue 2022-10-12 07:27:31 -04:00
splice.c mm: Convert remove_mapping() to take a folio 2022-07-10 10:44:17 -04:00
stack.c
stat.c
statfs.c
super.c mm: remove cleancache 2022-10-12 07:27:42 -04:00
sync.c vfs: make sync_filesystem return errors from ->sync_fs 2022-05-25 20:05:33 +02:00
timerfd.c
userfaultfd.c userfaultfd: provide properly masked address for huge-pages 2022-10-12 07:28:09 -04:00
utimes.c
xattr.c