Skip to contentSkip to conversation

Add test for CVE 2021-3653

PATCH In review Martin Doucha 2 participants 2 messages May 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add test for CVE 2021-3653

GCC 13 prints out-of-bounds warnings for statements dereferencing avic_ptr. According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
this is a GCC bug.

---

Changes since v1:
- Added missing runfile and .gitignore entries
- Updated commit message

 runtest/kvm                      |   1 +
 testcases/kernel/kvm/.gitignore  |   1 +
 testcases/kernel/kvm/kvm_svm01.c | 123 +++++++++++++++++++++++++++++++
 3 files changed, 125 insertions(+)
 create mode 100644 testcases/kernel/kvm/kvm_svm01.c
runtest/kvm +1 -0
index 16e7c07ff..726d72f0a 100644
@@ -1 +1,2 @@
 kvm_pagefault01 kvm_pagefault01
+kvm_svm01 kvm_svm01
testcases/kernel/kvm/.gitignore +1 -0
index 349260359..b284b9528 100644
@@ -1 +1,2 @@
 /kvm_pagefault01
+/kvm_svm01
testcases/kernel/kvm/kvm_svm01.c new file +123 -0

123 lines not on this page · raw message

Signature · 5 lines
2.40.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Martin,

Quoted 3 lines

GCC 13 prints out-of-bounds warnings for statements dereferencing avic_ptr. According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
this is a GCC bug.

Fair enough. Thanks a lot for searching and fixes, merged.

Kind regards,
Petr

Quoted 3 lines

Changes since v1:
- Added missing runfile and .gitignore entries
- Updated commit message

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp