c1e74d6fe68f0b3c23ed9ba8f9d36e43523c23d8 |
23-Jan-2018 |
Sandeep Patil <sspatil@google.com> |
Upgrade to LTP 20180118 A short log of commits merged as part of this is available in Merge list Bug: 72110041 No new disabled tests due to failure to build. New configuration(s) added in android/include/config.h: HAVE_ATOMIC_MEMORY_MODEL HAVE_BUILTIN_CLEAR_CACHE HAVE_LIBCRYPTO HAVE_LINUX_IF_ETHER_H HAVE_LINUX_IF_PACKET_H HAVE_PROFIL HAVE_STRUCT_TPACKET_REQ3 No new test suites were added in this release Tests Diff: Deleted Added --------------------------------------------------------- syscalls.setrlimit04 syscalls.setrlimit05 syscalls.keyctl06 syscalls.add_key03 syscalls.add_key04 syscalls.fallocate05 syscalls.keyctl08 syscalls.setsockopt02 syscalls.ioctl07 syscalls.keyctl07 syscalls.sigwaitinfo01 syscalls.ptrace07 syscalls.request_key03 fs.fs_fill commands.unshare01 Change-Id: Ieb8ec5291b7b4ec57e63fe6adda334eadb07c961 Signed-off-by: Sandeep Patil <sspatil@google.com>
|
485276e36f6ef66792298b80ab7c63334bd52124 |
09-Nov-2017 |
Petr Vorel <pvorel@suse.cz> |
lapi: Add dccp.h with definition moved from netstress.c and use lapi/dccp.h in netstress.c. + include <linux/dccp.h> in netstress.c. Signed-off-by: Petr Vorel <pvorel@suse.cz> Acked-by: Alexey Kodanev <alexey.kodanev@oracle.com>
ccp.h
|
52569da86fb3197bf40800794bf40eb81c4531d7 |
09-Nov-2017 |
Petr Vorel <pvorel@suse.cz> |
lapi: Add netinet_in.h with definition moved from netstress.c and use lapi/in.h in netstress.c. Signed-off-by: Petr Vorel <pvorel@suse.cz> Acked-by: Alexey Kodanev <alexey.kodanev@oracle.com>
etinet_in.h
|
3fd5746a8876d96c3ffe2d86da2942ecb8cb9a58 |
09-Nov-2017 |
Petr Vorel <pvorel@suse.cz> |
lapi/socket.h: Move definitions from netstress.c and use lapi/socket.h in netstress.c. + include <sys/socket.h> in lapi/socket.h Signed-off-by: Petr Vorel <pvorel@suse.cz> Acked-by: Alexey Kodanev <alexey.kodanev@oracle.com>
ocket.h
|
ffd48cf1a74d4a4561866037cf75049e7ad211b0 |
31-Oct-2017 |
Petr Vorel <pvorel@suse.cz> |
lapi: Add tcp.h with definitions moved from netstress.c + include <netinet/tcp.h> in netstress.c. Signed-off-by: Petr Vorel <pvorel@suse.cz> Acked-by: Alexey Kodanev <alexey.kodanev@oracle.com>
cp.h
|
2e199cbbf7e3768938e6cc82ee44ba6f437472c4 |
16-Dec-2017 |
Petr Vorel <petr.vorel@gmail.com> |
lapi/regen.sh: Fix bashism '+=' Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
yscalls/regen.sh
|
524edfb4b03b237e6b08f3c29423cb6b4a9335d2 |
09-Nov-2017 |
Sandeep Patil <sspatil@google.com> |
direct_io: diotest4: use getpagesize() for mmap if shm header is absent For some architectures, mmap(MAP_FIXED) has to be aligned to SHMLBA (instead of getpagesize()) -- https://sourceforge.net/p/ltp/mailman/ltp-list/?viewmonth=200804 This dependency on SHMLBA causes the test to fail building for Android due to absence of sys/shm.h. Make the header dependency configurable and use getpagesize() as mmap granularity if the header is absent allowing the test to work on Android while not breaking the architectures that depend on the shm headers. Signed-off-by: Sandeep Patil <sspatil@google.com> Acked-by: Jan Stancek <jstancek@redhat.com>
map.h
|
81e73c45b70c740fd13ab4a05e5dfa900d16bbfa |
07-Nov-2017 |
Eric Biggers <ebiggers@google.com> |
syscalls/request_key03: new test for key instantiation races Add a test for two related bugs in the keyrings subsystem which each allowed unprivileged local users to cause a kernel oops (at best) by attempting to "add" a key concurrently with "requesting" it. Signed-off-by: Eric Biggers <ebiggers@google.com>
eyctl.h
|
2d7c4c7bba915d5be1f2e9ba6cdacb31201ca73b |
01-Nov-2017 |
Richard Palethorpe <rpalethorpe@suse.com> |
Add test keyctl08 for cve-2016-9604 on keyctl_join_session_keyring Check key names starting with "." are disallowed. Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
eyctl.h
|
824296b6d08008ea9d3fa4fb36c98be3fd0f159f |
19-Oct-2017 |
Sandeep Patil <sspatil@google.com> |
Upgrade to LTP 20170929 A short log of commits merged as part of this is available in Merge list Bug: 67107373 No new disabled tests due to failure to build. New configuration(s) added in android/include/config.h: HAVE_STRUCT_MMSGHDR HAVE_STRUCT_UTSNAME_DOMAINNAME HAVE_STRUCT_XT_ENTRY_MATCH HAVE_STRUCT_XT_ENTRY_TARGET Following shows the new or deleted test suites in that will be run by 'vts': Deleted Added --------------------------------------------------------- fcntl-locktests_android cve Following shows the difference in testcases that will be run by 'vts': Deleted Added --------------------------------------------------------- net_stress.multicast.mcast4-grpope03 net_stress.multicast.mcast4-group-multiple-socket net_stress.multicast.mcast4-grpope02 net_stress.multicast.mcast6-group-same-group net_stress.multicast.mcast4-grpope01 net_stress.multicast.mcast4-group-source-filter net_stress.multicast.mcast4-grpope04 net_stress.multicast.mcast6-group-source-filter net_stress.multicast.mcast6-grpope01 net_stress.multicast.mcast4-group-single-socket net_stress.multicast.mcast6-grpope03 net_stress.multicast.mcast6-group-multiple-socket net_stress.multicast.mcast6-grpope02 net_stress.multicast.mcast6-group-single-socket net_stress.multicast.mcast6-grpope04 net_stress.multicast.mcast4-group-same-group syscalls.lseek03 syscalls.keyctl04 syscalls.lseek10 syscalls.keyctl05 syscalls.lseek06 syscalls.msync04 syscalls.lseek05 syscalls.cve-2017-6951 syscalls.lseek04 syscalls.fcntl36 syscalls.shmat03 syscalls.fcntl35 syscalls.lseek09 syscalls.clock_nanosleep02 syscalls.lseek08 syscalls.getsockopt02 syscalls.write02 syscalls.copy_file_range01 quickhit.lseek03 quickhit.lseek11 quickhit.lseek05 quickhit.lseek07 Change-Id: Ib7f5c927098193c28200f06fb4d82578944f1eb8 Signed-off-by: Sandeep Patil <sspatil@google.com>
|
bc2568d82fcd77b4829bdc3d5fb4af38b85a7c26 |
16-Oct-2017 |
Petr Vorel <pvorel@suse.cz> |
m4: Fix libkeyutils detection on 32-bit cross build Signed-off-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
eyctl.h
|
9cb40b24c5e2f4fc46f80363cdb561a4c9123d90 |
16-Oct-2017 |
Petr Vorel <pvorel@suse.cz> |
syscalls/request_key: Port to use lapi/keyctl.h header + minor whitespace cleanup Signed-off-by: Petr Vorel <pvorel@suse.cz>
eyctl.h
|
7a26f242eeac0f35a68dc65875dd89bba03b35b9 |
16-Oct-2017 |
Petr Vorel <pvorel@suse.cz> |
lapi/keyctl.h: Add doc and reorder definitions Signed-off-by: Petr Vorel <pvorel@suse.cz>
eyctl.h
|
5ed644cdbe1501f0ed437501c320b8012a75cd00 |
12-Oct-2017 |
Eric Biggers <ebiggers@google.com> |
lapi/keyctl.h: add a few missing definitions KEYCTL_REVOKE, KEYCTL_READ, KEY_SPEC_PROCESS_KEYRING, and KEY_SPEC_USER_SESSION_KEYRING are used by existing tests. KEY_SPEC_USER_KEYRING will be used by an upcoming test. Signed-off-by: Eric Biggers <ebiggers@google.com>
eyctl.h
|
93c56160b2c9ce8c7c566668364f990c6a086100 |
14-Sep-2017 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
cve/cve-2016-10044.c: Fix compilation without READ_IMPLIES_EXEC Compilation failed on some older distributions(e.g. RHEL5.11) due to undefined READ_IMPLIES_EXEC in <sys/personality.h>, so we fix it. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
ersonality.h
|
35799a922cffbbab4f7d580c61fc8a55a053fdc4 |
11-Sep-2017 |
Richard Palethorpe <rpalethorpe@suse.com> |
lib: Add personality fallback and SAFE macro Add the macro SAFE_PERSONALITY as well as fallback logic for if <sys/personality.h> is missing UNAME26. Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
ersonality.h
|
1c86c91b06e96aa56fc667ecf1775ac58501e1a6 |
29-Aug-2017 |
Guangwen Feng <fenggw-fnst@cn.fujitsu.com> |
lapi/keyctl.h: Add fallback definition of keyutil.h Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
eyctl.h
|
d1fffb9c020c8b6fa7129d59a017c279fdb83d1b |
03-Aug-2017 |
Guangwen Feng <fenggw-fnst@cn.fujitsu.com> |
Test for CVE-2016-7042 in /proc/keys show function Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
eyctl.h
|
61c035c400e45f256bfb20b304d159b1a5f5be21 |
18-Aug-2017 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: Add keyctl.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
eyctl.h
|
3b3a00e77aab7b22631a86942d7470d9fbbf7668 |
03-Aug-2017 |
Cyril Hrubis <chrubis@suse.cz> |
lapi/{vmsplice.h,splice.h,tee.h}: Switch to tst_syscall() Now that all splice tests are converted. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
plice.h
ee.h
msplice.h
|
4d0d149c4e15c9f8f71ef122e5112086040f4c3d |
24-Jul-2017 |
Richard Palethorpe <rpalethorpe@suse.com> |
Remove linux_syscall_numbers.h Makefile This header is now created during configuration. Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com> Acked-by: Cyril Hrubis <chrubis@suse.cz> Acked-by: Jan Stancek <jstancek@redhat.com>
yscalls/Makefile
|
817d8095fbfe5ebe22b29f58b7483f3d8d5e3fcc |
24-Jul-2017 |
Richard Palethorpe <rpalethorpe@suse.com> |
Rename linux_syscall_numbers.h to lapi/syscalls.h Move testcases/kernel/include/linux_syscall_numbers.h to lapi/syscalls.h so that it is easily accessible from the LTP library as well as the tests. Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com> Acked-by: Cyril Hrubis <chrubis@suse.cz> Acked-by: Jan Stancek <jstancek@redhat.com>
gitignore
allocate.h
kdirat.h
eadlinkat.h
enameat.h
ched.h
plice.h
yscalls/Makefile
yscalls/aarch64.in
yscalls/arm.in
yscalls/hppa.in
yscalls/i386.in
yscalls/ia64.in
yscalls/order
yscalls/powerpc.in
yscalls/powerpc64.in
yscalls/regen.sh
yscalls/s390.in
yscalls/s390x.in
yscalls/sh.in
yscalls/sparc.in
yscalls/sparc64.in
yscalls/strip_syscall.awk
yscalls/x86_64.in
ee.h
imerfd.h
msplice.h
|
5eca7e63c48f85c59486da4abd803b7ac9aed4b7 |
14-Jun-2017 |
Sandeep Patil <sspatil@google.com> |
Upgrade to LTP 20170516 A short log of commits merged as part of this is available in Merge list New disabled tests due to failure to build: setpriority01 prot_hsymlinks New configuration(s) added in android/include/config.h: HAVE_SYS_XATTR_H Following new tests take too long and shall be disabled in VtsLtp dio.dio29 dio.dio30 Following shows the difference in testcases that will be run by 'vts': Deleted Tests Added Tests ------------------------------------------ syscalls.socket03 syscalls.dirtyc0w syscalls.msgget04 syscalls.madvise07 syscalls.access06 syscalls.madvise08 syscalls.access05 syscalls.madvise09 syscalls.msgsnd04 syscalls.flistxattr03 syscalls.setpriority05 syscalls.flistxattr02 syscalls.setpriority04 syscalls.flistxattr01 syscalls.nice05 syscalls.sendto02 syscalls.umask02 syscalls.getxattr04 syscalls.umask03 syscalls.memfd_create02 syscalls.setpriority03 syscalls.ioctl04 syscalls.msgsnd03 syscalls.ioctl05 syscalls.writev03 syscalls.ioctl06 syscalls.writev04 syscalls.quotactl03 commands.ld commands.ldd01 commands.nm commands.cp01 commands.tar commands.keyctl01 commands.ldd commands.tar01 commands.objdump commands.ld01 commands.cpio commands.cpio01 commands.mkdir_tests01 commands.mkdir01 commands.mv_tests01 commands.nm01 commands.size01 commands.ln01 commands.file commands.mv01 commands.cp_tests01 commands.file01 TODO: Following new tests currently fail, they are to be addressed one at a time immediately following the merge: syscalls.getcwd01 commands.file01 commands.mv01 commands.tar01 syscalls.madvise08 syscalls.ioctl05 syscalls.pselect01 syscalls.access02 syscalls.kcmp03 syscalls.ioctl06 syscalls.access04 commands.ldd01 syscalls.ioctl04 syscalls.getxattr04 Change-Id: Iad24a01393cd0e35d5419b1318d2ee316575bac2 Signed-off-by: Sandeep Patil <sspatil@google.com>
|
33449a40407077f490620cafb23dfb3739307170 |
25-Apr-2017 |
Predrag Blagojevic <predrag.blagojevic@imgtec.com> |
[MIPS] Enable LTP for mips Change-Id: I39d0452f233f8ded188fda10fef909aa7156db22
t_sigaction.h
|
390a5568f5236857f8bf99cedec87cd7fe37f3c8 |
11-Apr-2017 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
syscalls/quotactl02.c: add Q_XGETNEXTQUOTA flag test Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
uotactl.h
|
e1b3718304c1247b6dbb2ea7313ce3736e029cd8 |
12-Apr-2017 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
lapi/seek.h: fix typo for SEEK_DATA Compilation failed on RHEL6.9GA because SEEK_DATA is not defined. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
eek.h
|
c486cce9baee092637cef82e1fcfd3ee8e64cbb2 |
11-Apr-2017 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: Add seek.h for SEEK_DATA and SEEK_HOLE Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
allocate.h
eek.h
|
ac602f5ffc607c1c2cca9946edf2d277e49ee888 |
30-Mar-2017 |
Guangwen Feng <fenggw-fnst@cn.fujitsu.com> |
syscalls/memfd_create: Fix build failure when HAVE_FALLOCATE not defined Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Acked-by: Jan Stancek <jstancek@redhat.com>
allocate.h
|
b731859c7c628511b7012f5403002ca39163fbe8 |
23-Mar-2017 |
Jakub Racek <jracek@redhat.com> |
move fallocate.h to lapi Signed-off-by: Jakub Racek <jracek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
allocate.h
|
e036a8c0f717529717c0f57066d329bbd26f0753 |
23-Mar-2017 |
Jakub Racek <jracek@redhat.com> |
Added fcntl() lapi flags Signed-off-by: Jakub Racek <jracek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
879680a655b83ac32bd3ded8e9e94771d4c814dd |
23-Mar-2017 |
Jakub Racek <jracek@redhat.com> |
Added memfd_create() lapi flags Signed-off-by: Jakub Racek <jracek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
emfd.h
|
8967f960f820f449162101a02ee5747f195a8a57 |
14-Feb-2017 |
Ngie Cooper <yaneurabeya@gmail.com> |
Update references with my old legal name/email to my current name/email address No functional change Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com>
t_sigaction.h
|
6c701a043f9da5c09f8a253729c87f4adf8b2849 |
26-Jan-2017 |
Cyril Hrubis <chrubis@suse.cz> |
madvise01: Add MADV_FREE + fallback in lapi/mmap.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
map.h
|
1216353084c8a563b055564eef4980a93760946a |
05-Sep-2016 |
Huacai Chen <chenhc@lemote.com> |
rt_sigaction.h: Add MIPS support MIPS's kernel sigaction is different from most architectures. If without this patch, rt_sigaction01 will get a segfault on MIPS. Signed-off-by: Huacai Chen <chenhc@lemote.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
t_sigaction.h
|
96cccf4bedb8abe0421af8b56ac8b7b117b58e82 |
26-Jul-2016 |
Cyril Hrubis <chrubis@suse.cz> |
lapi/fcntl.h: Include system headers first. Include the system headers first so that system constants are used if present. Also fixes build failure where SOCK_CLOEXEC was replaced with it value in a system header included after "lapi/fcntl.h" which was pulled in from tst_test.h in fcntl34. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
d2a810a16782b6da2a73395ebc59806fa41f3e04 |
24-Jun-2016 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
syscalls/socket02: reconstruct and convert to new API 1) take use of some SAFE Marcos 2) remove SOCK_CLOEXEC introduced in socketpair() 3) merge socket03 into socket02 Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
cntl.h
|
3181950ee36f6249e5d6b50bf087e0dad5ff33de |
20-Jul-2016 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
syscalls/kcmp03.c: Add new testcase 1) kcmp() returns 0 if the processes share the same file system information. 2) kcmp() returns 0 if the processes share I/O context. 3) kcmp() returns 0 if the processes share the same list of System V semaphore undo operations. 4) kcmp() returns 0 if the processes share the same address space. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
ched.h
|
0ed5b6ad5eb85bc03840150d65f2a0eefd9c5f9c |
15-Jul-2016 |
Yuexi Ma <yuexima@google.com> |
patched the repo for a small set of succesfull build Change-Id: I03d2b4126c913c387e6c5cfbd07bd10e67ca805c
emun.h
|
8a56a43acb9a6b892404d32e8859bc4e070de8ec |
25-May-2016 |
Li Wang <liwang@redhat.com> |
ltp/lapi: add some madvices definition Signed-off-by: Li Wang <liwang@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
map.h
|
2f7d1be42a786282bb73cd3f17a0c6314d7b84b3 |
31-May-2016 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
syscalls/epoll_create1: Cleanup && Convert to new API Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
poll.h
|
ca67538f254e9394480881870b1e4c928947ba46 |
12-Apr-2016 |
Cyril Hrubis <chrubis@suse.cz> |
include/lapi/fcntl.h: Do not include tee and splice The newly added fcntl34 test uses newlib and includes lapi/fcntl.h. The fcntl header includes fallback defitions for splice and tee which are exposed on older distros. The fallback defitions calls ltp_syscall() that calls tst_brkm() which is not available under the newlibrary and hence the compilation fails. This commit removes the tee.h, splice.h, and vmsplice.h from fcntl.h and adds these directly to the testcases if needed. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
13fe1c7a8aa2438afa29c07979d0a607b14f379e |
26-Jan-2016 |
Alexey Kodanev <alexey.kodanev@oracle.com> |
syscalls/fcntl: add new test for open file description locks OFD lock is available since Linux 3.15 and new F_OFD_* macros added to lapi/fcntl.h Test is based on [1] article and checks that OFD locks can syncronise access to a file between multiple threads. [1] https://lwn.net/Articles/586904 Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
bbdb9f78378c7e038f463efa39d2470e1c51ad54 |
16-Mar-2016 |
Cyril Hrubis <chrubis@suse.cz> |
lib: Add new test library API The main features are: o The cleanup callback is not passed directly to various library functions but is set once globally in the structure that describes a test - this makes the test API easier to use - also fixes a few common mistakes such as passing cleanup callback to functions executed from a cleanup o Most of the boilerplate code is moved to library - no more copying standard looping code around :) o Various resources are initialized and freed automatically when requested - this means much less race conditions and ordering problems in cleanups o The result reporting functions now use shared memory to propagate test results from child processes - writing tests in child processes is now easier than ever + The test-writing-guidelines.txt were updated Many thanks to Jan who reviewed numerous respins of this patches and provided valuable suggestions and also to Alexey who pointed out some stupid mistakes of mine. Reviewed-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
utex.h
|
b91c37dca5a47c05845e7f91bc5d141a8b4f7f83 |
07-Mar-2016 |
Vineet Gupta <Vineet.Gupta1@synopsys.com> |
rt_sigaction.h: ARC: Provide default sa_restorer LTP tests the raw (non libc) sigaction ABI to kernel such as validation of various params. sigaction on ARC relies on default userspace sa restorer to invoke a sigreturn syscall when returning from a signal handler. Thus libc provides a default sa restorer. LTP tests the raw sigaction syscall ABI (w/o libc) hence needs the restorer userspace infrastructure, which this patch provides for ARC. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
t_sigaction.h
|
0b1a91b28752a98df02e6210e3fb06d65806a449 |
02-Mar-2016 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
lapi/socket.h: fix typo Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
ocket.h
|
aac9d1f0e4a8c3319ac07dc137275c940f09324a |
02-Mar-2016 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
syscalls/recvmsg02: Add header file lapi/socket.h Compilation failed on RHEL5.11GA because SOCK_CLOEXEC is not included in sys/socket.h on RHEL5.11GA, so fix it. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
ocket.h
|
5b789d89258c5877235445ea5187aa9cdb58d276 |
27-Jan-2016 |
Alexey Kodanev <alexey.kodanev@oracle.com> |
include/lapi/fcntl.h: add O_TMPFILE definition Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
2190148b733c2f406098fc1ca67dc34caaa92e30 |
23-Dec-2015 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
lapi/rt_sigaction.h: mark rt_stub functions as used Commit cb2313789a21fb ("ltp_rt_sigaction: SPARC fixes for -O0") did not consider the situation where the compiler (-O2) optimizes out rt_stub functions and the labels we define in them, since these functions are not used explicitly anywhere. To avoid this let's explicitly mark them as used. __attribute__((used)) should not bring any new build errors, because it's supported by gcc and clang (at least since 3.0). Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
t_sigaction.h
|
bbbb2e31edd09598b872497c4ee1579f1eeeed0e |
22-Dec-2015 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
lapi/fcntl.h: define O_PATH on SPARC Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
cntl.h
|
4d8fd9f527e890a9c88ab54156941387c0caf13e |
08-Oct-2015 |
Cui Bixuan <cuibixuan@huawei.com> |
sched_getattr/sched_getattr01: Add new testcase to test sched_getattr Add testcase 'sched_getattr01' to test sched_getattr function Signed-off-by: Cui Bixuan <cuibixuan@huawei.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
ched.h
|
b008b9219e2876e0dd9b3b7e2b78f34c93290a37 |
01-Oct-2015 |
Cedric Hnyda <chnyda@suse.com> |
syscall/renameat2: Add tests for renameat2 Added tests for the syscall renameat2. Signed-off-by: Cedric Hnyda <chnyda@suse.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
39ef6df9cbe25279aded8ea3032b8f413267f8e1 |
18-Aug-2015 |
Matus Marhefka <mmarhefk@redhat.com> |
added helper tools for creating and working with namespaces This patch introduces helper tools for creating and working with namespaces (ltp/testcases/kernel/containers/share) and also includes documentation (ltp/doc/namespaces-helper-tools.txt): * ns_create: Creates a child process in the new specified namespace(s), child is then daemonized and is running in the background. PID of the daemonized child process is printed on the stdout. As the new namespace(s) is(are) maintained by the daemonized child process it(they) can be removed by killing this process. * ns_exec: Enters the namespace(s) of a process specified by a PID and then executes the indicated program inside that namespace(s). * ns_ifmove: Moves a network interface to the namespace of a process specified by a PID. Example usage: ============== $ myns=$(ns_create net ipc) $ ip link add veth0 type veth peer name veth1 $ ns_exec $myns ip a 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 $ ns_ifmove veth1 $myns $ ns_exec $myns ip a 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 6: veth1: <BROADCAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 6a:0a:45:ed:6e:d0 brd ff:ff:ff:ff:ff:ff $ ip link del veth0 $ kill -9 $myns ============== The only requirement from kernel side is the support of "setns" syscall. There is no need to have util-linux (unshare, nsenter) installed. This way test cases utilizing namespaces can be executed even on older kernels which do not provide required tools for working with namespaces. Signed-off-by: Matus Marhefka <mmarhefk@redhat.com>
amespaces_constants.h
|
cb2313789a21fb3a6dd1949f0adee6fb4b073a56 |
17-Aug-2015 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
ltp_rt_sigaction: SPARC fixes for -O0 The *sigreturn_stub functions are copied from glibc, and they work only if optimization > 0, since they expect that the compiler does not add an prologue. For example, with -O > 0: 0000000000102140 <__rt_sigreturn_stub>: 102140: 82 10 20 65 mov 0x65, %g1 ! 65 <_init-0x101f23> 102144: 91 d0 20 6d ta 0x6d 102148: 81 c3 e0 08 retl 10214c: 01 00 00 00 nop but without -O: 000000000010212c <__rt_sigreturn_stub>: 10212c: 9d e3 bf 50 save %sp, -176, %sp <--- this 102130: 82 10 20 65 mov 0x65, %g1 102134: 91 d0 20 6d ta 0x6d 102138: 81 cf e0 08 rett %i7 + 8 10213c: 01 00 00 00 nop Therefore, if we build LTP with OPT_CFLAGS="", ltp_rt_sigaction() will malfunction. To avoid this, let's declare a new symbol pointing to the instruction we need ('mov ...'). The trick was proposed by Jose E. Marchesi <jose.marchesi@oracle.com>. Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Acked-by: Jan Stancek <jstancek@redhat.com>
t_sigaction.h
|
8493486dc674e5467d0cef07b340ca65b2a8fcd0 |
15-Jul-2015 |
Guangwen Feng <fenggw-fnst@cn.fujitsu.com> |
umount2/umount2_01.c: add new test Add new testcase to verify the flag MNT_DETACH of umount2(2). Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
ount.h
|
e90291c0c1c4a249e6693ae2ae6afceae7a0dc56 |
04-Aug-2015 |
Guangwen Feng <fenggw-fnst@cn.fujitsu.com> |
open/open13.c: add O_PATH flag test Basic test for O_PATH flag of open(2). Obtain a file descriptor that can be used to perform operations that act purely at the file descriptor level, the file itself is not opened, the operations read(2), write(2), fchmod(2), fchown(2) and fgetxattr(2) fail with the error EBADF. Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
cntl.h
|
d485310f897386b3e1378418768b907dc480c2fc |
07-Jul-2015 |
Guangwen Feng <fenggw-fnst@cn.fujitsu.com> |
futex/futex_wake04.c: add kernel version check Compilation failed on RHEL5U11GA because the flag MAP_HUGETLB of mmap(2) are only available on kernels that are 2.6.32 or higher, therefore add kernel version check, as well as add mmap.h to define the flag in order to avoid compilation error. Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> Reviewed-by: Jan Stancek <jstancek@redhat.com> Tested-by: Li Wang <liwang@redhat.com>
map.h
|
17dce71b18834fc41275eb79b940a33046642947 |
13-Jul-2015 |
Jan Stancek <jstancek@redhat.com> |
syscalls/getrandom: add configure check for linux/random.h Old distros (such as RHEL5.6) break, when they try to include some kernel headers directly. Add configure check to make sure linux/random.h kernel header can be compiled without errors. Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
etrandom.h
|
cc634814d1881137a19287eeaa0cf6fd15ecf4da |
25-Jun-2015 |
Jan Stancek <jstancek@redhat.com> |
getrandom: fix compilation with older kernels Add lapi/getrandom.h as fallback for GRND_* defines Add getrandom to syscalls number list for common architectures Replace syscall with ltp_syscall Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
etrandom.h
|
d878d706f82948138e849299c15d011fd2512dd6 |
18-May-2015 |
Cui Bixuan <cuibixuan@huawei.com> |
open/open12: Fix compile error The 'MS_STRICTATIME' flag is not defined in old libc. Add it into include/lapi/mount.h and include it in testcase source. Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
ount.h
|
5571228702e60a99e547d7b66b7182ab9bd848e4 |
25-May-2015 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
Move futex_t into a common header Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
utex.h
|
b681672752634a70ba1bd6b1c6b5ae2967ac13e5 |
12-Apr-2015 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
Keep the definition of union semun in one place Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
emun.h
|
0329c09d325b2e0eee6dadb2a4cf63ca903cc85c |
19-Mar-2015 |
Zhang Jian(Bamvor) <bamvor.zhangjian@huawei.com> |
ARM64: ILP32: define LTP_USE_64_ABI for ILP32 It will affect the testcase fallocatexx, fanotifyxx Signed-off-by: Zhang Jian(Bamvor) <bamvor.zhangjian@huawei.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
bisize.h
|
4c256b39267c892c34549af522a6624cea448ca3 |
13-Aug-2014 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: Add configure check and fallback struct iovec declaration Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
ovec.h
msplice.h
|
638f7260107a6eb71903cd4dc3feddb52725250a |
12-Aug-2014 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
rt_sigaction.h: define HAVE_SA_RESTORER for most platforms On some platforms LTP fails to compile, because (struct sigaction) doesn't have .sa_restorer member. For example - ia64. To overcome such failures we employ HAVE_SA_RESTORER define. Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Tested-by: Cyril Hrubis <chrubis@suse.cz>
t_sigaction.h
|
9ac868c06c8ae29733cbd9240ab84c6e3be6a54b |
27-Jun-2014 |
Zeng Linggang <zenglg.jy@cn.fujitsu.com> |
add new errno testes for timerfd_* * Add EINVAL errno testes for timerfd_create(2) - The clockid argument is neither CLOCK_MONOTONIC nor CLOCK_REALTIME, EINVAL would return. - flags is invalid, EINVAL would return. * Add EBADF, EFAULT and EINVAL errno testes for timerfd_gettime(2) - fd is not a valid file descriptor, EBADF would return. - curr_value is not valid a pointer, EFAULT would return. - fd is not a valid timerfd file descriptor, EINVAL would return. * Add EBADF, EFAULT and EINVAL errno testes for timerfd_settime(2) - fd is not a valid file descriptor, EBADF would return. - old_value is not valid a pointer, EFAULT would return. - fd is not a valid timerfd file descriptor, EINVAL would return. - flags is invalid, EINVAL would return. Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com> Tested-by: Jan Stancek <jstancek@redhat.com>
imerfd.h
|
451a7e571aa997642f1d52cff2dcddd17a01b8fb |
17-Jun-2014 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
ltp_rt_sigaction.h: added SPARC support syscall(__NR_rt_sigaction) on SPARC requires more arguments, than it does in x86_64 environment. Therefore to make ltp_rt_sigaction() work on SPARC, we modify it the same way as it's done in glibc, i.e. by hiding the additional argument - the stub - inside the wrapper. Based on patches by Jose E. Marchesi <jose.marchesi@oracle.com>. Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
t_sigaction.h
|
ea53701508b56d9b2fc62191cf718c70a1b1e95d |
17-Jun-2014 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
rt_sigaction, rt_sigprocmask01, rt_sigsuspend: use rt_sigaction wrapper These testcases use many pieces of duplicated code to test syscall(__NR_rt_sigaction). Thus it's not beautiful to add support for other architectures there. To overcome this I: * moved everything inside '#ifdef LTP_RT_SIG_TEST' to a separate header file - 'include/lapi/rt_sigaction.h' So if we need to test the rt_sigaction syscall, we include 'lapi/sigaction.h', otherwise - include 'ltp_signal.h'. * moved struct kernel_sigaction out of '#ifdef __x86_64__', because it is not specific only for x86_64 * implemented a wrapper for the rt_sigaction syscall and put it into 'include/lapi/rt_sigaction.h' * modified the above test cases to use this wrapper Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
t_sigaction.h
|
a3bfea2c902c00a24743024338f744e7bfa38251 |
17-Jun-2014 |
Xing Gu <gux.fnst@cn.fujitsu.com> |
renameat/renameat01.c: cleanup Add renameat.h to encapsulate renameat syscall. Delete some useless comments. Use some SAFE_* macros. Move the test body from main() to renameat_verify(). Signed-off-by: Xing Gu <gux.fnst@cn.fujitsu.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
enameat.h
|
4200068abdf3743e096b97c4f6360139073de881 |
03-Jun-2014 |
Cyril Hrubis <chrubis@suse.cz> |
include/lapi: Add vmsplice.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
msplice.h
|
6a558f8703b50bbda5ddd5a1b83ecae10c544776 |
03-Jun-2014 |
Cyril Hrubis <chrubis@suse.cz> |
include/lapi/fcntl.h: Add splice() flags + include * Add SPLICE_F_NONBLOCK to lapi/fcntl.h * Include lapi/splice.h lapi/tee.h in lapi/fcntl.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
6bd56e664977a286fd2c0bd4cfbb1ce286dde2b1 |
03-Jun-2014 |
Cyril Hrubis <chrubis@suse.cz> |
splice, tee: Move splice.h tee.h to include/lapi Move the function definitions to global header because the tee01 needs splice() too. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
plice.h
ee.h
|
4ece5a5252c8f50af442a4c97131b35f6736a2c4 |
07-May-2014 |
Zeng Linggang <zenglg.jy@cn.fujitsu.com> |
lapi: Add readdir.h Define the old_linux_dirent structure. Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
eaddir.h
|
0ea7aa0d2460fe27bde2285792a6706604f9c4b9 |
07-May-2014 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls: Rewrite readlinkat01 * Adds configure check for readlinkat and lapi/readlinkat.h header * Fixes the mess in readlinkat01 testcase - Cleanup - Use tst_exit() instead of return 0 (the test failure wasn't propagated out at all!) - Make use of tst_tmpdir() and SAFE_MACROS() - ... Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
eadlinkat.h
|
04afb02b4280a20c262054e8f99a3fad4ad54916 |
17-Apr-2014 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: Add abisize.h This moves ifdefs that decides if we should use compat version of syscall or not from fallocate.h to lapi/abisize.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
bisize.h
|
a89e4a93a573b560b9ed6ad0b18316ba0276a85a |
16-Apr-2014 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/fallocate01: Fix compilation failure. On newer distribution the addition of _GNU_SOURCE breaks the compilation because it exposes the FALLOC_FL_KEEP_SIZE as a macro constant which breaks the enum defition. So this commit adds FALLOC_FL_KEEP_SIZE to lapi/fcntl.h and removes the enum. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
82b0600f15ffd370769f0420d410c497dff66bdc |
13-Mar-2014 |
Zeng Linggang <zenglg.jy@cn.fujitsu.com> |
lapi: fcntl.h: Add O_NOATIME Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
cntl.h
|
66a84a4a5429bb638059b8ba57f13408c8b56ebf |
24-Mar-2014 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/fcntl31: Fix build on older glibc. Adds F_OWNER_PGRP into lapi/fcntl.h and include to the testcase. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
4bbec17b199675dbd76c805fdc321ee6827d502b |
05-Mar-2014 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: Add mkdirat.h Which defines mkdirat() if it's not present in system headers. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
kdirat.h
|
8697aa951eca156b51cf46ec3c8700b22b94f9c0 |
25-Feb-2014 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: fcntl.h: Add AT_SYMLINK_NOFOLLOW Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
cntl.h
|
8d5fba3db5221b984b93fbc1d4d269afdbcf24ee |
25-Feb-2014 |
Zeng Linggang <zenglg.jy@cn.fujitsu.com> |
linkat/linkat02.c: add new error number tests Add new error number tests for linkat(2): * ENAMETOOLONG * EEXIST * ELOOP * EACCES * EMLINK * EROFS Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
cntl.h
|
fe173032ce95fb3e50534874a9dc27c09736cf19 |
12-Feb-2014 |
Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> |
fcntl/fcntl30.c: add F_SETPIPE_SZ, F_GETPIPE_SZ test for fcntl(2) create a new case to test F_SETPIPE_SZ, F_GETPIPE_SZ for fcntl(2) Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
cntl.h
|
9505857f0f27142257a2121d86578c642baec3d2 |
12-Feb-2014 |
Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> |
fcntl/fcntl29.c: add F_DUPFD_CLOEXEC test for fcntl(2) create a new case to test F_DUPFD_CLOEXEC for fcntl(2) Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
cntl.h
|
98f8747aee484ed06f08bd7ba9683bfa8144d0c2 |
08-Jan-2014 |
Cyril Hrubis <chrubis@suse.cz> |
lapi: Add fcntl.h to define O_CLOEXEC, fix build This moves the numerous O_CLOEXEC defintions into lapi/fcntl.h header and also fixes the dup3_02.c build on older distributions (where O_CLOEXEC is not defined) by including this header. Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Jan Stancek <jstancek@redhat.com>
cntl.h
|
1c86abd9a7b740ba508a04d87576b6efde6a0bf5 |
04-Dec-2013 |
Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> |
created lapi/utime.h And put there some definitions which are needed, even if the libc doesn't provide them. Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
time.h
|
0647a00a218fbbb576eea69555eeaff8c8017b98 |
21-Nov-2013 |
Cyril Hrubis <chrubis@suse.cz> |
Add include/lapi/posix_clocks.h and make use of it Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
osix_clocks.h
|