The quilt patch titled Subject: mm-support-only-one-page_type-per-page-fix has been removed from the -mm tree. Its filename was mm-support-only-one-page_type-per-page-fix.patch This patch was dropped because it was folded into mm-support-only-one-page_type-per-page.patch ------------------------------------------------------ From: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> Subject: mm-support-only-one-page_type-per-page-fix Date: Wed, 28 Aug 2024 11:35:28 +0800 fix ubsan warnings UBSAN: shift-out-of-bounds in ../include/linux/page-flags.h:998:1 left shift of 240 by 24 places cannot be represented in type 'int' ... Changing significant bit to unsigned to fix it. Link: https://lkml.kernel.org/r/2d19c48a-c550-4345-bf36-d05cd303c5de@xxxxxxxxxx Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/page-flags.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/page-flags.h~mm-support-only-one-page_type-per-page-fix +++ a/include/linux/page-flags.h @@ -968,7 +968,7 @@ static __always_inline void __folio_set_ { \ VM_BUG_ON_FOLIO(data_race(folio->page.page_type) != UINT_MAX, \ folio); \ - folio->page.page_type = PGTY_##lname << 24; \ + folio->page.page_type = (unsigned int)PGTY_##lname << 24; \ } \ static __always_inline void __folio_clear_##fname(struct folio *folio) \ { \ @@ -985,7 +985,7 @@ static __always_inline int Page##uname(c static __always_inline void __SetPage##uname(struct page *page) \ { \ VM_BUG_ON_PAGE(data_race(page->page_type) != UINT_MAX, page); \ - page->page_type = PGTY_##lname << 24; \ + page->page_type = (unsigned int)PGTY_##lname << 24; \ } \ static __always_inline void __ClearPage##uname(struct page *page) \ { \ _ Patches currently in -mm which might be from wangkefeng.wang@xxxxxxxxxx are mm-remove-migration-for-hugepage-in-isolate_single_pageblock.patch mm-support-only-one-page_type-per-page.patch mm-memory_hotplug-remove-head-variable-in-do_migrate_range.patch mm-memory-failure-add-unmap_poisoned_folio.patch mm-memory_hotplug-check-hwpoisoned-page-firstly-in-do_migrate_range.patch mm-migrate-add-isolate_folio_to_list.patch mm-memory_hotplug-unify-huge-lru-non-lru-movable-folio-isolation.patch mm-memory_hotplug-unify-huge-lru-non-lru-movable-folio-isolation-fix.patch mm-migrate_device-convert-to-migrate_device_coherent_folio.patch mm-migrate_device-use-a-folio-in-migrate_device_range.patch mm-migrate_device-use-more-folio-in-migrate_device_unmap.patch mm-migrate_device-use-more-folio-in-migrate_device_finalize.patch mm-remove-isolate_lru_page.patch mm-remove-isolate_lru_page-fix.patch mm-remove-putback_lru_page.patch