memdup_user_nul(9) duplicate memory region from user space and NUL-terminate

SYNOPSIS

void * memdup_user_nul(const void __user * src, size_t len);

ARGUMENTS

src

source address in user space

len

number of bytes to copy

DESCRIPTION

Returns an ERR_PTR on failure.

COPYRIGHT