RE: [PATCH 1/2] drm/ttm: fix out-of-bounds read in ttm_put_pages() v2

2019-04-09 Thread Huang, Ray
> -Original Message- > From: Christian König [mailto:ckoenig.leichtzumer...@gmail.com] > Sent: Monday, April 08, 2019 9:13 PM > To: Zhang, Jerry ; Huang, Ray > ; amd-...@lists.freedesktop.org; dri- > de...@lists.freedesktop.org > Subject: [PATCH 1/2] drm/ttm: fix out-of-bounds read in ttm_p

Re: [PATCH 1/2] drm/ttm: fix out-of-bounds read in ttm_put_pages() v2

2019-04-09 Thread Zhang, Jerry(Junwei)
On 4/8/19 9:13 PM, Christian König wrote: When ttm_put_pages() tries to figure out whether it's dealing with transparent hugepages, it just reads past the bounds of the pages array without a check. v2: simplify the test if enough pages are left in the array (Christian). Series is Reviewed-by: J

Re: [PATCH 1/2] drm/ttm: fix out-of-bounds read in ttm_put_pages() v2

2019-04-08 Thread Michel Dänzer
On 2019-04-08 3:13 p.m., Christian König wrote: > When ttm_put_pages() tries to figure out whether it's dealing with > transparent hugepages, it just reads past the bounds of the pages array > without a check. > > v2: simplify the test if enough pages are left in the array (Christian). > > Signed

Re: [PATCH 1/2] drm/ttm: fix out-of-bounds read in ttm_put_pages() v2

2019-04-02 Thread Jann Horn
On Tue, Apr 2, 2019 at 9:40 AM Christian König wrote: > When ttm_put_pages() tries to figure out whether it's dealing with > transparent hugepages, it just reads past the bounds of the pages array > without a check. > > v2: simplify the test if enough pages are left in the array (Christian). > > S