From: Eric Dumazet <edumazet@xxxxxxxxxx> 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 <edumazet@xxxxxxxxxx> > Cc: Ursula Braun <ubraun@xxxxxxxxxxxxx> > Cc: linux-s390@xxxxxxxxxxxxxxx > Reported-by: syzbot <syzkaller@xxxxxxxxxxxxxxxx> Applied, thanks Eric. -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html