Hi, > [ This is a rare but nasty LE issue. Most of the time we use the > POWER7 optimised __copy_tofrom_user_power7 loop, but when it hits an > exception we fall back to the base __copy_tofrom_user loop. - Anton ]
To try and catch any screw ups in our ppc64 memcpy and copy_tofrom_user loops, I wrote a quick test: http://ozlabs.org/~anton/junkcode/validate_kernel_copyloops.tar.gz "make check" runs through all source and destination alignments for a range of sizes. It verifies the data was copied correctly and the redzone before and after were untouched. It tests: copyuser_64 copyuser_power7 memcpy_64 memcpy_power7 memcpy_64 is currently unused on LE, but I added Paul McKenney's LE fixes regardless. copyuser_64 has the same LE fix (posted yesterday). All loops pass the test on both LE and BE. Anton _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev