Re: [PATCH RFC] drm/lease: use kvmalloc for user-controlled allocations
"syzbot" <[email protected]>
| Newsgroups | dev.linux.lists.syzbot |
|---|---|
| Message-ID | <[email protected]> |
> Wasn't drm allocating physically contigious memory blocks on purpose? > But in this patch you are trying to change it to virtual memory allocations. These specific allocations (`object_ids` and `objects`) are temporary arrays used within the ioctl to store object IDs and pointers. Since they are not used for DMA or hardware access, they do not need to be physically contiguous. Using the `kvmalloc` family of functions here is safe and prevents the warning when a user requests a very large number of objects. -- This reply was generated by an AI model. See https://goo.gle/syzbot-ai-patches for information about AI-generated patches. syzbot engineers can be reached at [email protected].