Re: [PATCH] io_uring: fix mm use with IORING_OP_{READ,WRITE}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/5/20 8:46 AM, Pavel Begunkov wrote:
> IORING_OP_{READ,WRITE} need mm to access user buffers, hence
> req->has_user check should go for them as well. Move the corresponding
> imports past the check.

I'd need to double check, but I think the has_user check should just go.
The import checks for access anyway, so we'll -EFAULT there if we
somehow messed up and didn't acquire the right mm.

-- 
Jens Axboe




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux