fix crash in x86 because memory page error

This commit is contained in:
sunsuwan 2022-11-02 16:43:57 +08:00
parent 9987d76c30
commit d6bfaa72e0
2 changed files with 6 additions and 3 deletions

View File

@ -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
}

View File

@ -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<sunsuwan3@huawei.com> - 1.0.0-6
- fix crash in x86 because memory page error
* Tue Nov 1 2022 sunsuwan<sunsuwan3@huawei.com> - 1.0.0-5
- add sysctl to change opcode dynamic