Re: [PATCH] mm/page_alloc: Restrict and formalize compound_page_dtors[]

2020-05-18 Thread David Hildenbrand
On 18.05.20 11:59, Anshuman Khandual wrote: > Restrict elements in compound_page_dtors[] array per NR_COMPOUND_DTORS and > explicitly position them according to enum compound_dtor_id. This improves > protection against possible misalignment between compound_page_dtors[] and > enum compound_dtor_id

[PATCH] mm/page_alloc: Restrict and formalize compound_page_dtors[]

2020-05-18 Thread Anshuman Khandual
Restrict elements in compound_page_dtors[] array per NR_COMPOUND_DTORS and explicitly position them according to enum compound_dtor_id. This improves protection against possible misalignment between compound_page_dtors[] and enum compound_dtor_id later on. Cc: Andrew Morton Cc: linux...@kvack.org