mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 20:34:05 +00:00
Similar to kmemdup(), but support large amount of bytes with kvmalloc() and does *not* guarantee that the result will be physically contiguous. Use only in cases where kvmalloc() is needed and free it with kvfree(). Also adapt policy_unpack.c in case someone bisect into this. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Hao Sun <[email protected]> Suggested-by: Daniel Borkmann <[email protected]> Cc: Nick Terrell <[email protected]> Cc: John Johansen <[email protected]> Cc: Paul Moore <[email protected]> Cc: James Morris <[email protected]> Cc: "Serge E. Hallyn" <[email protected]> Signed-off-by: Andrew Morton <[email protected]>