Re: [PATCH net 1/1] net/smc: fix refcounting for non-blocking connect()

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

 



From: Ursula Braun <ubraun@xxxxxxxxxxxxx>
Date: Tue, 29 Oct 2019 12:41:26 +0100

> If a nonblocking socket is immediately closed after connect(),
> the connect worker may not have started. This results in a refcount
> problem, since sock_hold() is called from the connect worker.
> This patch moves the sock_hold in front of the connect worker
> scheduling.
> 
> Reported-by: syzbot+4c063e6dea39e4b79f29@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 50717a37db03 ("net/smc: nonblocking connect rework")
> Reviewed-by: Karsten Graul <kgraul@xxxxxxxxxxxxx>
> Signed-off-by: Ursula Braun <ubraun@xxxxxxxxxxxxx>

Applied and queued up for -stable, thank you.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux