From: Eric Dumazet <[email protected]>
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 <[email protected]>
> Cc: Ursula Braun <[email protected]>
> Cc: [email protected]
> Reported-by: syzbot <[email protected]>
Applied, thanks Eric.