Re: [PATCH v3 0/3] uio: fix potential crash bug

From: Xiubo Li
Date: Fri Jul 06 2018 - 08:04:55 EST


On 2018/7/6 11:31, Hamish Martin wrote:
Hi Xiubo,

Thanks for your patch that addresses the regression found with my
earlier commit.

I will take your code and run it in our scenario that showed the bug
that led to my commit. Unfortunately I won't be able to get that done
until mid-next week. I intend to report back to you by July 13th.
Hi Hamish,

Thanks verrrry much for your quickly review and reply about this. Take your time :-)

BRs
Xiubo


Thanks,
Hamish M

On 07/06/2018 02:57 PM, xiubli@xxxxxxxxxx wrote:
From: Xiubo Li <xiubli@xxxxxxxxxx>

The V2 patch set maybe not post successfully, so post it again
with one new updation.

V2:
- resend it with some small fix

V3:
- switch to use request_threaded_irq


Xiubo Li (3):
uio: use request_threaded_irq instead
uio: change to use the mutex lock instead of the spin lock
uio: fix crash after the device is unregistered

drivers/uio/uio.c | 151 ++++++++++++++++++++++++++++++++++-----------
include/linux/uio_driver.h | 2 +-
2 files changed, 115 insertions(+), 38 deletions(-)