Re: Consistently reproducible deadlock with simple io_uring program

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

 



On 8/15/20 7:38 PM, Drew DeVault wrote:
> On Sat Aug 15, 2020 at 10:37 PM EDT, Jens Axboe wrote:
>> This should be fixed by this one:
>>
>> https://git.kernel.dk/cgit/linux-block/commit/?h=io_uring-5.9&id=d4e7cd36a90e38e0276d6ce0c20f5ccef17ec38c
>>
>> which will go into 5.7/5.8 stable shortly. Affected files are the ones
>> that use double waitqueues at the same time for polling, which are
>> mostly just tty...
> 
> Thanks, I'll give this patch a try. I can trivially verify that it works
> correctly if stdin is not a TTY, I should have tried that myself. Do you
> know of any userspace workarounds for the problem that I could try on
> older kernels?

Not really any work-arounds, and on earlier 5.7 (and 5.6 and older) the
poll operation would have just failed with -EINVAL.

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