incoming
Subsystems (6)
Andrew Morton
maintainer5 patches, based on da690031a5d6d50a361e3f19f3eeabd086a6f20d.
Subsystems affected by this patch series:
MAINTAINERS
mm/pagemap
mm/swap
mm/hugetlb
Subsystem: MAINTAINERS
Kees Cook <[email protected]>:
MAINTAINERS: change hardening mailing list
Antoine Tenart <[email protected]>:
MAINTAINERS: Antoine Tenart's email address
Subsystem: mm/pagemap
Miaohe Lin <[email protected]>:
mm: mmap: Fix general protection fault in unlink_file_vma()
Subsystem: mm/swap
Minchan Kim <[email protected]>:
mm: validate inode in mapping_set_error()
Subsystem: mm/hugetlb
Vijay Balakrishna <[email protected]>:
mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged
.mailmap | 4 +++- MAINTAINERS | 8 ++++---- include/linux/khugepaged.h | 5 +++++ include/linux/pagemap.h | 3 ++- mm/khugepaged.c | 13 +++++++++++-- mm/mmap.c | 6 +++++- mm/page_alloc.c | 3 +++ 7 files changed, 33 insertions(+), 9 deletions(-)
Andrew Morton
maintainerPATCH 1/5 MAINTAINERS: change hardening mailing list
From: Kees Cook <[email protected]>
Subject: MAINTAINERS: change hardening mailing list
As more email from git history gets aimed at the OpenWall kernel-hardening@ list, there has been a desire to separate "new topics" from "on-going" work. To handle this, the superset of hardening email topics are now to be directed to [email protected]. Update the MAINTAINERS file and the .mailmap to accomplish this, so that linux-hardening@ can be treated like any other regular upstream kernel development list.
---
.mailmap | 1 + MAINTAINERS | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
.mailmap renamed from .mailmap~maintainers-change-hardening-mailing-list +1 -0
@@ -188,6 +188,7 @@ Leon Romanovsky <[email protected]> <leonr Linas Vepstas <[email protected]> Linus Lüssing <[email protected]> <[email protected]> Linus Lüssing <[email protected]> <[email protected]> +<[email protected]> <[email protected]> Li Yang <[email protected]> <[email protected]> Li Yang <[email protected]> <[email protected]> Lukasz Luba <[email protected]> <[email protected]>
MAINTAINERS renamed from MAINTAINERS~maintainers-change-hardening-mailing-list +2 -2
@@ -7240,7 +7240,7 @@ F: drivers/staging/gasket/ GCC PLUGINS M: Kees Cook <[email protected]> R: Emese Revfy <[email protected]> -L: [email protected] +L: [email protected] S: Maintained F: Documentation/kbuild/gcc-plugins.rst F: scripts/Makefile.gcc-plugins
@@ -9802,7 +9802,7 @@ F: drivers/scsi/53c700* LEAKING_ADDRESSES M: Tobin C. Harding <[email protected]> M: Tycho Andersen <[email protected]> -L: [email protected] +L: [email protected] S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/tobin/leaks.git F: scripts/leaking_addresses.pl
_
Andrew Morton
maintainerPATCH 2/5 MAINTAINERS: Antoine Tenart's email address
In reply to Andrew MortonFrom: Antoine Tenart <[email protected]>
Subject: MAINTAINERS: Antoine Tenart's email address
Use my kernel.org address instead of my bootlin.com one.
---
.mailmap | 3 ++- MAINTAINERS | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-)
.mailmap renamed from .mailmap~maintainers-update-my-email-address +2 -1
@@ -41,7 +41,8 @@ Andrew Murray <[email protected] Andrew Vasquez <[email protected]> Andrey Ryabinin <[email protected]> <[email protected]> Andy Adamson <[email protected]> -Antoine Tenart <[email protected]> +Antoine Tenart <[email protected]> <[email protected]> +Antoine Tenart <[email protected]> <[email protected]> Antonio Ospite <[email protected]> <[email protected]> Archit Taneja <[email protected]> Ard Biesheuvel <[email protected]> <[email protected]>
MAINTAINERS renamed from MAINTAINERS~maintainers-update-my-email-address +2 -2
@@ -1628,7 +1628,7 @@ N: meson ARM/Annapurna Labs ALPINE ARCHITECTURE M: Tsahee Zidenberg <[email protected]> -M: Antoine Tenart <[email protected]> +M: Antoine Tenart <[email protected]> L: [email protected] (moderated for non-subscribers) S: Maintained F: arch/arm/boot/dts/alpine*
@@ -8678,7 +8678,7 @@ F: drivers/input/input-mt.c K: \b(ABS|SYN)_MT_ INSIDE SECURE CRYPTO DRIVER -M: Antoine Tenart <[email protected]> +M: Antoine Tenart <[email protected]> L: [email protected] S: Maintained F: drivers/crypto/inside-secure/
_
Andrew Morton
maintainerPATCH 3/5 mm: mmap: fix general protection fault in unlink_file_vma()
In reply to Andrew MortonFrom: Miaohe Lin <[email protected]>
Subject: mm: mmap: Fix general protection fault in unlink_file_vma()
The syzbot reported the below general protection fault:
general protection fault, probably for non-canonical address 0xe00eeaee0000003b: 0000 [#1] PREEMPT SMP KASAN KASAN: maybe wild-memory-access in range [0x00777770000001d8-0x00777770000001df] CPU: 1 PID: 10488 Comm: syz-executor721 Not tainted 5.9.0-rc3-syzkaller #0 RIP: 0010:unlink_file_vma+0x57/0xb0 mm/mmap.c:164 Code: 4c 8b a5 a0 00 00 00 4d 85 e4 74 4e e8 92 d7 cd ff 49 8d bc 24 d8 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 3d 4d 8b b4 24 d8 01 00 00 4d 8d 6e 78 4c 89 ef e8 RSP: 0018:ffffc9000ac0f9b0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88800010ceb0 RCX: ffffffff81592421 RDX: 000eeeee0000003b RSI: ffffffff81a6736e RDI: 00777770000001d8 RBP: ffff88800010ceb0 R08: 0000000000000001 R09: ffff88801291a50f R10: ffffed10025234a1 R11: 0000000000000001 R12: 0077777000000000 R13: 00007f1eea0da000 R14: 00007f1eea0d9000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1eea11a9d0 CR3: 000000000007e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: free_pgtables+0x1b3/0x2f0 mm/memory.c:415 exit_mmap+0x2c0/0x530 mm/mmap.c:3184 __mmput+0x122/0x470 kernel/fork.c:1076 mmput+0x53/0x60 kernel/fork.c:1097 exit_mm kernel/exit.c:483 [inline] do_exit+0xa8b/0x29f0 kernel/exit.c:793 do_group_exit+0x125/0x310 kernel/exit.c:903 get_signal+0x428/0x1f00 kernel/signal.c:2757 arch_do_signal+0x82/0x2520 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:136 [inline] exit_to_user_mode_prepare+0x1ae/0x200 kernel/entry/common.c:167 syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:242 entry_SYSCALL_64_after_hwframe+0x44/0xa9
It's because the ->mmap() callback can change vma->vm_file and fput the original file. But the commit d70cec898324 ("mm: mmap: merge vma after call_mmap() if possible") failed to catch this case and always fput() the original file, hence add an extra fput().
[ Thanks Hillf for pointing this extra fput() out. ]
---
mm/mmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
mm/mmap.c renamed from mm/mmap.c~mm-mmap-fix-general-protection-fault-in-unlink_file_vma +5 -1
@@ -1781,7 +1781,11 @@ unsigned long mmap_region(struct file *f merge =vma_merge (mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags,NULL , vma->vm_file, vma->vm_pgoff,NULL ,NULL_VM_UFFD_CTX );if (merge) { -fput (file); +/* ->mmap() can change vma->vm_file and fput the original file. So +* fput the vma->vm_file here or we would add an extra fput for file +* and cause general protection fault ultimately. +*/ +fput (vma->vm_file);vm_area_free (vma); vma = merge;/* Update vm_flags and possible addr to pick up the change. We don't
_
Re: [patch 3/5] mm: mmap: fix general protection fault in unlink_file_vma()
Am 11.10.20 um 08:16 schrieb Andrew Morton:
Quoted 48 lines
From: Miaohe Lin <[email protected]>
Subject: mm: mmap: Fix general protection fault inunlink_file_vma()The syzbot reported the below general protection fault:
general protection fault, probably for non-canonical address 0xe00eeaee0000003b: 0000 [#1] PREEMPT SMP KASAN KASAN: maybe wild-memory-access in range [0x00777770000001d8-0x00777770000001df] CPU: 1 PID: 10488 Comm: syz-executor721 Not tainted 5.9.0-rc3-syzkaller #0 RIP: 0010:unlink_file_vma+0x57/0xb0 mm/mmap.c:164 Code: 4c 8b a5 a0 00 00 00 4d 85 e4 74 4e e8 92 d7 cd ff 49 8d bc 24 d8 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 3d 4d 8b b4 24 d8 01 00 00 4d 8d 6e 78 4c 89 ef e8 RSP: 0018:ffffc9000ac0f9b0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88800010ceb0 RCX: ffffffff81592421 RDX: 000eeeee0000003b RSI: ffffffff81a6736e RDI: 00777770000001d8 RBP: ffff88800010ceb0 R08: 0000000000000001 R09: ffff88801291a50f R10: ffffed10025234a1 R11: 0000000000000001 R12: 0077777000000000 R13: 00007f1eea0da000 R14: 00007f1eea0d9000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1eea11a9d0 CR3: 000000000007e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: free_pgtables+0x1b3/0x2f0 mm/memory.c:415 exit_mmap+0x2c0/0x530 mm/mmap.c:3184 __mmput+0x122/0x470 kernel/fork.c:1076 mmput+0x53/0x60 kernel/fork.c:1097 exit_mm kernel/exit.c:483 [inline] do_exit+0xa8b/0x29f0 kernel/exit.c:793 do_group_exit+0x125/0x310 kernel/exit.c:903 get_signal+0x428/0x1f00 kernel/signal.c:2757 arch_do_signal+0x82/0x2520 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:136 [inline] exit_to_user_mode_prepare+0x1ae/0x200 kernel/entry/common.c:167 syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:242 entry_SYSCALL_64_after_hwframe+0x44/0xa9It's because the ->mmap() callback can change
vma->vm_fileand fput the original file. But the commitd70cec898324("mm: mmap: merge vma aftercall_mmap()if possible") failed to catch this case and alwaysfput()the original file, hence add an extrafput().[ Thanks Hillf for pointing this extra
fput()out. ]
Quoted 13 lines
Fixes d70cec898324 ("mm: mmap: merge vma after call_mmap() if possible")Signed-off-by Miaohe Lin <[email protected]>Reported-by [email protected]Cc Christian König <[email protected]>Cc Hongxiang Lou <[email protected]>Cc Chris Wilson <[email protected]>Cc Dave Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Sumit Semwal <[email protected]>Cc Matthew Wilcox (Oracle) <[email protected]>Cc John Hubbard <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Quoted 21 lines
---
mm/mmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)mm/mmap.c renamed from mm/mmap.c~mm-mmap-fix-general-protection-fault-in-unlink_file_vma +5
-1@@ -1781,7 +1781,11 @@ unsigned long mmap_region(struct file *f merge =vma_merge (mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags,NULL , vma->vm_file, vma->vm_pgoff,NULL ,NULL_VM_UFFD_CTX );if (merge) { -fput (file); +/* ->mmap() can change vma->vm_file and fput the original file. So +* fput the vma->vm_file here or we would add an extra fput for file +* and cause general protection fault ultimately. +*/ +fput (vma->vm_file);vm_area_free (vma); vma = merge;/* Update vm_flags and possible addr to pick up the change. We don't _
Andrew Morton
maintainerPATCH 4/5 mm: validate inode in mapping_set_error()
In reply to Andrew MortonFrom: Minchan Kim <[email protected]>
Subject: mm: validate inode in mapping_set_error()
The swap address_space doesn't have host. Thus, it makes kernel crash once swap write meets error. Fix it.
---
include/linux/pagemap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/pagemap.h renamed from include/linux/pagemap.h~mm-validate-inode-in-mapping_set_error +2 -1
@@ -54,7 +54,8 @@ static inline void mapping_set_error(str__filemap_set_wb_err (mapping, error);/* Record it in superblock */ -errseq_set (&mapping->host->i_sb->s_wb_err, error); +if (mapping->host) +errseq_set (&mapping->host->i_sb->s_wb_err, error);/* Record it in flags for now, for legacy callers */ if (error == -ENOSPC )
_
Andrew Morton
maintainerPATCH 5/5 mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged
In reply to Andrew MortonFrom: Vijay Balakrishna <[email protected]>
Subject: mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged
When memory is hotplug added or removed the min_free_kbytes should be recalculated based on what is expected by khugepaged. Currently after hotplug, min_free_kbytes will be set to a lower default and higher default set when THP enabled is lost. This change restores min_free_kbytes as expected for THP consumers.
---
include/linux/khugepaged.h | 5 +++++ mm/khugepaged.c | 13 +++++++++++-- mm/page_alloc.c | 3 +++ 3 files changed, 19 insertions(+), 2 deletions(-)
include/linux/khugepaged.h renamed from include/linux/khugepaged.h~mm-khugepaged-recalculate-min_free_kbytes-after-memory-hotplug-as-expected-by-khugepaged +5 -0
@@ -15,6 +15,7 @@ extern int __khugepaged_enter(struct mm_extern void __khugepaged_exit (struct mm_struct *mm);extern int khugepaged_enter_vma_merge (struct vm_area_struct *vma,unsigned long vm_flags); +extern void khugepaged_min_free_kbytes_update (void );#ifdef CONFIG_SHMEM extern void collapse_pte_mapped_thp (struct mm_struct *mm,unsigned long addr);#else
@@ -85,6 +86,10 @@ static inline void collapse_pte_mapped_t unsigned long addr) { } + +static inline void khugepaged_min_free_kbytes_update (void ) +{ +}#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ #endif /* _LINUX_KHUGEPAGED_H */
mm/khugepaged.c renamed from mm/khugepaged.c~mm-khugepaged-recalculate-min_free_kbytes-after-memory-hotplug-as-expected-by-khugepaged +11 -2
@@ -56,6 +56,9 @@ enum scan_result {#define CREATE_TRACE_POINTS #include <trace/events/huge_memory.h> +static struct task_struct *khugepaged_thread__read_mostly ; +static DEFINE_MUTEX (khugepaged_mutex); +/* default scan 8*512 pte (or vmas) every 30 second */ static unsigned int khugepaged_pages_to_scan__read_mostly ;static unsigned int khugepaged_pages_collapsed;
@@ -2304,8 +2307,6 @@ static void set_recommended_min_free_kbyint start_stop_khugepaged (void ) { -static struct task_struct *khugepaged_thread__read_mostly ; -static DEFINE_MUTEX (khugepaged_mutex);int err =0 ;mutex_lock (&khugepaged_mutex);
@@ -2332,3 +2333,11 @@ fail:mutex_unlock (&khugepaged_mutex);return err; } + +void khugepaged_min_free_kbytes_update (void ) +{ +mutex_lock (&khugepaged_mutex); +if (khugepaged_enabled () && khugepaged_thread) +set_recommended_min_free_kbytes (); +mutex_unlock (&khugepaged_mutex); +}
mm/page_alloc.c renamed from mm/page_alloc.c~mm-khugepaged-recalculate-min_free_kbytes-after-memory-hotplug-as-expected-by-khugepaged +3 -0
@@ -69,6 +69,7 @@#include <linux/nmi.h> #include <linux/psi.h> #include <linux/padata.h> +#include <linux/khugepaged.h> #include <asm/sections.h> #include <asm/tlbflush.h>
@@ -7904,6 +7905,8 @@ int __meminit init_per_zone_wmark_min(vosetup_min_slab_ratio ();#endif +khugepaged_min_free_kbytes_update (); +return 0 ; }postcore_initcall (init_per_zone_wmark_min)
_
[folded-merged] x86-numa-add-nohmat-option-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: x86/numa: fix build when CONFIG_ACPI is not set has been removed from the -mm tree. Its filename was x86-numa-add-nohmat-option-fix.patch
The patch titled
Subject: x86/numa: fix build when CONFIG_ACPI is not set
has been removed from the -mm tree. Its filename was
x86-numa-add-nohmat-option-fix.patch
This patch was dropped because it was folded into x86-numa-add-nohmat-option.patch
------------------------------------------------------
From: Randy Dunlap <[email protected]>
Subject: x86/numa: fix build when CONFIG_ACPI is not set
Fix build errors when CONFIG_ACPI is not set/enabled by adding <acpi/acpi_numa.h> in the #else (!CONFIG_ACPI) block.
../arch/x86/mm/numa.c: In function `numa_setup':../arch/x86/mm/numa.c:43:3: error: implicit declaration of function disable_srat'; did you mean disable_irq'? [-Werror=implicit-function-declaration]
disable_srat();
^~~~~~~~~~~~../arch/x86/mm/numa.c:45:3: error: implicit declaration of function disable_hmat'; did you mean disable_dma'? [-Werror=implicit-function-declaration]
disable_hmat();
^~~~~~~~~~~~
---
include/linux/acpi.h | 2 ++ 1 file changed, 2 insertions(+)
include/linux/acpi.h renamed from include/linux/acpi.h~x86-numa-add-nohmat-option-fix +2 -0
@@ -709,6 +709,8 @@ static inline u64 acpi_arch_get_root_poi#define ACPI_HANDLE_FWNODE (fwnode) (NULL)#define ACPI_DEVICE_CLASS (_cls, _msk) .cls = (0), .cls_msk = (0), +#include <acpi/acpi_numa.h> +struct fwnode_handle ;static inline bool acpi_dev_found (const char *hid)
_
Patches currently in -mm which might be from [email protected] are
fs-ocfs2-delete-repeated-words-in-comments.patch fs-xattrc-fix-kernel-doc-warnings-for-setxattr-removexattr.patch x86-numa-add-nohmat-option.patch mm-memoryc-fix-spello-of-function.patch fs-configfs-delete-repeated-words-in-comments.patch kernel-fix-repeated-words-in-comments.patch kernel-acctc-fix-some-kernel-doc-nits.patch lib-bitmap-delete-duplicated-words.patch lib-libcrc32c-delete-duplicated-words.patch lib-decompress_bunzip2-delete-duplicated-words.patch lib-devres-delete-duplicated-words.patch lib-dynamic_queue_limits-delete-duplicated-words-fix-typo.patch lib-earlycpio-delete-duplicated-words.patch lib-radix-tree-delete-duplicated-words.patch lib-syscall-delete-duplicated-words.patch lib-test_sysctl-delete-duplicated-words.patch lib-mpi-fix-spello-of-functions.patch
[folded-merged] acpi-hmat-refactor-hmat_register_target_device-to-hmem_register_device-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: device-dax: CONFIG_DEV_DAX_HMEM_DEVICES should depend on CONFIG_DAX=y has been removed from the -mm tree. Its filename was…
The patch titled
Subject: device-dax: CONFIG_DEV_DAX_HMEM_DEVICES should depend on CONFIG_DAX=y
has been removed from the -mm tree. Its filename was
acpi-hmat-refactor-hmat_register_target_device-to-hmem_register_device-fix.patch
This patch was dropped because it was folded into acpi-hmat-refactor-hmat_register_target_device-to-hmem_register_device.patch
------------------------------------------------------
From: Joao Martins <[email protected]>
Subject: device-dax: CONFIG_DEV_DAX_HMEM_DEVICES should depend on CONFIG_DAX=y
HMAT requires hmem_register_device() which is now placed under drivers/dax. ACPI_HMAT is a bool and built-in, and to use hmem_register_device() CONFIG_DAX also needs to be builtin.
---
drivers/dax/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dax/Kconfig renamed from drivers/dax/Kconfig~acpi-hmat-refactor-hmat_register_target_device-to-hmem_register_device-fix +1 -1
@@ -49,7 +49,7 @@ config DEV_DAX_HMEM Say M if unsure. config DEV_DAX_HMEM_DEVICES - depends on DEV_DAX_HMEM + depends on DEV_DAX_HMEM && DAX=y def_bool y config DEV_DAX_KMEM
_
Patches currently in -mm which might be from [email protected] are
acpi-hmat-refactor-hmat_register_target_device-to-hmem_register_device.patch acpi-hmat-attach-a-device-for-each-soft-reserved-range-fix.patch device-dax-make-align-a-per-device-property.patch dax-hmem-introduce-dax_hmemregion_idle-parameter.patch device-dax-add-a-range-mapping-allocation-attribute.patch
[folded-merged] mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix
has been removed from the -mm tree. Its filename was
mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix.patch
This patch was dropped because it was folded into mm-memory_hotplug-introduce-default-phys_to_target_node-implementation.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix
fix CONFIG_MEMORY_HOTPLUG=n build
---
include/linux/memory_hotplug.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
include/linux/memory_hotplug.h renamed from include/linux/memory_hotplug.h~mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix +14 -14
@@ -149,20 +149,6 @@ int add_pages(int nid, unsigned long sta struct mhp_params *params);#endif /* ARCH_HAS_ADD_PAGES */ -#ifdef CONFIG_NUMA -extern int memory_add_physaddr_to_nid (u64 start); -extern int phys_to_target_node (u64 start); -#else -static inline int memory_add_physaddr_to_nid (u64 start) -{ -return 0 ; -} -static inline int phys_to_target_node (u64 start) -{ -return 0 ; -} -#endif -#ifdef CONFIG_HAVE_ARCH_NODEDATA_EXTENSION /* * For supporting node-hotadd, we have to allocate a new pgdat.
@@ -289,6 +275,20 @@ static inline bool movable_node_is_enabl }#endif /* ! CONFIG_MEMORY_HOTPLUG */ +#ifdef CONFIG_NUMA +extern int memory_add_physaddr_to_nid (u64 start); +extern int phys_to_target_node (u64 start); +#else +static inline int memory_add_physaddr_to_nid (u64 start) +{ +return 0 ; +} +static inline int phys_to_target_node (u64 start) +{ +return 0 ; +} +#endif +#if defined(CONFIG_MEMORY_HOTPLUG ) || defined(CONFIG_DEFERRED_STRUCT_PAGE_INIT )/* * pgdat resizing functions
_
Patches currently in -mm which might be from [email protected] are
mm-memory_hotplug-introduce-default-phys_to_target_node-implementation.patch mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix.patch mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix.patch mm-mempool-add-else-to-split-mutually-exclusive-case-fix.patch memblock-make-memblock_debug-and-related-functionality-private-fix.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch
mm.patch
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch linux-next-rejects.patch fs-fuse-virtio_fsc-fix-for-mm-memremap_pages-convert-to-struct-range.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] acpi-hmat-attach-a-device-for-each-soft-reserved-range-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: device-dax: require NUMA_KEEP_MEMINFO for phys_to_target_node() has been removed from the -mm tree. Its filename was…
The patch titled
Subject: device-dax: require NUMA_KEEP_MEMINFO for phys_to_target_node()
has been removed from the -mm tree. Its filename was
acpi-hmat-attach-a-device-for-each-soft-reserved-range-fix.patch
This patch was dropped because it was folded into acpi-hmat-attach-a-device-for-each-soft-reserved-range.patch
------------------------------------------------------
From: Joao Martins <[email protected]>
Subject: device-dax: require NUMA_KEEP_MEMINFO for phys_to_target_node()
phys_to_target_node() and memory_add_physaddr_to_nid() are only defined with both CONFIG_NUMA=y and CONFIG_MEMORY_HOTPLUG=y. Oherwise we see:
drivers/dax/hmem/device.o: in function `hmem_register_one':drivers/dax/hmem/device.c:85: undefined reference to `phys_to_target_node'
lkp also reports such build failures:
ld.lld: error: undefined symbol: phys_to_target_node
X86 is a special case in which both can be defined without depending on MEMORY_HOTPLUG=y. The other case is powerpc (for memory_add_physaddr_to_nid) but like ARM64 dependencies, the arch-specific override requires CONFIG_NUMA and CONFIG_MEMORY_HOTPLUG.
In all cases this ends up depending on CONFIG_NUMA_KEEP_MEMINFO to signal the presence of phys_to_target_node() which is what CONFIG_DEV_DAX_HMEM_DEVICES should depend on. Additionally, the X86 arch-override is not selected unless X86_PMEM_LEGACY=y. So on CONFIG_DEV_DAX_HMEM we select CONFIG_NUMA_KEEP_INFO ourselves if both NUMA and X86 are set.
---
drivers/dax/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/dax/Kconfig renamed from drivers/dax/Kconfig~acpi-hmat-attach-a-device-for-each-soft-reserved-range-fix +2 -0
@@ -35,6 +35,7 @@ config DEV_DAX_PMEM config DEV_DAX_HMEM tristate "HMEM DAX: direct access to 'specific purpose' memory" depends on EFI_SOFT_RESERVE + select NUMA_KEEP_MEMINFO if (NUMA && X86) default DEV_DAX help EFI 2.8 platforms, and others, may advertise 'specific purpose'
@@ -49,6 +50,7 @@ config DEV_DAX_HMEM Say M if unsure. config DEV_DAX_HMEM_DEVICES + depends on NUMA_KEEP_MEMINFO # for phys_to_target_node() depends on DEV_DAX_HMEM && DAX=y def_bool y
_
Patches currently in -mm which might be from [email protected] are
acpi-hmat-attach-a-device-for-each-soft-reserved-range.patch device-dax-make-align-a-per-device-property.patch dax-hmem-introduce-dax_hmemregion_idle-parameter.patch device-dax-add-a-range-mapping-allocation-attribute.patch
[folded-merged] mm-memremap_pages-convert-to-struct-range-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm/hmm/test: use after free in dmirror_allocate_chunk() has been removed from the -mm tree. Its filename was mm-memremap_pages-convert-to-struct-range-fix.patch
The patch titled
Subject: mm/hmm/test: use after free in dmirror_allocate_chunk()
has been removed from the -mm tree. Its filename was
mm-memremap_pages-convert-to-struct-range-fix.patch
This patch was dropped because it was folded into mm-memremap_pages-convert-to-struct-range.patch
------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: mm/hmm/test: use after free in dmirror_allocate_chunk()
The error handling code does this:
err_free:
kfree(devmem);
^^^^^^^^^^^^^
err_release:
release_mem_region(devmem->pagemap.range.start, range_len(&devmem->pagemap.range));
^^^^^^^^The problem is that when we use "devmem->pagemap.range.start" the "devmem" pointer is either NULL or freed.
Neither the allocation nor the call to request_free_mem_region() has to be done under the lock so I moved those to the start of the function.
---
lib/test_hmm.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-)
lib/test_hmm.c renamed from lib/test_hmm.c~mm-memremap_pages-convert-to-struct-range-fix +21 -21
@@ -460,6 +460,21 @@ static bool dmirror_allocate_chunk(strucunsigned long pfn_last;void *ptr; + devmem =kzalloc (sizeof (*devmem),GFP_KERNEL ); +if (!devmem) +return -ENOMEM ; + + res =request_free_mem_region (&iomem_resource,DEVMEM_CHUNK_SIZE , +"hmm_dmirror" ); +if (IS_ERR (res)) + goto err_devmem; + + devmem->pagemap.type =MEMORY_DEVICE_PRIVATE ; + devmem->pagemap.range.start = res->start; + devmem->pagemap.range.end = res->end; + devmem->pagemap.ops = &dmirror_devmem_ops; + devmem->pagemap.owner = mdevice; +mutex_lock (&mdevice->devmem_lock);if (mdevice->devmem_count == mdevice->devmem_capacity) {
@@ -472,29 +487,14 @@ static bool dmirror_allocate_chunk(strucsizeof (new_chunks[0 ]) * new_capacity, GFP_KERNEL);if (!new_chunks) - goto err; + goto err_release; mdevice->devmem_capacity = new_capacity; mdevice->devmem_chunks = new_chunks; } - res =request_free_mem_region (&iomem_resource,DEVMEM_CHUNK_SIZE , -"hmm_dmirror" ); -if (IS_ERR (res)) - goto err; - - devmem =kzalloc (sizeof (*devmem),GFP_KERNEL ); -if (!devmem) - goto err_release; - - devmem->pagemap.type =MEMORY_DEVICE_PRIVATE ; - devmem->pagemap.range.start = res->start; - devmem->pagemap.range.end = res->end; - devmem->pagemap.ops = &dmirror_devmem_ops; - devmem->pagemap.owner = mdevice; - ptr =memremap_pages (&devmem->pagemap,numa_node_id ());if (IS_ERR (ptr)) - goto err_free; + goto err_release; devmem->mdevice = mdevice; pfn_first = devmem->pagemap.range.start >>PAGE_SHIFT ;
@@ -525,12 +525,12 @@ static bool dmirror_allocate_chunk(strucreturn true; -err_free: -kfree (devmem); err_release: -release_mem_region (devmem->pagemap.range.start,range_len (&devmem->pagemap.range)); -err:mutex_unlock (&mdevice->devmem_lock); +release_mem_region (devmem->pagemap.range.start,range_len (&devmem->pagemap.range)); +err_devmem: +kfree (devmem); +return false; }
_
Patches currently in -mm which might be from [email protected] are
mm-memremap_pages-convert-to-struct-range.patch mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch
[folded-merged] mm-optimise-madvise-willneed-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-optimise-madvise-willneed-fix has been removed from the -mm tree. Its filename was mm-optimise-madvise-willneed-fix.patch
The patch titled
Subject: mm-optimise-madvise-willneed-fix
has been removed from the -mm tree. Its filename was
mm-optimise-madvise-willneed-fix.patch
This patch was dropped because it was folded into mm-optimise-madvise-willneed.patch
------------------------------------------------------
From: Matthew Wilcox <[email protected]>
Subject: mm-optimise-madvise-willneed-fix
Quoted 4 lines · Qian Cai
Reverting the "Return head pages from find_*_entry" patchset [1] up to this patch fixed the issue that LTP madvise06 test [2] would trigger endless soft- lockups below. It does not help after applied patches fixed other separate issues in the patchset [3][4].
---
mm/madvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/madvise.c renamed from mm/madvise.c~mm-optimise-madvise-willneed-fix +1 -1
@@ -234,6 +234,7 @@ static void force_shm_swapin_readahead(sif (!xa_is_value (page))continue ; +xas_pause (&xas);rcu_read_unlock (); swap =radix_to_swp_entry (page);
@@ -243,7 +244,6 @@ static void force_shm_swapin_readahead(sput_page (page);rcu_read_lock (); -xas_reset (&xas); }rcu_read_unlock ();
_
Patches currently in -mm which might be from [email protected] are
mm-debug-do-not-dereference-i_ino-blindly.patch mm-factor-find_get_incore_page-out-of-mincore_page.patch mm-use-find_get_incore_page-in-memcontrol.patch mm-optimise-madvise-willneed.patch proc-optimise-smaps-for-shmem-entries.patch i915-use-find_lock_page-instead-of-find_lock_entry.patch mm-convert-find_get_entry-to-return-the-head-page.patch mm-convert-find_get_entry-to-return-the-head-page-fix.patch mm-shmem-return-head-page-from-find_lock_entry.patch mm-shmem-return-head-page-from-find_lock_entry-fix.patch mm-add-find_lock_head.patch mm-filemap-fix-filemap_map_pages-for-thp.patch mm-account-pmd-tables-like-pte-tables.patch mm-move-pagedoublemap-bit.patch mm-simplify-pagedoublemap-with-pf_second-policy.patch page_alloc-fix-freeing-non-compound-pages.patch xarray-add-xa_get_order.patch
xarray-add-xas_split.patch
xarray-add-xas_split-fix-2.patch xarray-add-xas_split-fix-3patch.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch
[folded-merged] mm-convert-find_get_entry-to-return-the-head-page-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-convert-find_get_entry-to-return-the-head-page-fix has been removed from the -mm tree. Its filename was mm-convert-find_get_entry-to-return-the-head-page-fix.patch
The patch titled
Subject: mm-convert-find_get_entry-to-return-the-head-page-fix
has been removed from the -mm tree. Its filename was
mm-convert-find_get_entry-to-return-the-head-page-fix.patch
This patch was dropped because it was folded into mm-convert-find_get_entry-to-return-the-head-page.patch
------------------------------------------------------
From: Matthew Wilcox <[email protected]>
Subject: mm-convert-find_get_entry-to-return-the-head-page-fix
---
mm/swap_state.c | 2 ++ 1 file changed, 2 insertions(+)
mm/swap_state.c renamed from mm/swap_state.c~mm-convert-find_get_entry-to-return-the-head-page-fix +2 -0
@@ -431,6 +431,8 @@ struct page *find_get_incore_page(structstruct swap_info_struct *si;struct page *page =find_get_entry (mapping, index); +if (!page) +return page;if (!xa_is_value (page))return find_subpage (page, index);if (!shmem_mapping (mapping))
_
Patches currently in -mm which might be from [email protected] are
mm-debug-do-not-dereference-i_ino-blindly.patch mm-factor-find_get_incore_page-out-of-mincore_page.patch mm-use-find_get_incore_page-in-memcontrol.patch mm-optimise-madvise-willneed.patch proc-optimise-smaps-for-shmem-entries.patch i915-use-find_lock_page-instead-of-find_lock_entry.patch mm-convert-find_get_entry-to-return-the-head-page.patch mm-shmem-return-head-page-from-find_lock_entry.patch mm-shmem-return-head-page-from-find_lock_entry-fix.patch mm-add-find_lock_head.patch mm-filemap-fix-filemap_map_pages-for-thp.patch mm-account-pmd-tables-like-pte-tables.patch mm-move-pagedoublemap-bit.patch mm-simplify-pagedoublemap-with-pf_second-policy.patch page_alloc-fix-freeing-non-compound-pages.patch xarray-add-xa_get_order.patch
xarray-add-xas_split.patch
xarray-add-xas_split-fix-2.patch xarray-add-xas_split-fix-3patch.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch
[folded-merged] mm-shmem-return-head-page-from-find_lock_entry-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-shmem-return-head-page-from-find_lock_entry-fix has been removed from the -mm tree. Its filename was mm-shmem-return-head-page-from-find_lock_entry-fix.patch
The patch titled
Subject: mm-shmem-return-head-page-from-find_lock_entry-fix
has been removed from the -mm tree. Its filename was
mm-shmem-return-head-page-from-find_lock_entry-fix.patch
This patch was dropped because it was folded into mm-shmem-return-head-page-from-find_lock_entry.patch
------------------------------------------------------
From: Matthew Wilcox <[email protected]>
Subject: mm-shmem-return-head-page-from-find_lock_entry-fix
fix BUG()s
[1] https://lore.kernel.org/linux-mm/[email protected]/
---
mm/shmem.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
mm/shmem.c renamed from mm/shmem.c~mm-shmem-return-head-page-from-find_lock_entry-fix +5 -2
@@ -1795,7 +1795,7 @@ static int shmem_getpage_gfp(struct inodstruct mm_struct *charge_mm;struct page *page;enum sgp_type sgp_huge = sgp; -pgoff_t hindex; +pgoff_t hindex = index;int error;int once =0 ;int alloced =0 ;
@@ -1824,6 +1824,8 @@ repeat:return error; } +if (page) + hindex = page->index;if (page && sgp ==SGP_WRITE )mark_page_accessed (page);
@@ -1834,6 +1836,7 @@ repeat:unlock_page (page);put_page (page); page =NULL ; + hindex = index; }if (page || sgp ==SGP_READ ) goto out;
@@ -1984,7 +1987,7 @@ clear: goto unlock; } out: - *pagep = page + index - page->index; + *pagep = page + index - hindex;return 0 ;/*
_
Patches currently in -mm which might be from [email protected] are
mm-debug-do-not-dereference-i_ino-blindly.patch mm-factor-find_get_incore_page-out-of-mincore_page.patch mm-use-find_get_incore_page-in-memcontrol.patch mm-optimise-madvise-willneed.patch proc-optimise-smaps-for-shmem-entries.patch i915-use-find_lock_page-instead-of-find_lock_entry.patch mm-convert-find_get_entry-to-return-the-head-page.patch mm-shmem-return-head-page-from-find_lock_entry.patch mm-add-find_lock_head.patch mm-filemap-fix-filemap_map_pages-for-thp.patch mm-account-pmd-tables-like-pte-tables.patch mm-move-pagedoublemap-bit.patch mm-simplify-pagedoublemap-with-pf_second-policy.patch page_alloc-fix-freeing-non-compound-pages.patch xarray-add-xa_get_order.patch
xarray-add-xas_split.patch
xarray-add-xas_split-fix-2.patch xarray-add-xas_split-fix-3patch.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch
[folded-merged] mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix
has been removed from the -mm tree. Its filename was
mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix.patch
This patch was dropped because it was folded into mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix
fix CONFIG_MMU=n build
---
mm/gup.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)
mm/gup.c renamed from mm/gup.c~mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix +19 -19
@@ -1747,6 +1747,25 @@ static __always_inline long __gup_longte }#endif /* CONFIG_FS_DAX || CONFIG_CMA */ +static bool is_valid_gup_flags (unsigned int gup_flags) +{ +/* +* FOLL_PIN must only be set internally by the pin_user_pages*() APIs, +* never directly by the caller, so enforce that with an assertion: +*/ +if (WARN_ON_ONCE (gup_flags &FOLL_PIN )) +return false; +/* +* FOLL_PIN is a prerequisite to FOLL_LONGTERM. Another way of saying +* that is, FOLL_LONGTERM is a specific case, more restrictive case of +* FOLL_PIN. +*/ +if (WARN_ON_ONCE (gup_flags &FOLL_LONGTERM )) +return false; + +return true; +} +#ifdef CONFIG_MMU static long __get_user_pages_remote(struct mm_struct *mm, unsigned long start, unsigned long nr_pages,
@@ -1777,25 +1796,6 @@ static long __get_user_pages_remote(stru gup_flags | FOLL_TOUCH | FOLL_REMOTE); } -static bool is_valid_gup_flags (unsigned int gup_flags) -{ -/* -* FOLL_PIN must only be set internally by the pin_user_pages*() APIs, -* never directly by the caller, so enforce that with an assertion: -*/ -if (WARN_ON_ONCE (gup_flags &FOLL_PIN )) -return false; -/* -* FOLL_PIN is a prerequisite to FOLL_LONGTERM. Another way of saying -* that is, FOLL_LONGTERM is a specific case, more restrictive case of -* FOLL_PIN. -*/ -if (WARN_ON_ONCE (gup_flags &FOLL_LONGTERM )) -return false; - -return true; -} -/** * get_user_pages_remote() - pin user pages in memory * @mm: mm_struct of target mm
_
Patches currently in -mm which might be from [email protected] are
mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm.patch mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix.patch mm-mempool-add-else-to-split-mutually-exclusive-case-fix.patch memblock-make-memblock_debug-and-related-functionality-private-fix.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch
mm.patch
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch linux-next-rejects.patch fs-fuse-virtio_fsc-fix-for-mm-memremap_pages-convert-to-struct-range.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] mm-memcg-simplify-mem_cgroup_get_max-v4.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-memcg-simplify-mem_cgroup_get_max-v4 has been removed from the -mm tree. Its filename was mm-memcg-simplify-mem_cgroup_get_max-v4.patch
The patch titled
Subject: mm-memcg-simplify-mem_cgroup_get_max-v4
has been removed from the -mm tree. Its filename was
mm-memcg-simplify-mem_cgroup_get_max-v4.patch
This patch was dropped because it was folded into mm-memcg-simplify-mem_cgroup_get_max.patch
------------------------------------------------------
From: Waiman Long <[email protected]>
Subject: mm-memcg-simplify-mem_cgroup_get_max-v4
---
mm/memcontrol.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-simplify-mem_cgroup_get_max-v4 +6 -2
@@ -1640,8 +1640,12 @@ unsigned long mem_cgroup_get_max(struct max +=min (READ_ONCE (memcg->swap.max), (unsigned long )total_swap_pages); }else {/* v1 */ -if (mem_cgroup_swappiness (memcg)) - max = memcg->memsw.max; +if (mem_cgroup_swappiness (memcg)) { +/* Calculate swap excess capacity from memsw limit */ +unsigned long swap =READ_ONCE (memcg->memsw.max) - max; + + max +=min (swap, (unsigned long )total_swap_pages); + } }return max; }
_
Patches currently in -mm which might be from [email protected] are
mm-memcg-clean-up-obsolete-enum-charge_type.patch mm-memcg-simplify-mem_cgroup_get_max.patch mm-memcg-unify-swap-and-memsw-page-counters.patch
[folded-merged] mm-account-pmd-tables-like-pte-tables-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: arm: __pmd_free_tlb(): call page table destructor has been removed from the -mm tree. Its filename was mm-account-pmd-tables-like-pte-tables-fix.patch
The patch titled
Subject: arm: __pmd_free_tlb(): call page table destructor
has been removed from the -mm tree. Its filename was
mm-account-pmd-tables-like-pte-tables-fix.patch
This patch was dropped because it was folded into mm-account-pmd-tables-like-pte-tables.patch
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: arm: __pmd_free_tlb(): call page table destructor
As long as PMD tables are accounted as PTE tables ("mm: account PMD tables like PTE tables") they can be freed only after pgtable_pmd_page_dtor() is called.
Add the missing call in ARM's version of __pmd_free_tlb for CONFIG_ARM_LPAE=y case.
Tested-bt: Anders Roxell <[email protected]>
---
arch/arm/include/asm/tlb.h | 1 + 1 file changed, 1 insertion(+)
arch/arm/include/asm/tlb.h renamed from arch/arm/include/asm/tlb.h~mm-account-pmd-tables-like-pte-tables-fix +1 -0
@@ -59,6 +59,7 @@ __pmd_free_tlb(struct mmu_gather *tlb, p#ifdef CONFIG_ARM_LPAE struct page *page =virt_to_page (pmdp); +pgtable_pmd_page_dtor (page);tlb_remove_table (tlb, page);#endif }
_
Patches currently in -mm which might be from [email protected] are
mm-account-pmd-tables-like-pte-tables.patch kvm-ppc-book3s-hv-simplify-kvm_cma_reserve.patch dma-contiguous-simplify-cma_early_percent_memory.patch arm-xtensa-simplify-initialization-of-high-memory-pages.patch arm64-numa-simplify-dummy_numa_init.patch h8300-nds32-openrisc-simplify-detection-of-memory-extents.patch riscv-drop-unneeded-node-initialization.patch mircoblaze-drop-unneeded-numa-and-sparsemem-initializations.patch memblock-make-for_each_memblock_type-iterator-private.patch memblock-make-memblock_debug-and-related-functionality-private.patch memblock-reduce-number-of-parameters-in-for_each_mem_range.patch arch-mm-replace-for_each_memblock-with-for_each_mem_pfn_range.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix-2.patch x86-setup-simplify-initrd-relocation-and-reservation.patch x86-setup-simplify-reserve_crashkernel.patch memblock-remove-unused-memblock_mem_size.patch memblock-implement-for_each_reserved_mem_region-using-__next_mem_region.patch memblock-use-separate-iterators-for-memory-and-reserved-regions.patch mm-remove-unused-early_pfn_valid.patch
[folded-merged] mm-remove-src-dst-mm-parameter-in-copy_page_range-v2.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-remove-src-dst-mm-parameter-in-copy_page_range-v2 has been removed from the -mm tree. Its filename was mm-remove-src-dst-mm-parameter-in-copy_page_range-v2.patch
The patch titled
Subject: mm-remove-src-dst-mm-parameter-in-copy_page_range-v2
has been removed from the -mm tree. Its filename was
mm-remove-src-dst-mm-parameter-in-copy_page_range-v2.patch
This patch was dropped because it was folded into mm-remove-src-dst-mm-parameter-in-copy_page_range.patch
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm-remove-src-dst-mm-parameter-in-copy_page_range-v2
further reorder some parameters and line format, per Jason
---
include/linux/mm.h | 3 kernel/fork.c | 2 mm/memory.c | 140 ++++++++++++++++++++++--------------------- 3 files changed, 76 insertions(+), 69 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-remove-src-dst-mm-parameter-in-copy_page_range-v2 +2 -1
@@ -1645,7 +1645,8 @@ struct mmu_notifier_range;void free_pgd_range (struct mmu_gather *tlb,unsigned long addr,unsigned long end,unsigned long floor,unsigned long ceiling); -int copy_page_range (struct vm_area_struct *vma,struct vm_area_struct *new); +int +copy_page_range (struct vm_area_struct *dst_vma,struct vm_area_struct *src_vma);int follow_pte_pmd (struct mm_struct *mm,unsigned long address,struct mmu_notifier_range *range,pte_t **ptepp,pmd_t **pmdpp,spinlock_t **ptlp);
kernel/fork.c renamed from kernel/fork.c~mm-remove-src-dst-mm-parameter-in-copy_page_range-v2 +1 -1
@@ -589,7 +589,7 @@ static __latent_entropy int dup_mmap(str mm->map_count++;if (!(tmp->vm_flags &VM_WIPEONFORK )) - retval =copy_page_range (mpnt, tmp); + retval =copy_page_range (tmp, mpnt);if (tmp->vm_ops && tmp->vm_ops->open) tmp->vm_ops->open (tmp);
mm/memory.c renamed from mm/memory.c~mm-remove-src-dst-mm-parameter-in-copy_page_range-v2 +73 -67
284 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-remove-src-dst-mm-parameter-in-copy_page_range.patch mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix.patch
[folded-merged] mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix has been removed from the -mm tree. Its filename was mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix.patch
The patch titled
Subject: mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix
has been removed from the -mm tree. Its filename was
mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix.patch
This patch was dropped because it was folded into mm-remove-src-dst-mm-parameter-in-copy_page_range.patch
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix
The required change attached; this is quite special that we only referenced the mm once in each of the function, so that temp variable can actually be avoided. Ideally there should be some way to only define the variable on archs that need this mm pointer (e.g., when set_pte_at() or some similar function is called multiple times in some function, it should still be helpful to introduce a local variable to keep dst_vma->vm_mm). However I don't know a good way to do this...
---
mm/memory.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-remove-src-dst-mm-parameter-in-copy_page_range-v2-fix +2 -4
@@ -798,7 +798,6 @@ copy_present_page(struct vm_area_struct pte_t *dst_pte, pte_t *src_pte, unsigned long addr, int *rss, struct page **prealloc, pte_t pte, struct page *page) { -struct mm_struct *dst_mm = dst_vma->vm_mm;struct mm_struct *src_mm = src_vma->vm_mm;struct page *new_page;
@@ -874,7 +873,7 @@ copy_present_page(struct vm_area_struct/* All done, just insert the new page copy in the child */ pte =mk_pte (new_page, dst_vma->vm_page_prot); pte =maybe_mkwrite (pte_mkdirty (pte), dst_vma); -set_pte_at (dst_mm, addr, dst_pte, pte); +set_pte_at (dst_vma->vm_mm, addr, dst_pte, pte);return 0 ; }
@@ -887,7 +886,6 @@ copy_present_pte(struct vm_area_struct * pte_t *dst_pte, pte_t *src_pte, unsigned long addr, int *rss, struct page **prealloc) { -struct mm_struct *dst_mm = dst_vma->vm_mm;struct mm_struct *src_mm = src_vma->vm_mm;unsigned long vm_flags = src_vma->vm_flags;pte_t pte = *src_pte;
@@ -932,7 +930,7 @@ copy_present_pte(struct vm_area_struct *if (!(vm_flags &VM_UFFD_WP )) pte =pte_clear_uffd_wp (pte); -set_pte_at (dst_mm, addr, dst_pte, pte); +set_pte_at (dst_vma->vm_mm, addr, dst_pte, pte);return 0 ; }
_
Patches currently in -mm which might be from [email protected] are
mm-remove-src-dst-mm-parameter-in-copy_page_range.patch
[folded-merged] kasan-port-kasan-tests-to-kunit-v14.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: kasan-port-kasan-tests-to-kunit-v14 has been removed from the -mm tree. Its filename was kasan-port-kasan-tests-to-kunit-v14.patch
The patch titled
Subject: kasan-port-kasan-tests-to-kunit-v14
has been removed from the -mm tree. Its filename was
kasan-port-kasan-tests-to-kunit-v14.patch
This patch was dropped because it was folded into kasan-port-kasan-tests-to-kunit.patch
------------------------------------------------------
From: Patricia Alfonso <[email protected]>
Subject: kasan-port-kasan-tests-to-kunit-v14
Fix some compile warnings in test_kasan_module
(https://www.spinics.net/lists/kernel/msg3660451.html)
---
lib/Makefile | 1 + 1 file changed, 1 insertion(+)
lib/Makefile renamed from lib/Makefile~kasan-port-kasan-tests-to-kunit-v14 +1 -0
@@ -69,6 +69,7 @@ obj-$(CONFIG_KASAN_KUNIT_TEST) += test_k CFLAGS_test_kasan.o += -fno-builtin CFLAGS_test_kasan.o += $(call cc-disable-warning, vla) obj-$(CONFIG_TEST_KASAN_MODULE) += test_kasan_module.o +CFLAGS_test_kasan_module.o += -fno-builtin obj-$(CONFIG_TEST_UBSAN) += test_ubsan.o CFLAGS_test_ubsan.o += $(call cc-disable-warning, vla) UBSAN_SANITIZE_test_ubsan.o := y
_
Patches currently in -mm which might be from [email protected] are
add-kunit-struct-to-current-task.patch
kunit-kasan-integration.patch
kasan-port-kasan-tests-to-kunit.patch
kasan-testing-documentation.patch
[folded-merged] mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix
has been removed from the -mm tree. Its filename was
mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix.patch
This patch was dropped because it was folded into mm-page_allocc-clean-code-by-removing-unnecessary-initialization.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix
remove `tmp' altogether
---
mm/page_alloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_allocc-clean-code-by-removing-unnecessary-initialization-fix +1 -3
@@ -5651,7 +5651,6 @@ static int find_next_best_node(int node,int n, val;int min_val =INT_MAX ;int best_node =NUMA_NO_NODE ; -const struct cpumask *tmp;/* Use the local node if we haven't already */ if (!node_isset (node, *used_node_mask)) {
@@ -5672,8 +5671,7 @@ static int find_next_best_node(int node, val += (n < node);/* Give preference to headless and unused nodes */ - tmp =cpumask_of_node (n); -if (!cpumask_empty (tmp)) +if (!cpumask_empty (cpumask_of_node (n))) val +=PENALTY_FOR_NODE_WITH_CPUS ;/* Slight preference for less loaded node */
_
Patches currently in -mm which might be from [email protected] are
mm-page_allocc-clean-code-by-removing-unnecessary-initialization.patch mm-mempool-add-else-to-split-mutually-exclusive-case-fix.patch memblock-make-memblock_debug-and-related-functionality-private-fix.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch
mm.patch
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch linux-next-rejects.patch fs-fuse-virtio_fsc-fix-for-mm-memremap_pages-convert-to-struct-range.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] mm-hugetlb-take-the-free-hpage-during-the-iteration-directly-v4.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-hugetlb-take-the-free-hpage-during-the-iteration-directly-v4 has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mm-hugetlb-take-the-free-hpage-during-the-iteration-directly-v4
has been removed from the -mm tree. Its filename was
mm-hugetlb-take-the-free-hpage-during-the-iteration-directly-v4.patch
This patch was dropped because it was folded into mm-hugetlb-take-the-free-hpage-during-the-iteration-directly.patch
------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: mm-hugetlb-take-the-free-hpage-during-the-iteration-directly-v4
---
mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-take-the-free-hpage-during-the-iteration-directly-v4 +1 -1
@@ -1041,7 +1041,7 @@ static struct page *dequeue_huge_page_nocontinue ;if (PageHWPoison (page)) -break ; +continue ;list_move (&page->lru, &h->hugepage_activelist);set_page_refcounted (page);
_
Patches currently in -mm which might be from [email protected] are
mm-mmap-rename-__vma_unlink_common-to-__vma_unlink.patch mm-mmap-leverage-vma_rb_erase_ignore-to-implement-vma_rb_erase.patch mm-mmap-leave-adjust_next-as-virtual-address-instead-of-page-frame-number.patch mm-mmap-not-necessary-to-check-mapping-separately.patch mm-mmap-check-on-file-instead-of-the-rb_root_cached-of-its-address_space.patch mm-hugetlb-not-necessary-to-coalesce-regions-recursively.patch mm-hugetlb-remove-vm_bug_onnrg-in-get_file_region_entry_from_cache.patch mm-hugetlb-use-list_splice-to-merge-two-list-at-once.patch mm-hugetlb-count-file_region-to-be-added-when-regions_needed-=-null.patch mm-hugetlb-a-page-from-buddy-is-not-on-any-list.patch mm-hugetlb-narrow-the-hugetlb_lock-protection-area-during-preparing-huge-page.patch mm-hugetlb-take-the-free-hpage-during-the-iteration-directly.patch mm-mempolicy-remove-or-narrow-the-lock-on-current.patch mm-remove-unused-alloc_page_vma_node.patch mm-page_reporting-drop-stale-list-head-check-in-page_reporting_cycle.patch bitops-simplify-get_count_order_long.patch bitops-use-the-same-mechanism-for-get_count_order.patch
[folded-merged] mm-mempool-add-else-to-split-mutually-exclusive-case-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-mempool-add-else-to-split-mutually-exclusive-case-fix has been removed from the -mm tree. Its filename was mm-mempool-add-else-to-split-mutually-exclusive-case-fix.patch
The patch titled
Subject: mm-mempool-add-else-to-split-mutually-exclusive-case-fix
has been removed from the -mm tree. Its filename was
mm-mempool-add-else-to-split-mutually-exclusive-case-fix.patch
This patch was dropped because it was folded into mm-mempool-add-else-to-split-mutually-exclusive-case.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-mempool-add-else-to-split-mutually-exclusive-case-fix
fix comment location
---
mm/mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/mempool.c renamed from mm/mempool.c~mm-mempool-add-else-to-split-mutually-exclusive-case-fix +2 -2
@@ -60,8 +60,8 @@ static void check_element(mempool_t *poo/* Mempools backed by slab allocator */ if (pool->free == mempool_free_slab || pool->free == mempool_kfree) {__check_element (pool, element,ksize (element)); -/* Mempools backed by page allocator */ }else if (pool->free == mempool_free_pages) { +/* Mempools backed by page allocator */ int order = (int )(long )pool->pool_data;void *addr =kmap_atomic ((struct page *)element);
@@ -83,8 +83,8 @@ static void poison_element(mempool_t *po/* Mempools backed by slab allocator */ if (pool->alloc == mempool_alloc_slab || pool->alloc == mempool_kmalloc) {__poison_element (element,ksize (element)); -/* Mempools backed by page allocator */ }else if (pool->alloc == mempool_alloc_pages) { +/* Mempools backed by page allocator */ int order = (int )(long )pool->pool_data;void *addr =kmap_atomic ((struct page *)element);
_
Patches currently in -mm which might be from [email protected] are
mm-mempool-add-else-to-split-mutually-exclusive-case.patch memblock-make-memblock_debug-and-related-functionality-private-fix.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch
mm.patch
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch linux-next-rejects.patch fs-fuse-virtio_fsc-fix-for-mm-memremap_pages-convert-to-struct-range.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] memblock-make-memblock_debug-and-related-functionality-private-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: memblock-make-memblock_debug-and-related-functionality-private-fix has been removed from the -mm tree. Its filename was…
The patch titled
Subject: memblock-make-memblock_debug-and-related-functionality-private-fix
has been removed from the -mm tree. Its filename was
memblock-make-memblock_debug-and-related-functionality-private-fix.patch
This patch was dropped because it was folded into memblock-make-memblock_debug-and-related-functionality-private.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: memblock-make-memblock_debug-and-related-functionality-private-fix
make memblock_dbg() safer and neater
---
mm/memblock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
mm/memblock.c renamed from mm/memblock.c~memblock-make-memblock_debug-and-related-functionality-private-fix +5 -2
@@ -137,8 +137,11 @@ struct memblock_type physmem = { i < memblock_type->cnt; \ i++, rgn = &memblock_type->regions[i]) -#define memblock_dbg (fmt, ...) \ - if (memblock_debug) printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) +#define memblock_dbg (fmt, ...) \ + do { \ + if (memblock_debug) \ + pr_info(fmt, ##__VA_ARGS__); \ + } while (0) static int memblock_debug __initdata_memblock; static bool system_has_some_mirror __initdata_memblock = false;
_
Patches currently in -mm which might be from [email protected] are
memblock-make-memblock_debug-and-related-functionality-private.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch
mm.patch
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch linux-next-rejects.patch fs-fuse-virtio_fsc-fix-for-mm-memremap_pages-convert-to-struct-range.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix has been removed from the -mm tree. Its filename was…
The patch titled
Subject: arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix
has been removed from the -mm tree. Its filename was
arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix.patch
This patch was dropped because it was folded into arch-drivers-replace-for_each_membock-with-for_each_mem_range.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix
fix arch/arm/mm/pmsa-v7.c build
---
arch/arm/mm/pmsa-v7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/pmsa-v7.c renamed from arch/arm/mm/pmsa-v7.c~arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix +1 -1
@@ -273,7 +273,7 @@ void __init pmsav7_adjust_lowmem_bounds(panic ("First memory bank must be contiguous from PHYS_OFFSET" ); mem_start = reg_start; - mem_end = reg_end + mem_end = reg_end; specified_mem_size = mem_end - mem_start; }else {/*
_
Patches currently in -mm which might be from [email protected] are
arch-drivers-replace-for_each_membock-with-for_each_mem_range.patch
mm.patch
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch linux-next-rejects.patch fs-fuse-virtio_fsc-fix-for-mm-memremap_pages-convert-to-struct-range.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix-2.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mips: fix cavium-octeon build caused by memblock refactoring has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mips: fix cavium-octeon build caused by memblock refactoring
has been removed from the -mm tree. Its filename was
arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix-2.patch
This patch was dropped because it was folded into arch-drivers-replace-for_each_membock-with-for_each_mem_range.patch
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: mips: fix cavium-octeon build caused by memblock refactoring
MIPS cavium_octeon_defconfig build failed like this:
arch/mips/cavium-octeon/dma-octeon.c:205:7: error: mem' undeclared (first use in this function); did you mean sem'?
Caused by patch ("arch, drivers: replace for_each_membock() with for_each_mem_range()")
Replacing stale 'mem->base' reference with 'start' fixes the issue.
Reported by "kernelci.org bot" <[email protected]>
---
arch/mips/cavium-octeon/dma-octeon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/cavium-octeon/dma-octeon.c renamed from arch/mips/cavium-octeon/dma-octeon.c~arch-drivers-replace-for_each_membock-with-for_each_mem_range-fix-2 +1 -1
@@ -202,7 +202,7 @@ void __init plat_swiotlb_setup(void)for_each_mem_range (i, &start, &end) {/* These addresses map low for PCI. */ -if (mem->base >0x410000000ull && !OCTEON_IS_OCTEON2 ()) +if (start >0x410000000ull && !OCTEON_IS_OCTEON2 ())continue ; addr_size += (end - start);
_
Patches currently in -mm which might be from [email protected] are
kvm-ppc-book3s-hv-simplify-kvm_cma_reserve.patch dma-contiguous-simplify-cma_early_percent_memory.patch arm-xtensa-simplify-initialization-of-high-memory-pages.patch arm64-numa-simplify-dummy_numa_init.patch h8300-nds32-openrisc-simplify-detection-of-memory-extents.patch riscv-drop-unneeded-node-initialization.patch mircoblaze-drop-unneeded-numa-and-sparsemem-initializations.patch memblock-make-for_each_memblock_type-iterator-private.patch memblock-make-memblock_debug-and-related-functionality-private.patch memblock-reduce-number-of-parameters-in-for_each_mem_range.patch arch-mm-replace-for_each_memblock-with-for_each_mem_pfn_range.patch arch-drivers-replace-for_each_membock-with-for_each_mem_range.patch x86-setup-simplify-initrd-relocation-and-reservation.patch x86-setup-simplify-reserve_crashkernel.patch memblock-remove-unused-memblock_mem_size.patch memblock-implement-for_each_reserved_mem_region-using-__next_mem_region.patch memblock-use-separate-iterators-for-memory-and-reserved-regions.patch mm-remove-unused-early_pfn_valid.patch
[folded-merged] mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3 has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3
has been removed from the -mm tree. Its filename was
mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3.patch
This patch was dropped because it was folded into mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary.patch
------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3
- Addressed Eric Biederman's comments from:
https://lore.kernel.org/linux-mm/[email protected]/
-- renabled oom_adj_lock back to oom_adj_mutex
-- renamed MMF_PROC_SHARED into MMF_MULTIPROCESS and fixed its comment
- Updated description to reflect the change
---
fs/proc/base.c | 6 +++--- include/linux/oom.h | 2 +- include/linux/sched/coredump.h | 2 +- kernel/fork.c | 6 +++--- mm/oom_kill.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-)
fs/proc/base.c renamed from fs/proc/base.c~mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3 +3 -3
@@ -1063,7 +1063,7 @@ static int __set_oom_adj(struct file *fiif (!task)return -ESRCH ; -mutex_lock (&oom_adj_lock); +mutex_lock (&oom_adj_mutex);if (legacy) {if (oom_adj < task->signal->oom_score_adj && !capable (CAP_SYS_RESOURCE )) {
@@ -1094,7 +1094,7 @@ static int __set_oom_adj(struct file *fistruct task_struct *p =find_lock_task_mm (task);if (p) { -if (test_bit (MMF_PROC_SHARED , &p->mm->flags)) { +if (test_bit (MMF_MULTIPROCESS , &p->mm->flags)) { mm = p->mm;mmgrab (mm); }
@@ -1131,7 +1131,7 @@ static int __set_oom_adj(struct file *fimmdrop (mm); } err_unlock: -mutex_unlock (&oom_adj_lock); +mutex_unlock (&oom_adj_mutex);put_task_struct (task);return err; }
include/linux/oom.h renamed from include/linux/oom.h~mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3 +1 -1
@@ -55,7 +55,7 @@ struct oom_control { };extern struct mutex oom_lock; -extern struct mutex oom_adj_lock; +extern struct mutex oom_adj_mutex;static inline void set_current_oom_origin (void ) {
include/linux/sched/coredump.h renamed from include/linux/sched/coredump.h~mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3 +1 -1
@@ -72,7 +72,7 @@ static inline int get_dumpable(struct mm#define MMF_DISABLE_THP 24/* disable THP for all VMAs */ #define MMF_OOM_VICTIM 25/* mm is the oom victim */ #define MMF_OOM_REAP_QUEUED 26/* mm was queued for oom_reaper */ -#define MMF_PROC_SHARED 27/* mm is shared while sighand is not */ +#define MMF_MULTIPROCESS 27/* mm is shared between processes */ #define MMF_DISABLE_THP_MASK (1 << MMF_DISABLE_THP)#define MMF_INIT_MASK (MMF_DUMPABLE_MASK | MMF_DUMP_FILTER_MASK |\
kernel/fork.c renamed from kernel/fork.c~mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3 +3 -3
@@ -1821,12 +1821,12 @@ static void copy_oom_score_adj(u64 clonereturn ;/* We need to synchronize with __set_oom_adj */ -mutex_lock (&oom_adj_lock); -set_bit (MMF_PROC_SHARED , &tsk->mm->flags); +mutex_lock (&oom_adj_mutex); +set_bit (MMF_MULTIPROCESS , &tsk->mm->flags);/* Update the values in case they were changed after copy_signal */ tsk->signal->oom_score_adj = current->signal->oom_score_adj; tsk->signal->oom_score_adj_min = current->signal->oom_score_adj_min; -mutex_unlock (&oom_adj_lock); +mutex_unlock (&oom_adj_mutex); }/*
mm/oom_kill.c renamed from mm/oom_kill.c~mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary-v3 +1 -1
@@ -65,7 +65,7 @@ int sysctl_oom_dump_tasks = 1;*/ DEFINE_MUTEX (oom_lock);/* Serializes oom_score_adj and oom_score_adj_min updates */ -DEFINE_MUTEX (oom_adj_lock); +DEFINE_MUTEX (oom_adj_mutex);static inline bool is_memcg_oom (struct oom_control *oc) {
_
Patches currently in -mm which might be from [email protected] are
mm-oom_adj-dont-loop-through-tasks-in-__set_oom_adj-when-not-necessary.patch
[folded-merged] powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix has been removed from the -mm tree. Its filename was powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch
The patch titled
Subject: powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix
has been removed from the -mm tree. Its filename was
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix.patch
This patch was dropped because it was folded into powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix
whitespace fix, per Christophe
---
arch/powerpc/include/asm/book3s/64/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/book3s/64/pgtable.h renamed from arch/powerpc/include/asm/book3s/64/pgtable.h~powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte-fix +1 -1
@@ -820,7 +820,7 @@ static inline void __set_pte_at(struct m* Keep the _PAGE_PTE added till we are sure we handle _PAGE_PTE * in all the callers. */ - pte =__pte_raw (pte_raw (pte) |cpu_to_be64 (_PAGE_PTE)); + pte =__pte_raw (pte_raw (pte) |cpu_to_be64 (_PAGE_PTE));if (radix_enabled ())return radix__set_pte_at (mm, addr, ptep, pte, percpu);
_
Patches currently in -mm which might be from [email protected] are
powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte.patch
xarray-add-xa_get_order-fix.patch
xarray-add-xas_split-fix.patch
mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm/debug_vm_pgtable: drop hugetlb_advanced_tests() has been removed from the -mm tree. Its filename was mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64-fix.patch
The patch titled
Subject: mm/debug_vm_pgtable: drop hugetlb_advanced_tests()
has been removed from the -mm tree. Its filename was
mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64-fix.patch
This patch was dropped because it was folded into mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64.patch
------------------------------------------------------
From: Anshuman Khandual <[email protected]>
Subject: mm/debug_vm_pgtable: drop hugetlb_advanced_tests()
hugetlb_advanced_tests() has now stopped working on i386 platform due to some recent changes with respect to page table lock. The test never worked on ppc64 platform, which resulted in disabling it selectively. Let's just drop hugetlb_advanced_tests() for now and in the process free up the entire test from the only platform specific test execution path.
https://lore.kernel.org/lkml/[email protected]/#t
---
mm/debug_vm_pgtable.c | 55 ---------------------------------------- 1 file changed, 55 deletions(-)
mm/debug_vm_pgtable.c renamed from mm/debug_vm_pgtable.c~mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64-fix +0 -55
@@ -810,59 +810,8 @@ static void __init hugetlb_basic_tests(uWARN_ON (!pte_huge (pte_mkhuge (pte))); #endif /* CONFIG_ARCH_WANT_GENERAL_HUGETLB */ } - -#ifndef CONFIG_PPC_BOOK3S_64 -static void __init hugetlb_advanced_tests (struct mm_struct *mm, -struct vm_area_struct *vma, -pte_t *ptep,unsigned long pfn, -unsigned long vaddr,pgprot_t prot) -{ -struct page *page =pfn_to_page (pfn); -pte_t pte =ptep_get (ptep); -unsigned long paddr =__pfn_to_phys (pfn) &PMD_MASK ; - -pr_debug ("Validating HugeTLB advanced\n" ); - pte =pte_mkhuge (mk_pte (pfn_to_page (PHYS_PFN (paddr)), prot)); -set_huge_pte_at (mm, vaddr, ptep, pte); -barrier (); -WARN_ON (!pte_same (pte,huge_ptep_get (ptep))); -huge_pte_clear (mm, vaddr, ptep,PMD_SIZE ); - pte =huge_ptep_get (ptep); -WARN_ON (!huge_pte_none (pte)); - - pte =mk_huge_pte (page, prot); -set_huge_pte_at (mm, vaddr, ptep, pte); -barrier (); -huge_ptep_set_wrprotect (mm, vaddr, ptep); - pte =huge_ptep_get (ptep); -WARN_ON (huge_pte_write (pte)); - - pte =mk_huge_pte (page, prot); -set_huge_pte_at (mm, vaddr, ptep, pte); -barrier (); -huge_ptep_get_and_clear (mm, vaddr, ptep); - pte =huge_ptep_get (ptep); -WARN_ON (!huge_pte_none (pte)); - - pte =mk_huge_pte (page, prot); - pte =huge_pte_wrprotect (pte); -set_huge_pte_at (mm, vaddr, ptep, pte); -barrier (); - pte =huge_pte_mkwrite (pte); - pte =huge_pte_mkdirty (pte); -huge_ptep_set_access_flags (vma, vaddr, ptep, pte,1 ); - pte =huge_ptep_get (ptep); -WARN_ON (!(huge_pte_write (pte) &&huge_pte_dirty (pte))); -} -#endif #else /* !CONFIG_HUGETLB_PAGE */ static void __init hugetlb_basic_tests (unsigned long pfn,pgprot_t prot) { } -static void __init hugetlb_advanced_tests (struct mm_struct *mm, -struct vm_area_struct *vma, -pte_t *ptep,unsigned long pfn, -unsigned long vaddr,pgprot_t prot) -{ -}#endif /* CONFIG_HUGETLB_PAGE */ #ifdef CONFIG_TRANSPARENT_HUGEPAGE
@@ -1067,10 +1016,6 @@ static int __init debug_vm_pgtable(void)pud_populate_tests (mm, pudp, saved_pmdp);spin_unlock (ptl); -#ifndef CONFIG_PPC_BOOK3S_64 -hugetlb_advanced_tests (mm, vma, ptep, pte_aligned, vaddr, prot); -#endif -spin_lock (&mm->page_table_lock);p4d_clear_tests (mm, p4dp);pgd_clear_tests (mm, pgdp);
_
Patches currently in -mm which might be from [email protected] are
mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64.patch
[folded-merged] mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm/debug_vm_pgtable: avoid kernel crash with riscv has been removed from the -mm tree. Its filename was mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix.patch
The patch titled
Subject: mm/debug_vm_pgtable: avoid kernel crash with riscv
has been removed from the -mm tree. Its filename was
mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix.patch
This patch was dropped because it was folded into mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test.patch
------------------------------------------------------
From: "Aneesh Kumar K.V" <[email protected]>
Subject: mm/debug_vm_pgtable: avoid kernel crash with riscv
It was observed that the usage of RANDOM_ORVALUE with a valid pte cause kernel crash on riscv. Comment out the usage of random value on riscv
---
mm/debug_vm_pgtable.c | 2 ++ 1 file changed, 2 insertions(+)
mm/debug_vm_pgtable.c renamed from mm/debug_vm_pgtable.c~mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix +2 -0
@@ -548,7 +548,9 @@ static void __init pte_clear_tests(strucpte_t pte =pfn_pte (pfn, prot);pr_debug ("Validating PTE clear\n" ); +#ifndef CONFIG_RISCV pte =__pte (pte_val (pte) |RANDOM_ORVALUE ); +#endif set_pte_at (mm, vaddr, ptep, pte);barrier ();pte_clear (mm, vaddr, ptep);
_
Patches currently in -mm which might be from [email protected] are
powerpc-mm-add-debug_vm-warn-for-pmd_clear.patch powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte.patch mm-debug_vm_pgtable-ppc64-avoid-setting-top-bits-in-radom-value.patch mm-debug_vm_pgtables-hugevmap-use-the-arch-helper-to-identify-huge-vmap-support.patch mm-debug_vm_pgtable-savedwrite-enable-savedwrite-test-with-config_numa_balancing.patch mm-debug_vm_pgtable-thp-mark-the-pte-entry-huge-before-using-set_pmd-pud_at.patch mm-debug_vm_pgtable-set_pte-pmd-pud-dont-use-set__at-to-update-an-existing-pte-entry.patch mm-debug_vm_pgtable-locks-move-non-page-table-modifying-test-together.patch mm-debug_vm_pgtable-locks-take-correct-page-table-lock.patch mm-debug_vm_pgtable-thp-use-page-table-depost-withdraw-with-thp.patch mm-debug_vm_pgtable-pmd_clear-dont-use-pmd-pud_clear-on-pte-entries.patch mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64.patch mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test.patch mm-debug_vm_pgtable-avoid-doing-memory-allocation-with-pgtable_t-mapped.patch
[folded-merged] xarray-add-xa_get_order-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: xarray-add-xa_get_order-fix has been removed from the -mm tree. Its filename was xarray-add-xa_get_order-fix.patch
The patch titled
Subject: xarray-add-xa_get_order-fix
has been removed from the -mm tree. Its filename was
xarray-add-xa_get_order-fix.patch
This patch was dropped because it was folded into xarray-add-xa_get_order.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: xarray-add-xa_get_order-fix
export xa_get_order to modules
ERROR: modpost: "xa_get_order" [lib/test_xarray.ko] undefined!
---
lib/xarray.c | 1 + 1 file changed, 1 insertion(+)
lib/xarray.c renamed from lib/xarray.c~xarray-add-xa_get_order-fix +1 -0
@@ -1631,6 +1631,7 @@ unlock: return order; } +EXPORT_SYMBOL (xa_get_order);#endif /* CONFIG_XARRAY_MULTI */ /**
_
Patches currently in -mm which might be from [email protected] are
xarray-add-xa_get_order.patch
xarray-add-xas_split-fix.patch
mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] xarray-add-xas_split-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: xarray-add-xas_split-fix has been removed from the -mm tree. Its filename was xarray-add-xas_split-fix.patch
The patch titled
Subject: xarray-add-xas_split-fix
has been removed from the -mm tree. Its filename was
xarray-add-xas_split-fix.patch
This patch was dropped because it was folded into xarray-add-xas_split.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: xarray-add-xas_split-fix
export xas_split_alloc() to modules
ERROR: modpost: "xas_split_alloc" [lib/test_xarray.ko] undefined!
---
lib/xarray.c | 1 + 1 file changed, 1 insertion(+)
lib/xarray.c renamed from lib/xarray.c~xarray-add-xas_split-fix +1 -0
@@ -1025,6 +1025,7 @@ nomem:xas_destroy (xas);xas_set_err (xas, -ENOMEM ); } +EXPORT_SYMBOL_GPL (xas_split_alloc);/** * xas_split() - Split a multi-index entry into smaller entries.
_
Patches currently in -mm which might be from [email protected] are
xarray-add-xas_split.patch
mm-memory_hotplug-simplify-page-offlining-fix.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] xarray-add-xas_split-fix-2.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: xarray-add-xas_split-fix-2 has been removed from the -mm tree. Its filename was xarray-add-xas_split-fix-2.patch
The patch titled
Subject: xarray-add-xas_split-fix-2
has been removed from the -mm tree. Its filename was
xarray-add-xas_split-fix-2.patch
This patch was dropped because it was folded into xarray-add-xas_split.patch
------------------------------------------------------
From: Matthew Wilcox (Oracle) <[email protected]>
Subject: xarray-add-xas_split-fix-2
fix xarray split
---
lib/test_xarray.c | 3 +++ lib/xarray.c | 21 ++++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-)
lib/test_xarray.c renamed from lib/test_xarray.c~xarray-add-xas_split-fix-2 +3 -0
@@ -1524,6 +1524,9 @@ static void check_split_1(struct xarray }XA_BUG_ON (xa, i !=1 << order); +xa_set_mark (xa, index,XA_MARK_0 ); +XA_BUG_ON (xa, !xa_get_mark (xa, index,XA_MARK_0 )); +xa_destroy (xa); }
lib/xarray.c renamed from lib/xarray.c~xarray-add-xas_split-fix-2 +16 -5
@@ -973,10 +973,11 @@ static void node_set_marks(struct xa_nodxa_mark_t mark =XA_MARK_0 ;for (;;) { -if (marks & (1 << (__force unsigned int )mark)) +if (marks & (1 << (__force unsigned int )mark)) {node_set_mark (node, offset, mark); -if (child) -node_mark_all (child, mark); +if (child) +node_mark_all (child, mark); + }if (mark ==XA_MARK_MAX )break ;mark_inc (mark);
@@ -984,8 +985,18 @@ static void node_set_marks(struct xa_nod }/** -* Allocate memory for splitting an entry of @order size into the order -* stored in the @xas. +* xas_split_alloc() - Allocate memory for splitting an entry. +* @xas: XArray operation state. +* @entry: New entry which will be stored in the array. +* @order: New entry order. +* @gfp: Memory allocation flags. +* +* This function should be called before calling xas_split(). +* If necessary, it will allocate new nodes (and fill them with @entry) +* to prepare for the upcoming split of an entry of @order size into +* entries of the order stored in the @xas. +* +* Context: May sleep if @gfp flags permit. */ void xas_split_alloc (struct xa_state *xas,void *entry,unsigned int order,gfp_t gfp)
_
Patches currently in -mm which might be from [email protected] are
xarray-add-xa_get_order.patch
xarray-add-xas_split.patch xarray-add-xas_split-fix-3patch.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch
[folded-merged] xarray-add-xas_split-fix-3patch.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: fix xarray has been removed from the -mm tree. Its filename was xarray-add-xas_split-fix-3patch.patch
The patch titled
Subject: fix xarray
has been removed from the -mm tree. Its filename was
xarray-add-xas_split-fix-3patch.patch
This patch was dropped because it was folded into xarray-add-xas_split.patch
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: fix xarray
Testing today revealed a rather annoying bug where we can free an initialised node back to the slab cache without zeroing it first. That ends up creating a corrupted XArray ... whichever XArray happens to allocate that node next.
---
lib/xarray.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
lib/xarray.c renamed from lib/xarray.c~xarray-add-xas_split-fix-3patch +1 -2
@@ -271,8 +271,7 @@ static void xas_destroy(struct xa_statewhile (node) {XA_NODE_BUG_ON (node, !list_empty (&node->private_list)); next =rcu_dereference_raw (node->parent); -/* XXX: need to free children */ -kmem_cache_free (radix_tree_node_cachep, node); +radix_tree_node_rcu_free (&node->rcu_head); xas->xa_alloc = node = next; } }
_
Patches currently in -mm which might be from [email protected] are
xarray-add-xa_get_order.patch
xarray-add-xas_split.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch
[folded-merged] mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm: Fix remove page fault assumption of compound page size has been removed from the -mm tree. Its filename was…
The patch titled
Subject: mm: Fix remove page fault assumption of compound page size
has been removed from the -mm tree. Its filename was
mm-memory-remove-page-fault-assumption-of-compound-page-size-fix.patch
This patch was dropped because it was folded into mm-memory-remove-page-fault-assumption-of-compound-page-size.patch
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: mm: Fix remove page fault assumption of compound page size
page_order() and compound_order() are different things
---
mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory.c renamed from mm/memory.c~mm-memory-remove-page-fault-assumption-of-compound-page-size-fix +1 -1
@@ -3749,7 +3749,7 @@ static vm_fault_t do_set_pmd(struct vm_freturn ret; page =compound_head (page); -if (page_order (page) !=HPAGE_PMD_ORDER ) +if (compound_order (page) !=HPAGE_PMD_ORDER )return ret;/*
_
Patches currently in -mm which might be from [email protected] are
xarray-add-xa_get_order.patch
xarray-add-xas_split.patch mm-filemap-fix-storing-to-a-thp-shadow-entry.patch mm-filemap-fix-page-cache-removal-for-arbitrary-sized-thps.patch mm-memory-remove-page-fault-assumption-of-compound-page-size.patch mm-page_owner-change-split_page_owner-to-take-a-count.patch mm-huge_memory-fix-page_trans_huge_mapcount-assumption-of-thp-size.patch mm-huge_memory-fix-can_split_huge_page-assumption-of-thp-size.patch mm-rmap-fix-assumptions-of-thp-size.patch mm-truncate-fix-truncation-for-pages-of-arbitrary-size.patch mm-page-writeback-support-tail-pages-in-wait_for_stable_page.patch mm-vmscan-allow-arbitrary-sized-pages-to-be-paged-out.patch fs-add-a-filesystem-flag-for-thps.patch fs-do-not-update-nr_thps-for-mappings-which-support-thps.patch mm-readahead-add-define_readahead.patch mm-readahead-make-page_cache_ra_unbounded-take-a-readahead_control.patch mm-readahead-make-do_page_cache_ra-take-a-readahead_control.patch mm-readahead-add-page_cache_sync_ra-and-page_cache_async_ra.patch mm-rename-page_order-to-buddy_order.patch ramfs-fix-nommu-mmap-with-gaps-in-the-page-cache.patch harden-autofs-ioctl-table.patch mm-update-the-documentation-for-vfree.patch
[folded-merged] mm-memory_hotplug-simplify-page-offlining-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: mm-memory_hotplug-simplify-page-offlining-fix has been removed from the -mm tree. Its filename was mm-memory_hotplug-simplify-page-offlining-fix.patch
The patch titled
Subject: mm-memory_hotplug-simplify-page-offlining-fix
has been removed from the -mm tree. Its filename was
mm-memory_hotplug-simplify-page-offlining-fix.patch
This patch was dropped because it was folded into mm-memory_hotplug-simplify-page-offlining.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-memory_hotplug-simplify-page-offlining-fix
---
mm/memory_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-memory_hotplug-simplify-page-offlining-fix +2 -1
@@ -1581,9 +1581,10 @@ int __ref offline_pages(unsigned long st* because has_unmovable_pages explicitly checks for * PageBuddy on freed pages on other zones. */ + ret =test_pages_isolated (start_pfn, end_pfn,MEMORY_OFFLINE );if (ret)drain_all_pages (zone); - }while (test_pages_isolated (start_pfn, end_pfn,MEMORY_OFFLINE )); + }while (ret);/* Mark all sections offline and remove free pages from the buddy. */ __offline_isolated_pages (start_pfn, end_pfn);
_
Patches currently in -mm which might be from [email protected] are
mm-memory_hotplug-simplify-page-offlining.patch checkpatch-warn-on-self-assignments-checkpatch-fixes.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] kernel-resource-make-release_mem_region_adjustable-never-fail-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: kernel/resource: fix use of ternary condition in release_mem_region_adjustable has been removed from the -mm tree. Its filename was…
The patch titled
Subject: kernel/resource: fix use of ternary condition in release_mem_region_adjustable
has been removed from the -mm tree. Its filename was
kernel-resource-make-release_mem_region_adjustable-never-fail-fix.patch
This patch was dropped because it was folded into kernel-resource-make-release_mem_region_adjustable-never-fail.patch
------------------------------------------------------
From: Nathan Chancellor <[email protected]>
Subject: kernel/resource: fix use of ternary condition in release_mem_region_adjustable
Clang warns:
kernel/resource.c:1281:53: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses]
new_res = alloc_resource(GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL : 0);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
kernel/resource.c:1281:53: note: place parentheses around the '|'
expression to silence this warning
new_res = alloc_resource(GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL : 0);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
kernel/resource.c:1281:53: note: place parentheses around the '?:'
expression to evaluate it first
new_res = alloc_resource(GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL : 0);
^
( )1 warning generated.
Add the parentheses as it was clearly intended for the ternary condition to be evaluated first.
---
kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/resource.c renamed from kernel/resource.c~kernel-resource-make-release_mem_region_adjustable-never-fail-fix +1 -1
@@ -1279,7 +1279,7 @@ void release_mem_region_adjustable(struc* similarly). */ retry: - new_res =alloc_resource (GFP_KERNEL | alloc_nofail ? __GFP_NOFAIL :0 ); + new_res =alloc_resource (GFP_KERNEL | (alloc_nofail ? __GFP_NOFAIL :0 )); p = &parent->child;write_lock (&resource_lock);
_
Patches currently in -mm which might be from [email protected] are
kernel-resource-make-release_mem_region_adjustable-never-fail.patch
[folded-merged] checkpatch-warn-on-self-assignments-checkpatch-fixes.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: checkpatch-warn-on-self-assignments-checkpatch-fixes has been removed from the -mm tree. Its filename was checkpatch-warn-on-self-assignments-checkpatch-fixes.patch
The patch titled
Subject: checkpatch-warn-on-self-assignments-checkpatch-fixes
has been removed from the -mm tree. Its filename was
checkpatch-warn-on-self-assignments-checkpatch-fixes.patch
This patch was dropped because it was folded into checkpatch-warn-on-self-assignments.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: checkpatch-warn-on-self-assignments-checkpatch-fixes
WARNING: Unknown commit id '63a0895d960a', maybe rebased or not pulled? #4:
The uninitialized_var() macro was removed recently via commit 63a0895d960a
WARNING: 'assigments' may be misspelled - perhaps 'assignments'? #30: FILE: scripts/checkpatch.pl:3904:
+# check for self assigments used to avoid compiler warnings
total: 0 errors, 2 warnings, 17 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
./patches/checkpatch-warn-on-self-assignments.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Please run checkpatch prior to sending patches
---
scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-warn-on-self-assignments-checkpatch-fixes +1 -1
@@ -3899,7 +3899,7 @@ sub process { #ignore lines not being added next if ($line =~ /^[^\+]/); -# check for self assigments used to avoid compiler warnings +# check for self assignments used to avoid compiler warnings # e.g.: int foo = foo, *bar = NULL; # struct foo bar = *(&(bar)); if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {
_
Patches currently in -mm which might be from [email protected] are
checkpatch-warn-on-self-assignments.patch checkpatch-emit-a-warning-on-embedded-filenames-fix.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] checkpatch-allow-not-using-f-with-files-that-are-in-git-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: checkpatch: fix git "fatal" warning if file argument outside kernel tree has been removed from the -mm tree. Its filename was…
The patch titled
Subject: checkpatch: fix git "fatal" warning if file argument outside kernel tree
has been removed from the -mm tree. Its filename was
checkpatch-allow-not-using-f-with-files-that-are-in-git-fix.patch
This patch was dropped because it was folded into checkpatch-allow-not-using-f-with-files-that-are-in-git.patch
------------------------------------------------------
From: Joe Perches <[email protected]>
Subject: checkpatch: fix git "fatal" warning if file argument outside kernel tree
commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that are in git") in linux-next causes checkpatch to emit a fatal message:
fatal: <file>: '<file>' is outside repository at '<kernel_dir>'
Fix that by sending git's error output to /dev/null instead.
---
scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-allow-not-using-f-with-files-that-are-in-git-fix +1 -1
@@ -979,7 +979,7 @@ sub git_is_single_file { return 0 if ((which("git") eq "") || !(-e "$gitroot")); - my $output = `${git_command} ls-files -- $filename`; + my $output = `${git_command} ls-files -- $filename 2>/dev/null`; my $count = $output =~ tr/\n//; return $count eq 1 && $output =~ m{^${filename}$}; }
_
Patches currently in -mm which might be from [email protected] are
get_maintainer-add-test-for-file-in-vcs.patch get_maintainer-exclude-maintainers-files-from-git-fallback.patch checkpatch-move-repeated-word-test.patch checkpatch-add-test-for-comma-use-that-should-be-semicolon.patch checkpatch-warn-on-self-assignments.patch checkpatch-allow-not-using-f-with-files-that-are-in-git.patch checkpatch-emit-a-warning-on-embedded-filenames.patch checkpatch-test-git_dir-changes.patch
[folded-merged] fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix has been removed from the -mm tree. Its filename was…
The patch titled
Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix
has been removed from the -mm tree. Its filename was
fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
This patch was dropped because it was folded into fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix
fix max() warning
---
fs/binfmt_elf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix +4 -2
@@ -429,10 +429,12 @@ static unsigned long maximum_alignment(sfor (i =0 ; i < nr; i++) {if (cmds[i].p_type ==PT_LOAD ) { +unsigned long p_align = cmds[i].p_align; +/* skip non-power of two alignments */ -if (!is_power_of_2 (cmds[i].p_align)) +if (!is_power_of_2 (p_align))continue ; - alignment =max (alignment, cmds[i].p_align); + alignment =max (alignment, p_align); } }
_
Patches currently in -mm which might be from [email protected] are
fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch
[folded-merged] fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-v4.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-v4 has been removed from the -mm tree. Its filename was…
The patch titled
Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-v4
has been removed from the -mm tree. Its filename was
fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-v4.patch
This patch was dropped because it was folded into fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address.patch
------------------------------------------------------
From: Chris Kennelly <[email protected]>
Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-v4
augment comment
---
fs/binfmt_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-v4 +1 -1
@@ -431,7 +431,7 @@ static unsigned long maximum_alignment(sif (cmds[i].p_type ==PT_LOAD ) {unsigned long p_align = cmds[i].p_align; -/* skip non-power of two alignments */ +/* skip non-power of two alignments as invalid */ if (!is_power_of_2 (p_align))continue ; alignment =max (alignment, p_align);
_
Patches currently in -mm which might be from [email protected] are
fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address.patch add-self-test-for-verifying-load-alignment.patch
[folded-merged] checkpatch-emit-a-warning-on-embedded-filenames-fix.patch removed from -mm tree
In reply to Andrew MortonThe patch titled Subject: checkpatch-emit-a-warning-on-embedded-filenames-fix has been removed from the -mm tree. Its filename was checkpatch-emit-a-warning-on-embedded-filenames-fix.patch
The patch titled
Subject: checkpatch-emit-a-warning-on-embedded-filenames-fix
has been removed from the -mm tree. Its filename was
checkpatch-emit-a-warning-on-embedded-filenames-fix.patch
This patch was dropped because it was folded into checkpatch-emit-a-warning-on-embedded-filenames.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: checkpatch-emit-a-warning-on-embedded-filenames-fix
remove stray " di"
---
scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-emit-a-warning-on-embedded-filenames-fix +1 -1
@@ -3274,7 +3274,7 @@ sub process { } # check for embedded filenames - if ($rawline =~ /^\+.*\Q$realfile\E/) { di + if ($rawline =~ /^\+.*\Q$realfile\E/) { WARN("EMBEDDED_FILENAME", "It's generally not useful to have the filename in the file\n" . $herecurr); }
_
Patches currently in -mm which might be from [email protected] are
checkpatch-emit-a-warning-on-embedded-filenames.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch linux-next-rejects.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch