[PATCH v2 1/4] API: introduce memory failure