Some syscalls were unconditionally validating optional paramenters which were allowed to be null pointers