Skip to contentSkip to conversation

syscalls/fcntl35.c: add new regression test

PATCH New Xiao Yang 2 participants 2 messages Jun 9, 2017 – Jun 13, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/fcntl35.c: add new regression test

We add a regression test to check that pipe-max-size caps the initial allocation for a new pipe for unprivileged users, but not for privileged users.

This kernel bug has been fixed by:
'086e774a57fb(pipe: cap initial pipe capacity according to pipe-max-size limit)'

---
 runtest/syscalls                          |   2 +
 testcases/kernel/syscalls/.gitignore      |   2 +
 testcases/kernel/syscalls/fcntl/fcntl35.c | 134 ++++++++++++++++++++++++++++++
 3 files changed, 138 insertions(+)
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl35.c
runtest/syscalls +2 -0
index fe52272..32c65c6 100644
@@ -267,6 +267,8 @@ fcntl33 fcntl33
 fcntl33_64 fcntl33_64
 fcntl34 fcntl34
 fcntl34_64 fcntl34_64
+fcntl35 fcntl35
+fcntl35_64 fcntl35_64
 
 fdatasync01 fdatasync01
 fdatasync02 fdatasync02
testcases/kernel/syscalls/.gitignore +2 -0
index c14c4e6..03178db 100644
@@ -230,6 +230,8 @@
 /fcntl/fcntl33_64
 /fcntl/fcntl34
 /fcntl/fcntl34_64
+/fcntl/fcntl35
+/fcntl/fcntl35_64
 /fdatasync/fdatasync01
 /fdatasync/fdatasync02
 /flistxattr/flistxattr01
testcases/kernel/syscalls/fcntl/fcntl35.c new file +134 -0

134 lines not on this page · raw message

Signature · 1 line
1.8.3.1