Re: [PATCH] drm/ttm: dma: Don't crash on memory in the vmalloc range

2015-06-01 Thread Konrad Rzeszutek Wilk
On Tue, May 19, 2015 at 08:33:59PM +0900, Alexandre Courbot wrote: > On 05/16/2015 04:55 AM, Konrad Rzeszutek Wilk wrote: > >On Fri, May 15, 2015 at 04:09:54PM +0900, Alexandre Courbot wrote: > >>dma_alloc_coherent() can return memory in the vmalloc range. > >>virt_to_page() cannot handle such addr

Re: [PATCH] drm/ttm: dma: Don't crash on memory in the vmalloc range

2015-05-19 Thread Alexandre Courbot
On 05/16/2015 04:55 AM, Konrad Rzeszutek Wilk wrote: On Fri, May 15, 2015 at 04:09:54PM +0900, Alexandre Courbot wrote: dma_alloc_coherent() can return memory in the vmalloc range. virt_to_page() cannot handle such addresses and crashes. This patch detects such cases and obtains the struct page

Re: [PATCH] drm/ttm: dma: Don't crash on memory in the vmalloc range

2015-05-15 Thread Konrad Rzeszutek Wilk
On Fri, May 15, 2015 at 04:09:54PM +0900, Alexandre Courbot wrote: > dma_alloc_coherent() can return memory in the vmalloc range. > virt_to_page() cannot handle such addresses and crashes. This > patch detects such cases and obtains the struct page * using > vmalloc_to_page() instead. > > Signed-o

Re: [PATCH] drm/ttm: dma: Don't crash on memory in the vmalloc range

2015-05-15 Thread yalin wang
2015-05-15 15:09 GMT+08:00 Alexandre Courbot : > dma_alloc_coherent() can return memory in the vmalloc range. > virt_to_page() cannot handle such addresses and crashes. This > patch detects such cases and obtains the struct page * using > vmalloc_to_page() instead. > > Signed-off-by: Alexandre Cour

Re: [PATCH] drm/ttm: dma: Don't crash on memory in the vmalloc range

2015-05-15 Thread Thierry Reding
On Fri, May 15, 2015 at 04:09:54PM +0900, Alexandre Courbot wrote: > dma_alloc_coherent() can return memory in the vmalloc range. > virt_to_page() cannot handle such addresses and crashes. This > patch detects such cases and obtains the struct page * using > vmalloc_to_page() instead. > > Signed-o

[PATCH] drm/ttm: dma: Don't crash on memory in the vmalloc range

2015-05-15 Thread Alexandre Courbot
dma_alloc_coherent() can return memory in the vmalloc range. virt_to_page() cannot handle such addresses and crashes. This patch detects such cases and obtains the struct page * using vmalloc_to_page() instead. Signed-off-by: Alexandre Courbot --- This patch is a follow-up of the following discus