Skip to contentSkip to conversation

Add test for CVE 2018-1000204

PATCH New Martin Doucha 2 participants 2 messages Mar 10, 2020 – Mar 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add test for CVE 2018-1000204

Fixes #334

---

Changes since v1:
- Code style fixes
- Simpler path concatenation find_generic_scsi_device()
- Added test to syscalls runfiles
- Added compiled test program to .gitignore

 runtest/cve                                  |   1 +
 runtest/syscalls                             |   2 +
 testcases/kernel/syscalls/ioctl/.gitignore   |   1 +
 testcases/kernel/syscalls/ioctl/ioctl_sg01.c | 128 +++++++++++++++++++
 4 files changed, 132 insertions(+)
 create mode 100644 testcases/kernel/syscalls/ioctl/ioctl_sg01.c
runtest/cve +1 -0
index 36c5ba1d6..46f63738f 100644
@@ -40,4 +40,5 @@ cve-2017-18075 pcrypt_aead01
 cve-2017-1000380 snd_timer01
 cve-2018-5803 sctp_big_chunk
 cve-2018-1000001 realpath01
+cve-2018-1000204 ioctl_sg01
 cve-2018-19854 crypto_user01
runtest/syscalls +2 -0
index 06d96470c..30ea8be21 100644
@@ -516,6 +516,8 @@ ioctl_ns05 ioctl_ns05
 ioctl_ns06 ioctl_ns06
 ioctl_ns07 ioctl_ns07
 
+ioctl_sg01 ioctl_sg01
+
 inotify_init1_01 inotify_init1_01
 inotify_init1_02 inotify_init1_02
 
testcases/kernel/syscalls/ioctl/.gitignore +1 -0
index 2551ffb7f..97fbb9681 100644
@@ -13,3 +13,4 @@
 /ioctl_ns05
 /ioctl_ns06
 /ioctl_ns07
+/ioctl_sg01
testcases/kernel/syscalls/ioctl/ioctl_sg01.c new file +128 -0

128 lines not on this page · raw message

Signature · 1 line
2.25.1