From d6bfaa72e06cec5dcb107607a49e629d73454893 Mon Sep 17 00:00:00 2001 From: sunsuwan Date: Wed, 2 Nov 2022 16:43:57 +0800 Subject: [PATCH] fix crash in x86 because memory page error --- 0005-support-ipv6-from-iqiyi.patch | 4 ++-- toa.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/0005-support-ipv6-from-iqiyi.patch b/0005-support-ipv6-from-iqiyi.patch index 4cd7ca3..8d92e8c 100644 --- a/0005-support-ipv6-from-iqiyi.patch +++ b/0005-support-ipv6-from-iqiyi.patch @@ -224,7 +224,7 @@ index 487ace3..931607d 100644 + ro_enable = 0; + } +#else -+ if (pte->pte & ~_PAGE_RW) { ++ if (pte->pte & _PAGE_RW) { + ro_enable = 0; + } +#endif @@ -268,7 +268,7 @@ index 487ace3..931607d 100644 + __sync_icache_dcache(*pte); + flush_tlb_all(); +#else -+ pte->pte |= pte->pte &~_PAGE_RW; ++ pte->pte &= ~_PAGE_RW; +#endif } diff --git a/toa.spec b/toa.spec index 2d1b3ae..2ed2acd 100644 --- a/toa.spec +++ b/toa.spec @@ -5,7 +5,7 @@ Name: TCP_option_address Summary: Intel(R) Ethernet Adaptive Virtual Function Driver Version: 1.0.0 -Release: 5 +Release: 6 #Release: 0.%{krelver} Vendor: Huawei License: GPL-2.0 @@ -107,6 +107,9 @@ else fi %changelog +* Wed Nov 2 2022 sunsuwan - 1.0.0-6 +- fix crash in x86 because memory page error + * Tue Nov 1 2022 sunsuwan - 1.0.0-5 - add sysctl to change opcode dynamic