The patch titled Subject: mm/vmalloc.c: fix memory ordering bug has been added to the -mm tree. Its filename is fix-memory-ordering-bug-in-mm-vmallocc.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/fix-memory-ordering-bug-in-mm-vmallocc.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/fix-memory-ordering-bug-in-mm-vmallocc.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Subject: mm/vmalloc.c: fix memory ordering bug Read memory barriers must follow the read operations. Signed-off-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Cc: Eric Dumazet <edumazet@xxxxxxxxxx> Acked-by: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN mm/vmalloc.c~fix-memory-ordering-bug-in-mm-vmallocc mm/vmalloc.c --- a/mm/vmalloc.c~fix-memory-ordering-bug-in-mm-vmallocc +++ a/mm/vmalloc.c @@ -2574,10 +2574,10 @@ static void show_numa_info(struct seq_fi if (!counters) return; - /* Pair with smp_wmb() in clear_vm_uninitialized_flag() */ - smp_rmb(); if (v->flags & VM_UNINITIALIZED) return; + /* Pair with smp_wmb() in clear_vm_uninitialized_flag() */ + smp_rmb(); memset(counters, 0, nr_node_ids * sizeof(unsigned int)); _ Patches currently in -mm which might be from dvyukov@xxxxxxxxxx are fix-memory-ordering-bug-in-mm-vmallocc.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