mm-page_alloc-add-__alloc_size-attributes-for-better-bounds-checking.patch removed from -mm tree
The patch titled
Subject: mm/page_alloc: add __alloc_size attributes for better bounds checking
has been removed from the -mm tree. Its filename was
mm-page_alloc-add-__alloc_size-attributes-for-better-bounds-checking.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Kees Cook <[email protected]>
Subject: mm/page_alloc: add __alloc_size attributes for better bounds checking
As already done in GrapheneOS, add the __alloc_size attribute for appropriate page allocator interfaces, to provide additional hinting for better bounds checking, assisting CONFIG_FORTIFY_SOURCE and other compiler optimizations.
---
include/linux/gfp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/gfp.h renamed from include/linux/gfp.h~mm-page_alloc-add-__alloc_size-attributes-for-better-bounds-checking +2 -2
@@ -608,9 +608,9 @@ static inline struct page *alloc_pages(gextern unsigned long __get_free_pages (gfp_t gfp_mask,unsigned int order);extern unsigned long get_zeroed_page (gfp_t gfp_mask); -void *alloc_pages_exact (size_t size,gfp_t gfp_mask); +void *alloc_pages_exact (size_t size,gfp_t gfp_mask)__alloc_size(1) ;void free_pages_exact (void *virt,size_t size); -void *__meminit alloc_pages_exact_nid (int nid,size_t size,gfp_t gfp_mask); +__meminit void *alloc_pages_exact_nid (int nid,size_t size,gfp_t gfp_mask)__alloc_size(1) ;#define __get_free_page (gfp_mask) \ __get_free_pages((gfp_mask), 0)
_
Patches currently in -mm which might be from [email protected] are
kasan-test-consolidate-workarounds-for-unwanted-__alloc_size-protection.patch