From: Eric Dumazet <eduma...@google.com>
Date: Thu, 17 May 2018 03:54:21 -0700

> syzkaller found that following program crashes the host :
> 
> {
>   int fd = socket(AF_SMC, SOCK_STREAM, 0);
>   int val = 1;
> 
>   listen(fd, 0);
>   shutdown(fd, SHUT_RDWR);
>   setsockopt(fd, 6, TCP_NODELAY, &val, 4);
> }
> 
> Simply initialize conn.tx_work & conn.send_lock at socket creation,
> rather than deeper in the stack.
 ...
> Fixes: 01d2f7e2cdd3 ("net/smc: sockopts TCP_NODELAY and TCP_CORK")
> Signed-off-by: Eric Dumazet <eduma...@google.com>
> Cc: Ursula Braun <ubr...@linux.ibm.com>
> Cc: linux-s...@vger.kernel.org
> Reported-by: syzbot <syzkal...@googlegroups.com>

Applied, thanks Eric.

Reply via email to