Re: [PATCH 1/2] cdc-wdm: Fix more races on the read path

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

 



Am Sonntag, 12. Februar 2012, 07:00:41 schrieb Ben Hutchings:
> We must not allow the input buffer length to change while we're
> shuffling the buffer contents.  We also mustn't clear the WDM_READ
> flag after more data might have arrived.  Therefore move both of these
> into the spinlocked region at the bottom of wdm_read().
> 
> When reading desc->length without holding the iuspin lock, use
> ACCESS_ONCE() to ensure the compiler doesn't re-read it with
> inconsistent resu

Hi,

against which tree is this set of patches?

	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