netlink: 65377 bytes leftover after parsing attributes in process `syz-executor.1'. ============================================ WARNING: possible recursive locking detected 4.19.101-syzkaller #0 Not tainted -------------------------------------------- udevd/12583 is trying to acquire lock: 000000001fae0281 (&port_lock_key){-.-.}, at: uart_write+0x1da/0x6e0 drivers/tty/serial/serial_core.c:591 but task is already holding lock: 000000001fae0281 (&port_lock_key){-.-.}, at: serial8250_handle_irq.part.0+0x24/0x2b0 drivers/tty/serial/8250/8250_port.c:1868 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&port_lock_key); lock(&port_lock_key); *** DEADLOCK *** May be due to missing lock nesting notation 7 locks held by udevd/12583: #0: 00000000490a64bf (&dup_mmap_sem){++++}, at: dup_mmap kernel/fork.c:435 [inline] #0: 00000000490a64bf (&dup_mmap_sem){++++}, at: dup_mm kernel/fork.c:1288 [inline] #0: 00000000490a64bf (&dup_mmap_sem){++++}, at: copy_mm kernel/fork.c:1344 [inline] #0: 00000000490a64bf (&dup_mmap_sem){++++}, at: copy_process.part.0+0x2b90/0x7a60 kernel/fork.c:1897 #1: 00000000f4bee2ca (&mm->mmap_sem){++++}, at: dup_mmap kernel/fork.c:436 [inline] #1: 00000000f4bee2ca (&mm->mmap_sem){++++}, at: dup_mm kernel/fork.c:1288 [inline] #1: 00000000f4bee2ca (&mm->mmap_sem){++++}, at: copy_mm kernel/fork.c:1344 [inline] #1: 00000000f4bee2ca (&mm->mmap_sem){++++}, at: copy_process.part.0+0x2bac/0x7a60 kernel/fork.c:1897 #2: 0000000048265e60 (&mm->mmap_sem/1){+.+.}, at: dup_mmap kernel/fork.c:445 [inline] #2: 0000000048265e60 (&mm->mmap_sem/1){+.+.}, at: dup_mm kernel/fork.c:1288 [inline] #2: 0000000048265e60 (&mm->mmap_sem/1){+.+.}, at: copy_mm kernel/fork.c:1344 [inline] #2: 0000000048265e60 (&mm->mmap_sem/1){+.+.}, at: copy_process.part.0+0x2bf9/0x7a60 kernel/fork.c:1897 #3: 000000001854bba0 (&anon_vma->rwsem){++++}, at: lock_anon_vma_root mm/rmap.c:238 [inline] #3: 000000001854bba0 (&anon_vma->rwsem){++++}, at: anon_vma_clone+0x143/0x480 mm/rmap.c:278 #4: 0000000061c87ba3 (&(&i->lock)->rlock){-.-.}, at: spin_lock include/linux/spinlock.h:329 [inline] #4: 0000000061c87ba3 (&(&i->lock)->rlock){-.-.}, at: serial8250_interrupt+0x30/0x1e0 drivers/tty/serial/8250/8250_core.c:115 #5: 000000001fae0281 (&port_lock_key){-.-.}, at: serial8250_handle_irq.part.0+0x24/0x2b0 drivers/tty/serial/8250/8250_port.c:1868 #6: 00000000bd0059c2 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x22/0x90 drivers/tty/tty_ldisc.c:293 stack backtrace: CPU: 0 PID: 12583 Comm: udevd Not tainted 4.19.101-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:1759 [inline] check_deadlock kernel/locking/lockdep.c:1803 [inline] validate_chain kernel/locking/lockdep.c:2399 [inline] __lock_acquire.cold+0x20f/0x4a7 kernel/locking/lockdep.c:3411 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 uart_write+0x1da/0x6e0 drivers/tty/serial/serial_core.c:591 n_hdlc_send_frames+0x271/0x450 drivers/tty/n_hdlc.c:403 n_hdlc_tty_wakeup+0xae/0xd0 drivers/tty/n_hdlc.c:479 tty_wakeup+0xdc/0x110 drivers/tty/tty_io.c:534 tty_port_default_wakeup+0x2b/0x40 drivers/tty/tty_port.c:50 tty_port_tty_wakeup+0x57/0x70 drivers/tty/tty_port.c:390 uart_write_wakeup+0x46/0x70 drivers/tty/serial/serial_core.c:103 serial8250_tx_chars+0x495/0xaf0 drivers/tty/serial/8250/8250_port.c:1806 serial8250_handle_irq.part.0+0x261/0x2b0 drivers/tty/serial/8250/8250_port.c:1879 serial8250_handle_irq drivers/tty/serial/8250/8250_port.c:1865 [inline] serial8250_default_handle_irq+0xc0/0x150 drivers/tty/serial/8250/8250_port.c:1895 serial8250_interrupt+0xfc/0x1e0 drivers/tty/serial/8250/8250_core.c:125 __handle_irq_event_percpu+0x144/0x8f0 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+0x25e/0x8d0 kernel/irq/chip.c:797 generic_handle_irq_desc include/linux/irqdesc.h:155 [inline] handle_irq+0x39/0x50 arch/x86/kernel/irq_64.c:87 do_IRQ+0x99/0x1d0 arch/x86/kernel/irq.c:246 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:670 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x54/0x90 kernel/locking/spinlock.c:192 Code: c0 58 57 f2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 33 48 83 3d 6d 5f 9d 01 00 74 20 fb 66 0f 1f 44 00 00 01 00 00 00 e8 22 d7 f3 f9 65 8b 05 cb f5 ac 78 85 c0 74 06 41 RSP: 0018:ffff888044f1f808 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd5 RAX: 1ffffffff11e4aeb RBX: ffff8880a8b5c280 RCX: 1ffff1101516b973 RDX: dffffc0000000000 RSI: ffff8880a8b5cb78 RDI: ffff8880a8b5cafc RBP: ffff888044f1f810 R08: ffff8880a8b5c280 R09: ffff8880a8b5cb98 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae82c240 R13: ffff8880a790e240 R14: 0000000000000000 R15: 0000000000000002 finish_lock_switch kernel/sched/core.c:2576 [inline] finish_task_switch+0x146/0x7c0 kernel/sched/core.c:2676 context_switch kernel/sched/core.c:2829 [inline] __schedule+0x86e/0x1dc0 kernel/sched/core.c:3515 preempt_schedule_irq+0xb5/0x140 kernel/sched/core.c:3742 retint_kernel+0x1b/0x2d RIP: 0010:avc_start_pgoff mm/interval_tree.c:64 [inline] RIP: 0010:__anon_vma_interval_tree_insert mm/interval_tree.c:72 [inline] RIP: 0010:anon_vma_interval_tree_insert+0x20a/0x410 mm/interval_tree.c:83 Code: 3c 30 00 0f 85 73 01 00 00 48 be 00 00 00 00 00 fc ff df 4d 8b 74 24 e0 49 8d be 98 00 00 00 48 89 f8 48 c1 e8 03 80 3c 30 00 <0f> 85 42 01 00 00 4d 8b b6 98 00 00 00 48 8b 7d d0 4c 89 f6 e8 fd RSP: 0018:ffff888044f1fa38 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 1ffff11013c78e3c RBX: ffff8880955a3af0 RCX: ffffffff81935315 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88809e3c71e0 RBP: ffff888044f1fa70 R08: ffff8880a8b5c280 R09: ffffed1015d04733 R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffff8880a897e5d0 R13: ffff888098cb2608 R14: ffff88809e3c7148 R15: 0000000000000017 anon_vma_chain_link+0x154/0x1c0 mm/rmap.c:144 anon_vma_clone+0x15b/0x480 mm/rmap.c:279 anon_vma_fork+0x8f/0x4a0 mm/rmap.c:332 dup_mmap kernel/fork.c:504 [inline] dup_mm kernel/fork.c:1288 [inline] copy_mm kernel/fork.c:1344 [inline] copy_process.part.0+0x3509/0x7a60 kernel/fork.c:1897 copy_process kernel/fork.c:1694 [inline] _do_fork+0x257/0xfd0 kernel/fork.c:2207 __do_sys_clone kernel/fork.c:2314 [inline] __se_sys_clone kernel/fork.c:2308 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2308 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f18e9aedf46 Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 14 25 10 00 00 00 31 d2 49 81 c2 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 31 01 00 00 85 c0 41 89 c4 0f 85 3b 01 00 RSP: 002b:00007ffe95d5ce40 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffe95d5ce40 RCX: 00007f18e9aedf46 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffe95d5cea0 R08: 0000000000003127 R09: 0000000000003127 R10: 00007f18ea40aa70 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe95d5ce60 R14: 0000000000000005 R15: 0000000000000005