Re: [PATCH RFC] drm/lease: use kvmalloc for user-controlled allocations
Aleksandr Nogikh <[email protected]>
| Newsgroups | dev.linux.lists.syzbot |
|---|---|
| Message-ID | <CANp29Y7zwqYSEDSQaMq1g__FoPR+y9VA39Y3xsbBgNxzX2_qsQ@mail.gmail.com> |
On Thu, Jun 18, 2026 at 6:19 PM syzbot <[email protected]> wrote: > > > 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. > Then say it explicitly in the patch description.