e7771f5d84dd8b678e1ab0d76af106d4f73cf8e1
wago_rpmsg_remove() cleared priv->rpdev without holding send_lock. wago_send() checks priv->rpdev under send_lock, but a concurrent remove could null the pointer between the check and the subsequent rpmsg_trysend(priv->rpdev->ept, ...) dereference, causing a NULL pointer fault. Hold send_lock around the priv->rpdev = NULL assignment so that any in-flight wago_send() either sees a valid pointer for its entire critical section or sees NULL from the outset. Reported-by: Oleg Karfich <oleg.karfich@wago.com> Signed-off-by: Heinrich Toews <ht@twx-software.de>
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.6%
Assembly
1%
Shell
0.5%
Python
0.3%
Makefile
0.3%