From 4f49704212e04e8fec00989f31fc8141f5dfa358 Mon Sep 17 00:00:00 2001 From: Matthias Maennich Date: Wed, 23 Aug 2023 22:04:54 +0000 Subject: [PATCH] ANDROID: Revert ABI breakage due to accidental CRC value changes Commit 01e61d38593c ("ANDROID: vendor_hooks: Add hooks for lookaround") subtly changed the CRC values computed for 5 symbols: buffer_migrate_page migrate_page_copy migrate_page_move_mapping migrate_page_states migrate_pages This was caused by an include in mm/migrate.c that exposed additional type information relevant for the modversions CRC computation. Commit 930cf7174fe2 ("ANDROID: oplus: Update the ABI xml and symbol list") updated the ABI representation and that breaking change was unnoticed. Fix that by guarding the include and reverting the ABI definition. Effective ABI change: function symbol 'int buffer_migrate_page(struct address_space *, struct page *, struct page *, enum migrate_mode)' changed CRC changed from 0x7951f1db to 0xcdeca50f function symbol 'void migrate_page_copy(struct page *, struct page *)' changed CRC changed from 0xb3b9058d to 0xe97d88f0 function symbol 'int migrate_page_move_mapping(struct address_space *, struct page *, struct page *, int)' changed CRC changed from 0x74bd3238 to 0xb7809eee function symbol 'void migrate_page_states(struct page *, struct page *)' changed CRC changed from 0x32ac080e to 0x8caf3272 function symbol 'int migrate_pages(struct list_head *, new_page_t *, free_page_t *, unsigned long int, enum migrate_mode, int, unsigned int *)' changed CRC changed from 0xe0b25d16 to 0x90f84eaa Bug: 296960489 Fixes: 01e61d38593c ("ANDROID: vendor_hooks: Add hooks for lookaround") Change-Id: I62421984a3e0306490db8e62e86562a95ea06ef4 Signed-off-by: Matthias Maennich --- android/abi_gki_aarch64.xml | 10 +++++----- mm/migrate.c | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index c964a9dda29f..b9aa5193dfbd 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -1225,7 +1225,7 @@ - + @@ -3927,10 +3927,10 @@ - - - - + + + + diff --git a/mm/migrate.c b/mm/migrate.c index 72c765a8640e..33ad211f1c90 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -57,7 +57,9 @@ #include #undef CREATE_TRACE_POINTS +#ifndef __GENKSYMS__ #include +#endif #include "internal.h"