[PATCH] POC for fault injection

Dmitry V. Levin ldv at altlinux.org
Tue Mar 22 00:26:37 UTC 2016


On Mon, Mar 21, 2016 at 10:36:03AM +0530, haris iqbal wrote:
> I have sent a patch which demonstrates the Idea that I thought of for
> failing system calls. It overwrites the return value of the system
> call with -1 to make it fail.

If you want to "fail" a syscall, it has to be done on entering,
on exiting it's too late.

Could you elaborate how would you "fail" various syscalls, please?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160322/0fb5370a/attachment.bin>


More information about the Strace-devel mailing list