Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix Pattern] Don't use mmap for getting bad addr #22

Open
hukoyu opened this issue Jul 31, 2020 · 0 comments
Open

[Fix Pattern] Don't use mmap for getting bad addr #22

hukoyu opened this issue Jul 31, 2020 · 0 comments

Comments

@hukoyu
Copy link
Collaborator

hukoyu commented Jul 31, 2020

tst_get_bad_addr() in LTP tests will get bad address using mmap. As mmap is not fully supported the test fails here, so replaced the bad address with 0 ( as anything other than good is a bad address) and is serving our purpose.
Ref: lsds/sgx-lkl#647

- test_cases[n].pathname = tst_get_bad_addr(cleanup);
+ test_cases[n].pathname = 0;

LTP Tests fixed with this approach: (Count: 22)

write05
unlink07
statx03
stat03
sigpending02
open08
mkdir03
mknod06
link04
preadv202
readv02
pwritev202
lchown02
rmdir02
chmod06
chroot03
creat06
clock_adjtime02
clock_gettime02
clock_settime02
truncate03
fremovexattr02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant