[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164245960510.1698571.4998090450663669237.b4-ty@linaro.org>
Date: Mon, 17 Jan 2022 16:46:59 -0600
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: Matthias Kaehlcke <mka@...omium.org>,
Andy Gross <agross@...nel.org>,
Ohad Ben-Cohen <ohad@...ery.com>
Cc: Sujit Kautkar <sujitka@...omium.org>, linux-kernel@...r.kernel.org,
Stephen Boyd <swboyd@...omium.org>,
linux-remoteproc@...r.kernel.org,
Sibi Sankar <sibis@...eaurora.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>
Subject: Re: [PATCH v6 1/2] rpmsg: char: Fix race between the release of rpmsg_ctrldev and cdev
On Mon, 10 Jan 2022 10:47:36 -0800, Matthias Kaehlcke wrote:
> From: Sujit Kautkar <sujitka@...omium.org>
>
> struct rpmsg_ctrldev contains a struct cdev. The current code frees
> the rpmsg_ctrldev struct in rpmsg_ctrldev_release_device(), but the
> cdev is a managed object, therefore its release is not predictable
> and the rpmsg_ctrldev could be freed before the cdev is entirely
> released, as in the backtrace below.
>
> [...]
Applied, thanks!
[1/2] rpmsg: char: Fix race between the release of rpmsg_ctrldev and cdev
commit: b7fb2dad571d1e21173c06cef0bced77b323990a
[2/2] rpmsg: char: Fix race between the release of rpmsg_eptdev and cdev
commit: 7a534ae89e34e9b51acb5a63dd0f88308178b46a
Best regards,
--
Bjorn Andersson <bjorn.andersson@...aro.org>
Powered by blists - more mailing lists