On 5/2/22 13:34, Martin K. Petersen wrote:
Khazhy,
We've been working in this area too. It possible to write BPF filters to
protect block ranges using should_fail_bio().
It'd be nice to have a "proper" api vs. ALLOW_ERROR_INJECTION, which
feels more debug-y and has the drawback of
CONFIG_FUNCTION_ERROR_INJECTION being all-or-nothing
I agree that it would be nice for this to be detached from error
injection.
Actually, I'd rather turn this around such that error injection is
running _on top_ of eBPF...
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer