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

mips64: implement vdso_redirect_calls() #1205

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

sunny868
Copy link
Member

No description provided.

@0x7f454c46
Copy link
Member

0x7f454c46 commented Sep 14, 2020

Hi @sunny868, nice patch!
Please, put a Sing-off-by in it.
And also, could you check that vdso tests are passing on mips, specifically the vdso-proxy one?
Thanks!

@sunny868
Copy link
Member Author

I'm sorry , what's meaning of "Sing-off-by " ?
And I'm not check it but my colleague check it between two computers and can work normally.
Because linux-4.19 have not support timens for mips arch until linux-5.4,so vdso tests and vdso-proxy test can't be run ok.

[root@localhost criu]# ./test/zdtm.py run -t /home/gysun/work/criu-pr/criu/test/zdtm/static/vdso-proxy.c
userns is supported
=== Run 1/1 ================ /home/gysun/work/criu-pr/criu/test/zdtm/static/vdso-proxy.c
timens isn't supported
mount(binfmt_misc): No such device##################################### FAIL #####################################

@rppt
Copy link
Member

rppt commented Sep 15, 2020

I'm sorry , what's meaning of "Sing-off-by " ?

We ask contributors to sign off the commits as described here:
https://github.com/checkpoint-restore/criu/blob/criu-dev/CONTRIBUTING.md#sign-your-work

Signed-off-by: Guoyun Sun <sunguoyun@loongson.cn>
@sunny868
Copy link
Member Author

@rppt Sorry I made a low-level mistake

@0x7f454c46
Copy link
Member

And I'm not check it but my colleague check it between two computers and can work normally.

That's a good check, probably still worth a shot with zdtm test.

Because linux-4.19 have not support timens for mips arch until linux-5.4,so vdso tests and vdso-proxy test can't be run ok.

Those tests should work without timens support.
It seems that you are confused with timens isn't supported.
But I think the reason it fails is that you're trying to run

./test/zdtm.py run -t /home/gysun/work/criu-pr/criu/test/zdtm/static/vdso-proxy.c

instead of

./test/zdtm.py run -t zdtm/static/vdso-proxy

Anyway, the patch now LGTM.

@sunny868
Copy link
Member Author

[root@localhost criu]# uname -a
Linux localhost.localdomain 4.19.73+ #2 SMP PREEMPT Fri May 15 11:29:21 CST 2020 mips64 mips64 mips64 GNU/Linux
[root@localhost criu]# ./test/zdtm.py run -t zdtm/static/vdso-proxy
userns is supported
=== Run 1/1 ================ zdtm/static/vdso-proxy
timens isn't supported
======================= Run zdtm/static/vdso-proxy in h ========================
Start test
./vdso-proxy --pidfile=vdso-proxy.pid --outfile=vdso-proxy.out
Run criu dump
Run criu restore
Send the 15 signal to 48
Wait for zdtm/static/vdso-proxy(48) to die for 0.100000
Removing dump/zdtm/static/vdso-proxy/48
======================= Test zdtm/static/vdso-proxy PASS =======================
======================= Run zdtm/static/vdso-proxy in ns =======================
Start test
./vdso-proxy --pidfile=vdso-proxy.pid --outfile=vdso-proxy.out
Run criu dump
=[log]=> dump/zdtm/static/vdso-proxy/100/1/dump.log
------------------------ grep Error ------------------------
(00.051267) Running ip route save
(00.052658) Running ip -6 route save
(00.053980) Running ip rule save
Command "save" is unknown, try "ip rule help".
(00.055253) Warn (criu/net.c:1878): Check if "ip rule save" is supported!
------------------------ ERROR OVER ------------------------
Run criu restore
Send the 15 signal to 119
Wait for zdtm/static/vdso-proxy(119) to die for 0.100000
Removing dump/zdtm/static/vdso-proxy/100
======================= Test zdtm/static/vdso-proxy PASS =======================
====================== Run zdtm/static/vdso-proxy in uns =======================
Start test
./vdso-proxy --pidfile=vdso-proxy.pid --outfile=vdso-proxy.out
Run criu dump
=[log]=> dump/zdtm/static/vdso-proxy/187/1/dump.log
------------------------ grep Error ------------------------
(00.052525) Running ip route save
(00.053923) Running ip -6 route save
(00.056607) Running ip rule save
Command "save" is unknown, try "ip rule help".
(00.057920) Warn (criu/net.c:1878): Check if "ip rule save" is supported!
------------------------ ERROR OVER ------------------------
Run criu restore
Send the 15 signal to 208
Wait for zdtm/static/vdso-proxy(208) to die for 0.100000
Removing dump/zdtm/static/vdso-proxy/187
======================= Test zdtm/static/vdso-proxy PASS =======================
[root@localhost criu]#

@sunny868
Copy link
Member Author

vdso00 and vdso02 also is PASS. but vdso01 run info is:

[root@localhost criu]# ./test/zdtm.py run -t zdtm/static/vdso01
Skipping zdtm/static/vdso01 (arch x86_64)

@0x7f454c46 0x7f454c46 merged commit 49734bf into checkpoint-restore:criu-dev Sep 16, 2020
@0x7f454c46
Copy link
Member

Good work. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants