The patch titled Subject: proc-kcore-dont-grab-lock-for-kclist_add-fix has been added to the -mm tree. Its filename is proc-kcore-dont-grab-lock-for-kclist_add-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-kcore-dont-grab-lock-for-kclist_add-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-kcore-dont-grab-lock-for-kclist_add-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: proc-kcore-dont-grab-lock-for-kclist_add-fix mark kclist_add() __init Cc: Omar Sandoval <osandov@xxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Bhupesh Sharma <bhsharma@xxxxxxxxxx> Cc: Eric Biederman <ebiederm@xxxxxxxxxxxx> Cc: James Morse <james.morse@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN fs/proc/kcore.c~proc-kcore-dont-grab-lock-for-kclist_add-fix fs/proc/kcore.c --- a/fs/proc/kcore.c~proc-kcore-dont-grab-lock-for-kclist_add-fix +++ a/fs/proc/kcore.c @@ -63,7 +63,7 @@ static DEFINE_RWLOCK(kclist_lock); static int kcore_need_update = 1; /* This doesn't grab kclist_lock, so it should only be used at init time. */ -void +void __init kclist_add(struct kcore_list *new, void *addr, size_t size, int type) { new->addr = (unsigned long)addr; diff -puN include/linux/kcore.h~proc-kcore-dont-grab-lock-for-kclist_add-fix include/linux/kcore.h --- a/include/linux/kcore.h~proc-kcore-dont-grab-lock-for-kclist_add-fix +++ a/include/linux/kcore.h @@ -35,7 +35,7 @@ struct vmcoredd_node { }; #ifdef CONFIG_PROC_KCORE -extern void kclist_add(struct kcore_list *, void *, size_t, int type); +extern void __init kclist_add(struct kcore_list *, void *, size_t, int type); #else static inline void kclist_add(struct kcore_list *new, void *addr, size_t size, int type) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are i-need-old-gcc.patch arm-arch-arm-include-asm-pageh-needs-personalityh.patch ocfs2-return-erofs-when-filesystem-becomes-read-only-checkpatch-fixes.patch mm.patch tools-modifying-page-types-to-include-shared-map-counts-checkpatch-fixes.patch tools-modifying-page-types-to-include-shared-map-counts-fix-checkpatch-fixes.patch tools-adding-support-for-idle-page-tracking-to-tool-fix.patch mm-drop-vm_bug_on-from-__get_free_pages-fix.patch mm-list_lruc-fold-__list_lru_count_one-into-its-caller.patch mm-fadvise-fix-signed-overflow-ubsan-complaint-fix.patch mm-sparsemem-defer-the-ms-section_mem_map-clearing-fix.patch mm-sparse-optimize-memmap-allocation-during-sparse_init-checkpatch-fixes.patch mm-sparse-abstract-sparse-buffer-allocations-fix.patch mm-sparse-abstract-sparse-buffer-allocations-fix-fix.patch mm-soft-offline-close-the-race-against-page-allocation-fix.patch list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch mm-oom-cgroup-aware-oom-killer-fix.patch mm-oom-cgroup-aware-oom-killer-fix-2.patch mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix-2-fix.patch proc-kcore-dont-grab-lock-for-kclist_add-fix.patch kernel-hung_taskc-allow-to-set-checking-interval-separately-from-timeout-fix.patch linux-next-rejects.patch fs-fix-double-prealloc_shrinker-in-sget_fc-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html