Re: [PATCH] USB: core: Avoid race of async_completed() w/ usbdev_release()

2017-08-11 Thread Alan Stern
On Thu, 10 Aug 2017, Douglas Anderson wrote: > While running reboot tests w/ a specific set of USB devices (and > slub_debug enabled), I found that once every few hours my device would > be crashed with a stack that looked like this: > > [ 14.012445] BUG: spinlock bad magic on CPU#0,

[PATCH] USB: core: Avoid race of async_completed() w/ usbdev_release()

2017-08-10 Thread Douglas Anderson
While running reboot tests w/ a specific set of USB devices (and slub_debug enabled), I found that once every few hours my device would be crashed with a stack that looked like this: [ 14.012445] BUG: spinlock bad magic on CPU#0, modprobe/2091 [ 14.012460] lock: 0xffc0cb055978, .magic: