Hi! > > I think that what the testcase effectively does is to test whether memory > > handling on zero pages works or not. > > And the testcase's failure seems acceptable, because it's simply not-implemented yet. > > Maybe recovering from error on zero page is possible (because there's no data > > loss for memory error,) but I'm not sure that code might be simple enough and/or > > it's worth doing ... > > I doubt it's worth doing, it's just too unlikely that a specific page > is hit. Memory error handling is all about probabilities. > > The test is just broken and should be fixed. > > mce-test had similar problems at some point, but they were all fixed. Well I disagree, the reason why the test fails is that MADV_HWPOISON on not-faulted private mappings fails silently, which is a bug, albeit minor one. If something is not implemented, it should report a failure, the usual error return would be EINVAL in this case. It appears that it fails with EBUSY on first try on newer kernels, but still fails silently when we try for a second time. Why can't we simply check if the page is faulted or not and return error in the latter case? -- Cyril Hrubis chrubis@xxxxxxx -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>