Re: [PATCH] drivers/perf: Fix kernel panic when rmmod PMU modules during perf sampling

From: John Garry
Date: Thu Jul 16 2020 - 07:11:39 EST


On 16/07/2020 11:44, Will Deacon wrote:
Please also note what Qi Liu wrote about being able to unbind the driver and
cause the same issue. I don't know if you can about that issue also.
I guess we have to throw in some '.suppress_bind_attrs = true,' lines as
well, then?

Yeah, I think it would be a follow up using suppress_bind_attrs. TBH, I don't know why this is an opt out feature, than an opt in. Probably a good reason...

I'll queue this as-is, but happy to take a follow-up if somebody
can test it.


Thanks,
john