The patch titled Subject: fs-proc-kcorec-fix-coccinelle-reported-error-instances-fix has been added to the -mm mm-nonmm-unstable branch. Its filename is fs-proc-kcorec-fix-coccinelle-reported-error-instances-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/fs-proc-kcorec-fix-coccinelle-reported-error-instances-fix.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: fs-proc-kcorec-fix-coccinelle-reported-error-instances-fix Date: Tue Oct 29 06:25:57 PM PDT 2024 s/tmp/pos/ Cc: Alexander Gordeev <agordeev@xxxxxxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Baoquan He <bhe@xxxxxxxxxx> Cc: "Bos, H.J." <h.j.bos@xxxxx> Cc: "Brian Johannesmeyer" <bjohannesmeyer@xxxxxxxxx> Cc: Cristiano Giuffrida <c.giuffrida@xxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Hari Bathini <hbathini@xxxxxxxxxxxxx> Cc: Jakob Koschel <jakobkoschel@xxxxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxx> Cc: Mirsad Todorovac <mtodorovac69@xxxxxxxxx> Cc: Oscar Salvador <osalvador@xxxxxxx> Cc: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx> Cc: Yan Zhen <yanzhen@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/kcore.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/fs/proc/kcore.c~fs-proc-kcorec-fix-coccinelle-reported-error-instances-fix +++ a/fs/proc/kcore.c @@ -493,13 +493,13 @@ static ssize_t read_kcore_iter(struct ki * the previous entry, search for a matching entry. */ if (!m || start < m->addr || start >= m->addr + m->size) { - struct kcore_list *tmp; + struct kcore_list *pos; m = NULL; - list_for_each_entry(tmp, &kclist_head, list) { - if (start >= tmp->addr && - start < tmp->addr + tmp->size) { - m = tmp; + list_for_each_entry(pos, &kclist_head, list) { + if (start >= pos->addr && + start < pos->addr + pos->size) { + m = pos; break; } } _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-page_alloc-keep-track-of-free-highatomic-fix.patch mm-consolidate-common-checks-in-hugetlb_get_unmapped_area-fix.patch mm-memoryc-remove-stray-newline-at-top-of-file.patch bootmem-stop-using-page-index-fix.patch mm-kasan-kmsan-copy_from-to_kernel_nofault-fix.patch tools-mm-free-the-allocated-memory-fix.patch memcg-v1-no-need-for-memcg-locking-for-mglru-fix.patch mm-vma-the-pgoff-is-correct-if-can_merge_right-fix.patch memcg-workingset-remove-folio_memcg_rcu-usage-fix.patch fs-proc-kcorec-fix-coccinelle-reported-error-instances-fix.patch