Re: [PATCH v2 0/4] drm/panfrost: Bug fixes for lock_region

2021-08-24 Thread Rob Herring
On Tue, Aug 24, 2021 at 12:30 PM Alyssa Rosenzweig wrote: > > Chris Morgan reported UBSAN errors in panfrost and tracked them down to > the size computation in lock_region. This calculation is overcomplicated > (cargo culted from kbase) and can be simplified with kernel helpers and > some

[PATCH v2 0/4] drm/panfrost: Bug fixes for lock_region

2021-08-24 Thread Alyssa Rosenzweig
Chris Morgan reported UBSAN errors in panfrost and tracked them down to the size computation in lock_region. This calculation is overcomplicated (cargo culted from kbase) and can be simplified with kernel helpers and some mathematical identities. The first patch in the series rewrites the