Closed sirlucjan closed 5 years ago
I've resync against 5.0.10:
https://github.com/sirlucjan/uksm/commit/52578591aa1f37b54e5e4f8f41988dd667328fcf
Seems to be OK:
-> Applying patch uksm-5.0.10.patch...
patching file Documentation/vm/uksm.txt
patching file fs/exec.c
patching file fs/proc/meminfo.c
patching file include/asm-generic/pgtable.h
patching file include/linux/ksm.h
patching file include/linux/mm_types.h
patching file include/linux/mmzone.h
patching file include/linux/sradix-tree.h
patching file include/linux/uksm.h
patching file kernel/fork.c
patching file lib/Makefile
patching file lib/sradix-tree.c
patching file mm/Kconfig
patching file mm/Makefile
patching file mm/ksm.c
patching file mm/memory.c
patching file mm/mmap.c
patching file mm/uksm.c
patching file mm/vmstat.c
Thanks @sirlucjan, I don't really support patches, it's just too much work, but I appreciate your effort :)
In the case someone other is looking for a fix for a 5.0.10, I attach here two patches that can be used, one before, and one after applying the official uksm-5.0.patch. In this way the 5.0 remain unchanged, at least until a next big change in upstream minor 5.0.x.
uksm-5.0.10-0001-coredump-fix-race-condition-mm-h-revert.patch.txt uksm-5.0.10-0002-coredump-fix-race-condition-mm-h-reapply.patch.txt
I've compiled uksm-5.0.patch with 5.0.10-rc1 and I got an error
Here is mmap.c.rej: