Comments (5)
dirtypipe.c
, dirtyc0w_shmem.c
, dirtyc0w.c
are also in runtest/cve
(some of the tests in runtest/cve
are also in runtest/syscalls
).
I'm not sure about prot_hsymlinks.c
, but we actually don't have any runtest specific to security (many tests are kind of security). We have runtest/cve
, but that one is for CVE entries only (some of these tests are also in runtest/syscalls
). Old runtest/securebits
is libcap and linux/securebits.h specific. We also have runtest/cap_bounds
, We could merge these into single and rename it to runtest/capability
, but first, it'd be better to check whether these old tests are even relevant nowadays.
from ltp.
Hi,
Thanks for the explanation! I probably didn't understand our test suite that well, so my word on "security" is confusing. My question actually why are prot_hsymlinks
, dirtyc0w
, dirtyc0w_shmem
, dirtypipe
included in syscall tests. I am not super clear which syscall they are testing.
Thanks!
from ltp.
I guess at the time of adding prot_hsymlinks
in 18f6767 there was no better place. I guess at the time syscalls was a default runtest file (while some runtests are very small, which is waste of booting SUT, syscalls is too big).
dirtyc0w_shmem.c
is obvious (shmem) and I guess dirtyc0w.c
just went it it. dirtypipe.c
tests pipe.
Also, given about other problems (missing tests for new functionality, old tests are buggy or needs to be cleaned up and rewritten into new API, some tests should be even deleted as they are not relevant any more) having tests is a wrong runtest file as a minor theoretical detail.
from ltp.
Unless you write a very simple unit test it's often not easy to tell which syscall you are testing testing. If you write a stress test that reads and write a file, do you test read or write? It's actually both and that is still a simple example. More complicated tests use dozen of syscalls and sometimes it's not a clear cut which one is the syscall under a test. The whole runtest structure in LTP is flawed because of that, because that means that tests are going to be duplicated among runtest files, and you cannot really do better unless you change the whole concept of how tests are executed.
from ltp.
Can we close this issue?
from ltp.
Related Issues (20)
- pan(476): Must supply a file collection or a command
- Rewrite or remove testcases/kernel/fs/doio/rwtest
- Skip specific test for specific filesystem HOT 2
- sem_timedwait: 2-1.c : There is always an error output TEST FAILED HOT 2
- memcontrol04 failures on RHEL9 (s390x - LPAR & z/VM) HOT 4
- irqbalance01 reports broken - RHEL9 HOT 12
- sched test failures in RHEL8 - no rt_runtime set
- Make warning happen in getcwd01.c HOT 1
- Build failure while trying to build from source HOT 2
- Add listmount() and statmount() tests HOT 1
- Compilation error when building against linux-rolling-stable branch headers HOT 19
- 20240129 release has TODO instead of description HOT 1
- How to use this on an embedded system linux HOT 1
- fsx-linux: fname filename input option needed back HOT 7
- kirk executable not present in the container HOT 3
- Move tests variants from runtest files into tests HOT 1
- tst_fd imports sys/fanotify.h HOT 4
- test_robind 1 TBROK: mkfs.f2fs /dev/block/loop44 failed HOT 1
- arm32: Test killed by SIGILL : readahead01 accept03 splice07 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltp.