Re: [PATCH for-5.6] io_uring: fix use-after-free by io_cleanup_req()

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

 



On 19/02/2020 03:13, Jens Axboe wrote:
> On 2/18/20 2:19 PM, Pavel Begunkov wrote:
>> io_cleanup_req() should be called before req->io is freed, and so
>> shouldn't be after __io_free_req() -> __io_req_aux_free(). Also,
>> it will be ignored for in io_free_req_many(), which use
>> __io_req_aux_free().
>>
>> Place cleanup_req() into __io_req_aux_free().
> 
> I've applied this, but would be great if you could generate 5.x
> patches against io_uring-5.x. This one didn't apply, as it's
> done behind some of the 5.7 series you have.
> 

Thanks, I cherry-picked it by didn't regenerate the patch.
I'll double check the next time

-- 
Pavel Begunkov

Attachment: signature.asc
Description: OpenPGP digital signature


[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