linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.3k stars 1.01k forks source link

ptrace08.c: Remove kernel version dependence #904

Closed SkyRzn closed 2 years ago

SkyRzn commented 2 years ago

This test falsely fails on some ditributives because of inappropriate kernel version comparison. For example on VzLinux 8 it writes examining kernel address to dr0 and doesn't check if the address was realy written. Then it checks if enabling debug in dr7 is successful. Because the restricted address was not really written to dr0, dr7 writing is successful and the result is TFAIL.

Remove kernel dependence and check if the testing address was really written before triyng to write to dr7.

metan-ucw commented 2 years ago

@mdoucha @jstancek @xuyang0410 can any of you have a look?

pevik commented 2 years ago

@SkyRzn thanks alot! Could you please add Signed-off-by: Your Name <your@email> before we merge it?

FYI we also use mailing list for patches https://lists.linux.it/listinfo/ltp

SkyRzn commented 2 years ago

Added my sign.