The UserSliceReader::read_all function currently has this signature:

This means that it can only be used with the kmalloc allocator. However, there's no reason for this restriction. The function could work with any Vec no matter what the allocator is.
The
UserSliceReader::read_allfunction currently has this signature:This means that it can only be used with the
kmallocallocator. However, there's no reason for this restriction. The function could work with anyVecno matter what the allocator is.