[Qemu-devel] Re: [V3 PATCH] net: properly handle illegal fd/vhostfd from command line

2010-10-26 Thread Michael S. Tsirkin
On Mon, Oct 25, 2010 at 01:39:59PM +0800, Jason Wang wrote: > When hanlding fd/vhostfd form command line through net_handle_fd_param(), > we need to check mon and return value of strtol() otherwise we could > get segmentation fault or invalid fd when user type an illegal fd/vhostfd. > > This patch

[Qemu-devel] Re: [V3 PATCH] net: properly handle illegal fd/vhostfd from command line

2010-10-25 Thread Michael S. Tsirkin
On Mon, Oct 25, 2010 at 10:52:05AM -0200, Luiz Capitulino wrote: > On Mon, 25 Oct 2010 13:39:59 +0800 > Jason Wang wrote: > > > When hanlding fd/vhostfd form command line through net_handle_fd_param(), > > we need to check mon and return value of strtol() otherwise we could > > get segmentation f

[Qemu-devel] Re: [V3 PATCH] net: properly handle illegal fd/vhostfd from command line

2010-10-25 Thread Luiz Capitulino
On Mon, 25 Oct 2010 13:39:59 +0800 Jason Wang wrote: > When hanlding fd/vhostfd form command line through net_handle_fd_param(), > we need to check mon and return value of strtol() otherwise we could > get segmentation fault or invalid fd when user type an illegal fd/vhostfd. > > This patch is b