Enabling of bearer rejected, already enabled Enabling of bearer rejected, already enabled Enabling of bearer rejected, already enabled ------------[ cut here ]------------ ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! downgrading a read lock WARNING: CPU: 0 PID: 7916 at kernel/locking/lockdep.c:3553 __lock_downgrade kernel/locking/lockdep.c:3553 [inline] WARNING: CPU: 0 PID: 7916 at kernel/locking/lockdep.c:3553 lock_downgrade+0x478/0x810 kernel/locking/lockdep.c:3816 invalid opcode: 0000 [#1] PREEMPT SMP KASAN Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7744 Comm: kworker/1:3 Not tainted 5.0.0+ #97 ====================================================== WARNING: possible circular locking dependency detected 5.0.0+ #97 Not tainted ------------------------------------------------------ kworker/1:3/7744 is trying to acquire lock: 00000000c8f08a74 (console_owner){-.-.}, at: log_next kernel/printk/printk.c:492 [inline] 00000000c8f08a74 (console_owner){-.-.}, at: console_unlock+0x440/0x10a0 kernel/printk/printk.c:2395 but task is already holding lock: 00000000a26edda6 (&(&parent->list_lock)->rlock){-.-.}, at: spin_lock_irq include/linux/spinlock.h:354 [inline] 00000000a26edda6 (&(&parent->list_lock)->rlock){-.-.}, at: drain_array+0x7a/0xb0 mm/slab.c:4015 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&(&parent->list_lock)->rlock){-.-.}: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] cache_grow_end+0x4d/0x190 mm/slab.c:2728 cache_alloc_refill mm/slab.c:3049 [inline] ____cache_alloc mm/slab.c:3123 [inline] ____cache_alloc mm/slab.c:3106 [inline] __do_cache_alloc mm/slab.c:3345 [inline] slab_alloc mm/slab.c:3380 [inline] __do_kmalloc mm/slab.c:3714 [inline] __kmalloc+0x6ff/0x740 mm/slab.c:3725 kmalloc include/linux/slab.h:550 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:175 [inline] __tty_buffer_request_room+0x1fb/0x5c0 drivers/tty/tty_buffer.c:273 tty_insert_flip_string_fixed_flag+0x93/0x1f0 drivers/tty/tty_buffer.c:318 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x133/0x200 drivers/tty/pty.c:122 n_tty_write+0xb06/0x1150 drivers/tty/n_tty.c:2354 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x45b/0x7a0 drivers/tty/tty_io.c:1043 __vfs_write+0x116/0x8e0 fs/read_write.c:485 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #2 (&(&port->lock)->rlock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 tty_port_tty_get+0x22/0x80 drivers/tty/tty_port.c:287 tty_port_default_wakeup+0x16/0x40 drivers/tty/tty_port.c:47 tty_port_tty_wakeup+0x5d/0x70 drivers/tty/tty_port.c:387 uart_write_wakeup+0x46/0x70 drivers/tty/serial/serial_core.c:103 serial8250_tx_chars+0x4a4/0xb20 drivers/tty/serial/8250/8250_port.c:1806 serial8250_handle_irq.part.0+0x1be/0x2e0 drivers/tty/serial/8250/8250_port.c:1879 serial8250_handle_irq drivers/tty/serial/8250/8250_port.c:1865 [inline] serial8250_default_handle_irq+0xc5/0x150 drivers/tty/serial/8250/8250_port.c:1895 serial8250_interrupt+0xfb/0x1a0 drivers/tty/serial/8250/8250_core.c:125 __handle_irq_event_percpu+0x146/0x900 kernel/irq/handle.c:149 handle_irq_event_percpu+0x74/0x160 kernel/irq/handle.c:189 handle_irq_event+0xa7/0x134 kernel/irq/handle.c:206 handle_edge_irq+0x232/0x8a0 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:154 [inline] handle_irq+0x252/0x3d8 arch/x86/kernel/irq_64.c:78 do_IRQ+0x99/0x1d0 arch/x86/kernel/irq.c:246 ret_from_intr+0x0/0x1e arch_local_irq_restore arch/x86/include/asm/paravirt.h:766 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x95/0xe0 kernel/locking/spinlock.c:184 spin_unlock_irqrestore include/linux/spinlock.h:384 [inline] uart_write+0x3a9/0x6f0 drivers/tty/serial/serial_core.c:615 process_output_block drivers/tty/n_tty.c:593 [inline] n_tty_write+0x3ff/0x1150 drivers/tty/n_tty.c:2331 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x45b/0x7a0 drivers/tty/tty_io.c:1043 redirected_tty_write+0xb2/0xc0 drivers/tty/tty_io.c:1064 __vfs_write+0x116/0x8e0 fs/read_write.c:485 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (&port_lock_key){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 serial8250_console_write+0x253/0x9c0 drivers/tty/serial/8250/8250_port.c:3245 univ8250_console_write+0x5f/0x70 drivers/tty/serial/8250/8250_core.c:586 call_console_drivers kernel/printk/printk.c:1737 [inline] console_unlock+0xbc6/0x10a0 kernel/printk/printk.c:2408 vprintk_emit+0x280/0x6d0 kernel/printk/printk.c:1931 vprintk_default+0x28/0x30 kernel/printk/printk.c:1958 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:1991 register_console+0x74d/0xb50 kernel/printk/printk.c:2723 univ8250_console_init+0x3e/0x4b drivers/tty/serial/8250/8250_core.c:681 console_init+0x4f7/0x761 kernel/printk/printk.c:2809 start_kernel+0x568/0x83c init/main.c:667 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:470 x86_64_start_kernel+0x77/0x7b arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #0 (console_owner){-.-.}: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3841 console_lock_spinning_enable kernel/printk/printk.c:1600 [inline] console_unlock+0x4aa/0x10a0 kernel/printk/printk.c:2405 vprintk_emit+0x280/0x6d0 kernel/printk/printk.c:1931 vprintk_default+0x28/0x30 kernel/printk/printk.c:1958 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:1991 report_bug.cold+0x11/0x5d lib/bug.c:191 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:290 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973 __phys_addr+0xb3/0x120 arch/x86/mm/physaddr.c:27 virt_to_head_page include/linux/mm.h:685 [inline] free_block+0xa8/0x250 mm/slab.c:3411 drain_array_locked+0x36/0x90 mm/slab.c:2197 drain_array+0x8c/0xb0 mm/slab.c:4016 cache_reap+0xf4/0x280 mm/slab.c:4057 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 other info that might help us debug this: Chain exists of: console_owner --> &(&port->lock)->rlock --> &(&parent->list_lock)->rlock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&(&parent->list_lock)->rlock); lock(&(&port->lock)->rlock); lock(&(&parent->list_lock)->rlock); lock(console_owner); *** DEADLOCK *** 5 locks held by kworker/1:3/7744: #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline] #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000008dd4bce5 ((wq_completion)"events"){+.+.}, at: process_one_work+0x87e/0x1790 kernel/workqueue.c:2144 #1: 000000005096ef7d ((work_completion)(&(reap_work)->work)){+.+.}, at: process_one_work+0x8b4/0x1790 kernel/workqueue.c:2148 #2: 0000000007283326 (slab_mutex){+.+.}, at: cache_reap+0x38/0x280 mm/slab.c:4041 #3: 00000000a26edda6 (&(&parent->list_lock)->rlock){-.-.}, at: spin_lock_irq include/linux/spinlock.h:354 [inline] #3: 00000000a26edda6 (&(&parent->list_lock)->rlock){-.-.}, at: drain_array+0x7a/0xb0 mm/slab.c:4015 #4: 000000007bb0fde4 (console_lock){+.+.}, at: console_trylock_spinning kernel/printk/printk.c:1662 [inline] #4: 000000007bb0fde4 (console_lock){+.+.}, at: vprintk_emit+0x267/0x6d0 kernel/printk/printk.c:1930 stack backtrace: CPU: 1 PID: 7744 Comm: kworker/1:3 Not tainted 5.0.0+ #97 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events cache_reap Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_circular_bug.isra.0.cold+0x1cc/0x28f kernel/locking/lockdep.c:1224 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2350 [inline] __lock_acquire+0x2f00/0x4700 kernel/locking/lockdep.c:3338 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3841 console_lock_spinning_enable kernel/printk/printk.c:1600 [inline] console_unlock+0x4aa/0x10a0 kernel/printk/printk.c:2405 vprintk_emit+0x280/0x6d0 kernel/printk/printk.c:1931 vprintk_default+0x28/0x30 kernel/printk/printk.c:1958 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:1991 report_bug.cold+0x11/0x5d lib/bug.c:191 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:290 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973 RIP: 0010:__phys_addr+0xb3/0x120 arch/x86/mm/physaddr.c:27 Code: 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 76 1e 3d 00 48 85 db 75 0f e8 cc 1c 3d 00 4c 89 e0 5b 41 5c 41 5d 5d c3 e8 bd 1c 3d 00 <0f> 0b e8 b6 1c 3d 00 48 c7 c0 10 90 87 88 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8880a0c97bd8 EFLAGS: 00010093 RAX: ffff888095168400 RBX: 0000000000000000 RCX: ffffffff81329952 RDX: 0000000000000000 RSI: ffffffff813299b3 RDI: 0000000000000006 RBP: ffff8880a0c97bf0 R08: ffff888095168400 R09: ffffed1014192f80 R10: ffffed1014192f7f R11: 0000000000000003 R12: 0000778000000000 R13: 0000000080000000 R14: ffff8880a0fa7600 R15: ffff8880a0fa7600 virt_to_head_page include/linux/mm.h:685 [inline] free_block+0xa8/0x250 mm/slab.c:3411 drain_array_locked+0x36/0x90 mm/slab.c:2197 drain_array+0x8c/0xb0 mm/slab.c:4016 cache_reap+0xf4/0x280 mm/slab.c:4057 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events cache_reap RIP: 0010:__phys_addr+0xb3/0x120 arch/x86/mm/physaddr.c:27 Code: 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 76 1e 3d 00 48 85 db 75 0f e8 cc 1c 3d 00 4c 89 e0 5b 41 5c 41 5d 5d c3 e8 bd 1c 3d 00 <0f> 0b e8 b6 1c 3d 00 48 c7 c0 10 90 87 88 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8880a0c97bd8 EFLAGS: 00010093 RAX: ffff888095168400 RBX: 0000000000000000 RCX: ffffffff81329952 RDX: 0000000000000000 RSI: ffffffff813299b3 RDI: 0000000000000006 RBP: ffff8880a0c97bf0 R08: ffff888095168400 R09: ffffed1014192f80 R10: ffffed1014192f7f R11: 0000000000000003 R12: 0000778000000000 R13: 0000000080000000 R14: ffff8880a0fa7600 R15: ffff8880a0fa7600 FS: 0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000070b088 CR3: 000000009390a000 CR4: 00000000001406e0 Call Trace: virt_to_head_page include/linux/mm.h:685 [inline] free_block+0xa8/0x250 mm/slab.c:3411 drain_array_locked+0x36/0x90 mm/slab.c:2197 drain_array+0x8c/0xb0 mm/slab.c:4016 cache_reap+0xf4/0x280 mm/slab.c:4057 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Modules linked in: ---[ end trace c26b0a8a7b973430 ]--- RIP: 0010:__phys_addr+0xb3/0x120 arch/x86/mm/physaddr.c:27 Code: 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 76 1e 3d 00 48 85 db 75 0f e8 cc 1c 3d 00 4c 89 e0 5b 41 5c 41 5d 5d c3 e8 bd 1c 3d 00 <0f> 0b e8 b6 1c 3d 00 48 c7 c0 10 90 87 88 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8880a0c97bd8 EFLAGS: 00010093 RAX: ffff888095168400 RBX: 0000000000000000 RCX: ffffffff81329952 RDX: 0000000000000000 RSI: ffffffff813299b3 RDI: 0000000000000006 RBP: ffff8880a0c97bf0 R08: ffff888095168400 R09: ffffed1014192f80 R10: ffffed1014192f7f R11: 0000000000000003 R12: 0000778000000000 R13: 0000000080000000 R14: ffff8880a0fa7600 R15: ffff8880a0fa7600 FS: 0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000070b088 CR3: 000000009390a000 CR4: 00000000001406e0 Shutting down cpus with NMI Kernel Offset: disabled Rebooting in 86400 seconds..