Re: [PATCH] fault-inject: fix wrong should_fail() decision in task context

2017-08-01 Thread Lu Fengqi
e systematic >fault injection is not used. > >This change restores to the previous correct behaviour. > >Fixes: 1203c8e6fb0a ("fault-inject: simplify access check for fail-nth") >Cc: Dmitry Vyukov >Cc: Lu Fengqi >Reported-by: Lu Fengqi >Signed-off-by: Akinobu Mita

Re: [PATCH -mm] fault-inject: avoid unwanted data race to task->fail_nth

2017-08-01 Thread Lu Fengqi
On Fri, Jul 14, 2017 at 01:14:52AM +0900, Akinobu Mita wrote: >The fault-inject-make-fail-nth-read-write-interface-symmetric.patch in >-mm tree allows users to set task->fail_nth for non current task by procfs. >On the other hand, the current task's fail_nth is decreased to zero in >fault-injection