> So reverting this patch on the top of the mainline fixed the memory corruption > for me or at least make it way much harder to reproduce. > > dbe2d4e4f12e ("mm, compaction: round-robin the order while searching the free > lists for a target") > > This is easy to reproduce on both KVM and bare-metal using the reproducer. > > # swapoff -a > # i=0; while :; do i=$((i+1)); echo $i | tee /tmp/log ; > /opt/ltp/testcases/bin/oom01; sleep 5; done > > The memory corruption always happen within 300 tries. With the above patch > reverted, both the mainline and linux-next survives with 1k+ attempts so far. Could you please share copy of your config. Thank you, Pasha