From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223AbdK1KBU (ORCPT ); Tue, 28 Nov 2017 05:01:20 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:46427 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbdK1KBR (ORCPT ); Tue, 28 Nov 2017 05:01:17 -0500 X-Google-Smtp-Source: AGs4zMY6sqXkwQ+DHF99+nRhIQDxmF8ix5+MeX8I/VnXCDFkoRMMD4eTH8qTT0J+D1/7iTlK/G4hLo/SEtu/4tAiO0A= MIME-Version: 1.0 In-Reply-To: <1511544841.14300.4.camel@primarydata.com> References: <1511544841.14300.4.camel@primarydata.com> From: Dmitry Vyukov Date: Tue, 28 Nov 2017 11:00:56 +0100 Message-ID: Subject: Re: sunrpc: infinite unkillable console spam in xs_tcp_setup_socket To: Trond Myklebust Cc: "linux-kernel@vger.kernel.org" , "jlayton@kernel.org" , "bfields@fieldses.org" , "linux-nfs@vger.kernel.org" , "anna.schumaker@netapp.com" , "netdev@vger.kernel.org" , "davem@davemloft.net" , "syzkaller@googlegroups.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 24, 2017 at 6:34 PM, Trond Myklebust wrote: > On Mon, 2017-11-20 at 14:02 +0100, Dmitry Vyukov wrote: >> Hello, >> >> The following program triggers infinite stream of the following >> output >> on console. The program is unkillable and this effectively brings the >> machine down: >> >> >> ** 16 printk messages dropped ** [12875.022917] xs_tcp_setup_socket: >> connect returned unhandled error -113 >> > > Does the following fix the issue? Re-run the provided reproducer with the patch. I don't see any kernel output and the process is perfectly killable now. Tested-by: Dmitry Vyukov > 8<----------------------------------------------------- > From f48d3f01df45f50f0145060f5272ccf1aea855ac Mon Sep 17 00:00:00 2001 > From: Trond Myklebust > Date: Fri, 24 Nov 2017 12:00:24 -0500 > Subject: [PATCH] SUNRPC: Allow connect to return EHOSTUNREACH > > Reported-by: Dmitry Vyukov > Signed-off-by: Trond Myklebust > --- > net/sunrpc/xprtsock.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c > index 4dad5da388d6..8cb40f8ffa5b 100644 > --- a/net/sunrpc/xprtsock.c > +++ b/net/sunrpc/xprtsock.c > @@ -2437,6 +2437,7 @@ static void xs_tcp_setup_socket(struct work_struct *work) > case -ECONNREFUSED: > case -ECONNRESET: > case -ENETUNREACH: > + case -EHOSTUNREACH: > case -EADDRINUSE: > case -ENOBUFS: > /* > -- > 2.14.3 > > -- > Trond Myklebust > Linux NFS client maintainer, PrimaryData > trond.myklebust@primarydata.com