From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Jones Subject: netconsole: sleeping function called from invalid context Date: Thu, 8 Dec 2016 12:36:08 -0500 Message-ID: <20161208173608.fkuwobvph64ilmpd@codemonkey.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: netdev@vger.kernel.org Return-path: Received: from arcturus.aphlor.org ([188.246.204.175]:57466 "EHLO arcturus.aphlor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932164AbcLHRgL (ORCPT ); Thu, 8 Dec 2016 12:36:11 -0500 Received: from c-65-96-119-39.hsd1.ma.comcast.net ([65.96.119.39] helo=wopr.kernelslacker.org) by arcturus.aphlor.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1cF2c5-0007cb-QW for netdev@vger.kernel.org; Thu, 08 Dec 2016 17:36:09 +0000 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: I think this has been around for a while, but for some reason I'm running into it a lot today. BUG: sleeping function called from invalid context at kernel/irq/manage.c:110 in_atomic(): 1, irqs_disabled(): 1, pid: 1839, name: modprobe no locks held by modprobe/1839. Preemption disabled at: [] write_ext_msg+0x73/0x2d0 CPU: 0 PID: 1839 Comm: modprobe Not tainted 4.9.0-rc8-think+ #5 ffff880442287300 ffffffff81651e19 0000000080000001 0000000000000000 ffff88044221d380 000000000000006e ffff880442287338 ffffffff811117c3 ffff88044221d388 ffffffff8207b940 000000000000006e 0000000000000000 Call Trace: [] dump_stack+0x6c/0x93 [] ___might_sleep+0x193/0x210 [] __might_sleep+0x71/0xe0 [] ? __synchronize_hardirq+0x94/0xa0 [] synchronize_irq+0xa8/0x170 [] ? set_irq_wake_real+0x90/0x90 [] ? synchronize_irq+0x5/0x170 [] ? disable_irq+0x5/0x30 [] disable_irq+0x28/0x30 [] e1000_netpoll+0x1c4/0x200 [] ? e1000_intr_msix_tx+0x190/0x190 [] netpoll_poll_dev+0xa0/0x3b0 [] ? preempt_count_sub+0x18/0xd0 [] netpoll_send_skb_on_dev+0x20d/0x3d0 [] netpoll_send_udp+0x535/0x8c0 [] write_ext_msg+0x286/0x2d0 [] ? check_preemption_disabled+0x3b/0x160 [] call_console_drivers.isra.20.constprop.26+0x165/0x310 [] console_unlock+0x3b6/0x840 [] vprintk_emit+0x4b5/0x6e0 [] vprintk_default+0x48/0x80 [] printk+0xbc/0xe7 [] ? printk_lock.constprop.1+0x102/0x102 [] ? printk+0x5/0xe7 [] ? bt_init+0x1/0xfa [bluetooth] [] bt_info+0xdd/0x110 [bluetooth] [] ? bt_to_errno+0x50/0x50 [bluetooth] [] ? bt_info+0x5/0x110 [bluetooth] [] sco_init+0xb0/0xc40 [bluetooth] [] ? 0xffffffffa0990000 [] bt_init+0x9d/0xfa [bluetooth] [] do_one_initcall+0x199/0x220 [] ? initcall_blacklisted+0x170/0x170 [] ? do_init_module+0xe3/0x2fd [] ? 0xffffffffa0990000 [] ? do_one_initcall+0x5/0x220 [] ? __asan_register_globals+0x7c/0xa0 [] do_init_module+0xf4/0x2fd [] load_module+0x3a79/0x4670 [] ? disable_ro_nx+0x80/0x80 [] ? module_frob_arch_sections+0x20/0x20 [] ? __buffer_unlock_commit+0x4a/0x90 [] ? trace_function+0x9c/0xc0 [] ? function_trace_call+0xea/0x290 [] ? SYSC_finit_module+0x181/0x1c0 [] ? module_frob_arch_sections+0x20/0x20 [] ? get_user_arg_ptr.isra.26+0xa0/0xa0 [] ? load_module+0x5/0x4670 [] SYSC_finit_module+0x181/0x1c0 [] ? SYSC_init_module+0x220/0x220 [] ? function_trace_call+0xea/0x290 [] ? SyS_init_module+0x10/0x10 [] ? SyS_init_module+0x10/0x10 [] ? SyS_finit_module+0x5/0x10 [] ? __this_cpu_preempt_check+0x1c/0x20 [] ? SyS_init_module+0x10/0x10 [] SyS_finit_module+0xe/0x10 [] do_syscall_64+0x100/0x2b0 [] entry_SYSCALL64_slow_path+0x25/0x25