lkml.org 
[lkml]   [2022]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: folio-compat: fix bug for pagecache_get_page
On Tue, Oct 18, 2022 at 10:36:39PM +0800, Tuo Cao wrote:
> The folio returned from __filemap_get_folio may be a NULL, it will
> causes the kernel crash when access folio->page.

This is not a bug. &folio->page does not dereference folio but performs
pointer arithmetic.

\
 
 \ /
  Last update: 2022-10-18 16:40    [W:0.120 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site