
< 	buffer = vmemdup_user(buf, lbuf);
---
> 	buffer = vmemdup_user(buf, min_t(size_t, lbuf, 256));
