Re: [PATCH] char-device: spice_char_device_write_to_device: protect against recursion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

----- Original Message -----
> This fixes Spice's smart card support and is related to
> commit 697f3214fd16adcd524456003619f7f44ddd031b.
> 
> Reported-by: Swapna Krishnan <skrishna@xxxxxxxxxx>
> 
> Recursion is now possible starting with spice_char_device_wakeup calling
>  spice_char_device_write_to_device that later (after going through qemu)
> calls spice_char_device_wakeup.
> 
> The protecting code is the same to the one in the read path.
> 
> This function call loop makes the program to abort with the following
> messages:
> 
>   usb-ccid: chardev: unexpected message of type 3000000
>   qemu: qemu_mutex_lock: Resource deadlock avoided
> ---
> 
> Should I attach the backtrace in the commit message ?

Yes, please.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]