Here is a MemTest86+ v5.1 as shipped in Ubuntu, built with a patch from http://forum.canardpc.com/threads/117454-PATCH-Fix-for-Freeze-on-test-7-in-SMP-mode.
See https://habr.com/ru/post/484026/#comment_21171394.
$ apt-src install memtest86+
$ cp memtest86+
$ patch -p1 --ignore-whitespace < ../memtest.patch
$ dpkg-buildpackage --build=binary
$ cp debian/memtest86+/boot/* ..