Re: [Qemu-devel] [PATCH] 9p: fix QEMU crash when renaming files

2018-11-25 Thread P J P
+-- On Thu, 22 Nov 2018, Greg Kurz wrote --+ | When using the 9P2000.u version of the protocol, the following shell | command line in the guest can cause QEMU to crash: | | while true; do rm -rf aa; mkdir -p a/b & touch a/b/c & mv a aa; done | | With 9P2000.u, file renaming is handled by the

[Qemu-devel] [PATCH] 9p: fix QEMU crash when renaming files

2018-11-22 Thread Greg Kurz
When using the 9P2000.u version of the protocol, the following shell command line in the guest can cause QEMU to crash: while true; do rm -rf aa; mkdir -p a/b & touch a/b/c & mv a aa; done With 9P2000.u, file renaming is handled by the WSTAT command. The v9fs_wstat() function calls v9fs_compl