This patch set contains code optimizations and bugfixes for the sharepool.
v1->v2: 1. Reorganize commit messages. 2. Drop a fix patch and merge it into the original one.
Chen Jun (5): mm/sharepool: Make the definitions of MMAP_SHARE_POOL_{START|16G_START} more readable mm/sharepool: Rename sp_mapping.flag to sp_mapping.type mm/sharepool: replace spg->{dvpp|normal} with spg->mapping[SP_MAPPING_{DVPP|NORMAL}] mm/sharepool: Extract sp_mapping_find mm/sharepool: Support alloc ro mapping
Guo Mengqi (14): mm/sharepool: remove deprecated interfaces mm/sharepool: proc_sp_group_state bugfix mm/sharepool: fix dvpp spm redundant print error mm/sharepool: fix statistics error mm/sharepool: fix static code-check errors mm/sharepool: delete redundant codes mm/sharepool: fix softlockup in high pressure use case. mm/sharepool: fix deadlock in spa_stat_of_mapping_show mm/sharepool: fix deadlock in sp_check_mmap_addr mm/sharepool: delete unused codes mm/sharepool: fix potential AA deadlock mm/sharepool: check size=0 in mg_sp_make_share_k2u() mm/sharepool: fix hugepage_rsvd count increase error mm/sharepool: Fix sharepool hugepage cgroup uncount error.
Wang Wensheng (3): mm/sharepool: Delete unused sysctl interface mm/sharepool: Fix UAF reported by KASAN mm/sharepool: Rebind the numa node when fallback to normal pages
Zhang Zekun (7): mm/sharepool: Remove unused sp_dev_va_start and sp_dev_va_size mm/sharepool: Remove sp_device_number_detect function mm/sharepool: Remove enable_mdc_default_group and change the definition of is_process_in_group() mm/sharepool: Remove the comment and fix a bug in mg_sp_group_id_by_pid() mm/sharepool: Add a read lock in proc_usage_show() mm/sharepool: Fix code-style warnings mm/sharepool: Remove the leading double underlines for function name
Zhou Guanghui (6): mm/sharepool: delete unnecessary judgment mm/sharepool: Avoid UAF on spa mm/sharepool: Check the maximum value of spg_id mm/sharepool: Avoid UAF on mm mm/sharepool: bugfix for 2M U2K mm/sharepool: fix the incorrect judgement of the addr range
fs/hugetlbfs/inode.c | 19 +- include/linux/hugetlb.h | 6 +- include/linux/share_pool.h | 164 ++----- kernel/sysctl.c | 67 --- mm/hugetlb.c | 3 + mm/share_pool.c | 882 +++++++++++++------------------------ 6 files changed, 361 insertions(+), 780 deletions(-)