Re: [PATCH 5.13] io_uring: fix NULL reg-buffer

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

 



On 4/26/21 8:17 AM, Pavel Begunkov wrote:
> io_import_fixed() doesn't expect a registered buffer slot to be NULL and
> would fail stumbling on it. We don't allow it, but if during
> __io_sqe_buffers_update() rsrc removal succeeds but following register
> fails, we'll get such a situation.
> 
> Do it atomically and don't remove buffers until we sure that a new one
> can be set.

Applied, thanks.

-- 
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