spi: race in spi_finalize_current_message starting queue_kthread_work before the message is unmapped

Mark Brown broonie at kernel.org
Fri May 8 15:13:09 PDT 2015


On Fri, May 08, 2015 at 10:02:44PM +0200, Martin Sperl wrote:

> Based on the findings by Noralf, the following solves the issue:

Can you please post this upstream as a proper submission so I can review
and apply it (I'm not going to look at it properly right now, it's just
gone 11pm, but at first glance it doesn't ring any alarm bells)?

> Note that I am not sure about the locking, so I left unmap outside the
> lock for now.

It needs to be, you can't do anything big like unmapping in a
non-sleeping context.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20150508/3065dbf2/attachment.sig>


More information about the linux-rpi-kernel mailing list