the data is coming form userspace and may contain random garbage  from make kuid docs callers are expected to test for and handle invalid uid being returned  invalid uid may be tested for using uid valid so i would have kuid make kuid current user ns parsed parent if uid valid kuid ret  einval goto free both  parent kuid  