Skip to contentSkip to conversation

syscalls/mlock203: Add new regression testcase

PATCH New Xiao Yang 2 participants 3 messages Aug 23, 2018 – Sep 4, 2018

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/mlock203: Add new regression testcase

This issue has been fixed in kernel:
'b155b4fde5bd("mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)")'

Note:
This patch is based on the following patch set:
http://lists.linux.it/pipermail/ltp/2018-August/009086.html
http://lists.linux.it/pipermail/ltp/2018-August/009085.html
http://lists.linux.it/pipermail/ltp/2018-August/009084.html
http://lists.linux.it/pipermail/ltp/2018-August/009087.html

---
 runtest/ltplite                             |  1 +
 runtest/stress.part3                        |  1 +
 runtest/syscalls                            |  1 +
 testcases/kernel/syscalls/mlock2/.gitignore |  1 +
 testcases/kernel/syscalls/mlock2/mlock203.c | 92 +++++++++++++++++++++++++++++
 5 files changed, 96 insertions(+)
 create mode 100644 testcases/kernel/syscalls/mlock2/mlock203.c
runtest/ltplite +1 -0
index 7ebe632..025a2b9 100644
@@ -445,6 +445,7 @@ mlock02 mlock02
 
 mlock201 mlock201
 mlock202 mlock202
+mlock203 mlock203
 
 qmm01 mmap001 -m 1
 mmap01 mmap01
runtest/stress.part3 +1 -0
index 0804172..bb732a1 100644
@@ -371,6 +371,7 @@ mlock02 mlock02
 
 mlock201 mlock201
 mlock202 mlock202
+mlock203 mlock203
 
 qmm01 mmap001 -m 1
 mmap01 mmap01
runtest/syscalls +1 -0
index 2615254..959cb25 100644
@@ -635,6 +635,7 @@ mlock04 mlock04
 
 mlock201 mlock201
 mlock202 mlock202
+mlock203 mlock203
 
 qmm01 mmap001 -m 1
 mmap01 mmap01
testcases/kernel/syscalls/mlock2/.gitignore +1 -0
index 8daf0f9..907b139 100644
@@ -1,2 +1,3 @@
 /mlock201
 /mlock202
+/mlock203
testcases/kernel/syscalls/mlock2/mlock203.c new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 syscalls/mlock203: Add new regression testcase

----- Original Message -----

Quoted 4 lines

This issue has been fixed in kernel:
'b155b4fde5bd("mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)")'

Quoted 8 lines

Note:
This patch is based on the following patch set:
http://lists.linux.it/pipermail/ltp/2018-August/009086.html
http://lists.linux.it/pipermail/ltp/2018-August/009085.html
http://lists.linux.it/pipermail/ltp/2018-August/009084.html
http://lists.linux.it/pipermail/ltp/2018-August/009087.html

Pushed with tweaked commit message.

Thanks,
Jan

author
#2 lore raw

PATCH 1/1 syscalls/mlock203: Add new regression testcase

Quoted 13 lines · Jan Stancek

----- Original Message -----

Quoted 11 lines

This issue has been fixed in kernel:
'b155b4fde5bd("mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)")'

Note:
This patch is based on the following patch set:
http://lists.linux.it/pipermail/ltp/2018-August/009086.html
http://lists.linux.it/pipermail/ltp/2018-August/009085.html
http://lists.linux.it/pipermail/ltp/2018-August/009084.html
http://lists.linux.it/pipermail/ltp/2018-August/009087.html

Quoted 2 lines
Quoted 1 line

Pushed with tweaked commit message.

Hi Jan,

Thank you for the whole patchset review.

Thanks,
Xiao Yang

Quoted 5 lines

Thanks,
Jan