Check sys_semaphore/sys_tty pointers and lengths