Hi Suzuki,
On 2020-05-06 15:36, Suzuki K Poulose wrote:
Hi Sai On 05/05/2020 09:03 PM, Sai Prakash Ranjan wrote:
Hi,
Since adding "arm,coresight-loses-context-with-cpu" property, have been seeing warnings during boot on QCOM SC7180, one is the kasan use-after-free warning in etm4_cpu_pm_notify() and the other warning also in etm4_cpu_pm_notify().,
Thanks for the bug report. Does the following patch fix the issue ?
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index a90d757f7043..a6d6c7a3abcb 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -1527,6 +1527,7 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) return 0;
err_arch_supported:
- etmdrvdata[drvdata->cpu] = NULL; if (--etm4_count == 0) { etm4_cpu_pm_unregister();
Thanks for getting back so fast and for the patch. I don't see the warnings anymore.
Tested-by: Sai Prakash Ranjan saiprakash.ranjan@codeaurora.org
Thanks, Sai