Re: [PATCH] mm: folio-compat: fix bug for pagecache_get_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux