mbox series

[0/2] mm/damon/paddr: Fix folio-use-after-put bugs

Message ID 20230304193949.296391-1-sj@kernel.org (mailing list archive)
Headers show
Series mm/damon/paddr: Fix folio-use-after-put bugs | expand

Message

SeongJae Park March 4, 2023, 7:39 p.m. UTC
There are two folio accesses after folio_put() in mm/damon/paddr.c file.
Fix those.

SeongJae Park (2):
  mm/damon/paddr: fix folio_size() call after folio_put() in
    damon_pa_young()
  mm/damon/paddr: fix folio_nr_pages() after folio_put() in
    damon_pa_mark_accessed_or_deactivate()

 mm/damon/paddr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Kefeng Wang March 6, 2023, 2:04 a.m. UTC | #1
On 2023/3/5 3:39, SeongJae Park wrote:
> There are two folio accesses after folio_put() in mm/damon/paddr.c file.
> Fix those.

I saw you send the bugfixes separately :)
> 
> SeongJae Park (2):
>    mm/damon/paddr: fix folio_size() call after folio_put() in
>      damon_pa_young()
>    mm/damon/paddr: fix folio_nr_pages() after folio_put() in
>      damon_pa_mark_accessed_or_deactivate()
> 
>   mm/damon/paddr.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
>