From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-he1eur01on0100.outbound.protection.outlook.com ([104.47.0.100]:44672 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751429AbeBSOmC (ORCPT ); Mon, 19 Feb 2018 09:42:02 -0500 Subject: Re: BUG: sleeping function called from invalid context at net/core/sock.c:LINE (3) To: Jon Maloy , Dmitry Vyukov , syzbot , Ying Xue Cc: Andrei Vagin , David Miller , "Eric W. Biederman" , Florian Westphal , LKML , netdev , Nicolas Dichtel , "roman.kapl@sysgo.com" , "syzkaller-bugs@googlegroups.com" , "tipc-discussion@lists.sourceforge.net" References: <001a1143e44e58485f05655fa8ae@google.com> From: Kirill Tkhai Message-ID: Date: Mon, 19 Feb 2018 17:41:54 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On 19.02.2018 16:23, Jon Maloy wrote: > I don't understand this one. tipc_topsrv_stop() can only be trigged from a user doing rmmod(), and I double checked that this is running in user mode. > How does the call chain you are reporting occur? > In case of CONFIG_NET_NS=y, pernet_operations::exit() is called after last reference to a net is dropped. So, this may happen not only on module unload path. Kirill > > >> -----Original Message----- >> From: Kirill Tkhai [mailto:ktkhai@virtuozzo.com] >> Sent: Saturday, February 17, 2018 23:23 >> To: Dmitry Vyukov ; syzbot >> ; Jon Maloy >> ; Ying Xue >> Cc: Andrei Vagin ; David Miller >> ; Eric W. Biederman ; >> Florian Westphal ; LKML ; >> netdev ; Nicolas Dichtel >> ; roman.kapl@sysgo.com; syzkaller- >> bugs@googlegroups.com; tipc-discussion@lists.sourceforge.net >> Subject: Re: BUG: sleeping function called from invalid context at >> net/core/sock.c:LINE (3) >> >> On 17.02.2018 11:15, Dmitry Vyukov wrote: >>> On Sat, Feb 17, 2018 at 4:00 AM, syzbot >>> wrote: >>>> Hello, >>>> >>>> syzbot hit the following crash on net-next commit >>>> 65bd449c32c2745df61913ab54087e77f9d9b70d (Fri Feb 16 20:26:35 2018 >>>> +0000) Merge branch 'tipc-de-generealize-topology-server' >>> >>> +tipc maintainers >> >> This looks to be caused by commit 0ef897be12b8 >> "tipc: separate topology server listener socket from subcsriber sockets" >> >> Thanks, >> Kirill