Revision 6cf11ee6300f38b7cfc43af9b7be2afaa5e05869 authored by Hans Verkuil on 19 January 2015, 09:16:18 UTC, committed by Mauro Carvalho Chehab on 21 January 2015, 23:07:26 UTC
The locking scheme inside the vb2 thread is unsafe when stopping the thread. In particular kthread_stop was called *after* internal data structures were cleaned up instead of doing that before. In addition, internal vb2 functions were called after threadio->stop was set to true and vb2_internal_streamoff was called. This is also not allowed. All this led to a variety of race conditions and kernel warnings and/or oopses. Fixed by moving the kthread_stop call up before the cleanup takes place, and by checking threadio->stop before calling internal vb2 queuing operations. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: <stable@vger.kernel.org> # for v3.16 and up Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 42d74e4
File | Mode | Size |
---|---|---|
testcase-data | ||
Kconfig | -rw-r--r-- | 1.4 KB |
Makefile | -rw-r--r-- | 742 bytes |
address.c | -rw-r--r-- | 24.5 KB |
base.c | -rw-r--r-- | 57.6 KB |
device.c | -rw-r--r-- | 4.6 KB |
dynamic.c | -rw-r--r-- | 15.9 KB |
fdt.c | -rw-r--r-- | 27.8 KB |
fdt_address.c | -rw-r--r-- | 6.2 KB |
irq.c | -rw-r--r-- | 15.8 KB |
of_mdio.c | -rw-r--r-- | 8.0 KB |
of_mtd.c | -rw-r--r-- | 2.8 KB |
of_net.c | -rw-r--r-- | 2.4 KB |
of_pci.c | -rw-r--r-- | 7.3 KB |
of_pci_irq.c | -rw-r--r-- | 3.5 KB |
of_private.h | -rw-r--r-- | 3.2 KB |
of_reserved_mem.c | -rw-r--r-- | 7.3 KB |
pdt.c | -rw-r--r-- | 5.9 KB |
platform.c | -rw-r--r-- | 15.5 KB |
resolver.c | -rw-r--r-- | 8.2 KB |
selftest.c | -rw-r--r-- | 28.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...