This fixes kernel panic if the stack trace cannot be read. Manually validating pointers is definitely not safe