deleted /dev/zero
I am running some stress tests (such as ltp, netperf, lmbench, etc) on the SMP swarm board. Once in a while I notice /dev/zero will get deleted. This causes all kinds of weired problems (such as internal gcc error. Why?)
I don't know how to re-produce this problem yet. It seems a little non-deterministic. I would appreciate any insight into this problem.
Jun
Quoted 2 lines · Jun Sun
I don't know how to re-produce this problem yet. It seems a little non-deterministic. I would appreciate any insight into this problem.
The ltp mtest05 test had a bug in which it would remove /dev/zero when it cleaned up. Have you got an updated ltp suite?
This is the fix that they did in late March to the mtest05 test.
/ltp/ltp/testcases/kernel/mem/mtest05/mmstress.c:246
- if (strcmp(filename, "NULL") || strcmp(filename, "/dev/zero"))
+ if (strcmp(filename, "NULL") && strcmp(filename, "/dev/zero"))
I suppose that there may be other LTP tests that could have similar bugs...
Cheers
Liam
Thanks. I am using an old version of ltp, and I still see the bug there.
Jun
Quoted 26 lines · Liam Davies
Quoted 2 lines · Jun Sun
I don't know how to re-produce this problem yet. It seems a little non-deterministic. I would appreciate any insight into this problem.
The ltp mtest05 test had a bug in which it would remove
/dev/zerowhen it cleaned up. Have you got an updated ltp suite?This is the fix that they did in late March to the mtest05 test.
/ltp/ltp/testcases/kernel/mem/mtest05/mmstress.c:246
(quoted diff) +1
-1- if (strcmp(filename, "NULL") || strcmp(filename, "/dev/zero")) + if (strcmp(filename, "NULL") && strcmp(filename, "/dev/zero"))I suppose that there may be other LTP tests that could have similar bugs...
Cheers
Liam
Quoted 11 lines · Liam Davies
The ltp mtest05 test had a bug in which it would remove
/dev/zerowhen it cleaned up. Have you got an updated ltp suite?This is the fix that they did in late March to the mtest05 test.
/ltp/ltp/testcases/kernel/mem/mtest05/mmstress.c:246
(quoted diff) +1
-1- if (strcmp(filename, "NULL") || strcmp(filename, "/dev/zero")) + if (strcmp(filename, "NULL") && strcmp(filename, "/dev/zero"))I suppose that there may be other LTP tests that could have similar bugs...
Which only proves again one shouldn't run software as root unless
absolutely needed...
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +