Re: [PATCH] usb: cdc-wdm: Fix "scheduling while atomic" after failed write

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

 



Am Donnerstag, 26. April 2012, 14:20:02 schrieb Bjørn Mork:
> This is a partial revert of
> 
>   commit 860e41a71 usb: cdc-wdm: Fix race between write and disconnect
> 
> which caused lockups and assorted "general protection fault" and
> "scheduling while atomic" messages when concurrent nonblocking
> writes failed and were followed by an immediate disconnect.  The
> problem was discovered while developing userspace software for this
> driver. This gave us a reliable way to reproduce the bug.
> 

We'd better find the cause. The very first possibility is that we have
a use after free. Please add debug printks to wdm_disconnect()
and wdm_write() which printk desc->count. And could you provide an
oops?

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux