diff --git a/fs/exec.c b/fs/exec.c index 1b63237fc6dced1062c392523fed094ce7dacc56..6f2d777431a8c2a6dbeac1cd9b5f2b3c3f9a4790 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -419,6 +419,8 @@ static int copy_strings(int argc, const char __user *const __user *argv, while (len > 0) { int offset, bytes_to_copy; + cond_resched(); + offset = pos % PAGE_SIZE; if (offset == 0) offset = PAGE_SIZE;