================================ WARNING: inconsistent lock state 4.19.103-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.0/14593 [HC0[0]:SC1[1]:HE1:SE0] takes: 00000000bf4163e9 (rxrpc_conn_id_lock){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 00000000bf4163e9 (rxrpc_conn_id_lock){+.?.}, at: rxrpc_put_client_connection_id.part.0+0x19/0x70 net/rxrpc/conn_client.c:143 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __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] rxrpc_get_client_connection_id net/rxrpc/conn_client.c:114 [inline] rxrpc_alloc_client_connection net/rxrpc/conn_client.c:198 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:345 [inline] rxrpc_connect_call+0x948/0x4920 net/rxrpc/conn_client.c:702 rxrpc_new_client_call+0x8e7/0x1880 net/rxrpc/call_object.c:291 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:596 [inline] rxrpc_do_sendmsg+0xfc3/0x1ca3 net/rxrpc/sendmsg.c:652 rxrpc_sendmsg+0x4a0/0x5b0 net/rxrpc/af_rxrpc.c:593 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x1bf/0x4e0 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2236 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 3378 hardirqs last enabled at (3378): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (3378): [] _raw_spin_unlock_irqrestore+0x6b/0xe0 kernel/locking/spinlock.c:184 hardirqs last disabled at (3377): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (3377): [] _raw_spin_lock_irqsave+0x6f/0xcd kernel/locking/spinlock.c:152 softirqs last enabled at (1848): [] __do_softirq+0x633/0x921 kernel/softirq.c:318 softirqs last disabled at (3289): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (3289): [] irq_exit+0x180/0x1d0 kernel/softirq.c:412 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rxrpc_conn_id_lock); lock(rxrpc_conn_id_lock); *** DEADLOCK *** 3 locks held by syz-executor.0/14593: #0: 0000000001e3202b (&(ptlock_ptr(page))->rlock#2){+.+.}, at: spin_lock include/linux/spinlock.h:329 [inline] #0: 0000000001e3202b (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pte_range mm/memory.c:1299 [inline] #0: 0000000001e3202b (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pmd_range mm/memory.c:1440 [inline] #0: 0000000001e3202b (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pud_range mm/memory.c:1469 [inline] #0: 0000000001e3202b (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_p4d_range mm/memory.c:1490 [inline] #0: 0000000001e3202b (&(ptlock_ptr(page))->rlock#2){+.+.}, at: unmap_page_range+0x8a9/0x1fb0 mm/memory.c:1511 #1: 00000000e1a0bd31 (rcu_read_lock){....}, at: lock_page_memcg+0x0/0x240 include/linux/cgroup.h:482 #2: 00000000938f8fc1 (rcu_callback){....}, at: __rcu_reclaim kernel/rcu/rcu.h:226 [inline] #2: 00000000938f8fc1 (rcu_callback){....}, at: rcu_do_batch kernel/rcu/tree.c:2584 [inline] #2: 00000000938f8fc1 (rcu_callback){....}, at: invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] #2: 00000000938f8fc1 (rcu_callback){....}, at: __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] #2: 00000000938f8fc1 (rcu_callback){....}, at: rcu_process_callbacks+0xc79/0x1a30 kernel/rcu/tree.c:2881 stack backtrace: CPU: 1 PID: 14593 Comm: syz-executor.0 Not tainted 4.19.103-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_usage_bug.cold+0x330/0x42a kernel/locking/lockdep.c:2540 valid_state kernel/locking/lockdep.c:2553 [inline] mark_lock_irq kernel/locking/lockdep.c:2747 [inline] mark_lock+0xd1b/0x1370 kernel/locking/lockdep.c:3127 mark_irqflags kernel/locking/lockdep.c:3005 [inline] __lock_acquire+0xc62/0x49c0 kernel/locking/lockdep.c:3368 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __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] rxrpc_put_client_connection_id.part.0+0x19/0x70 net/rxrpc/conn_client.c:143 rxrpc_put_client_connection_id include/linux/spinlock.h:370 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:956 [inline] rxrpc_put_client_conn+0x6c6/0xc20 net/rxrpc/conn_client.c:1002 rxrpc_put_connection net/rxrpc/ar-internal.h:951 [inline] rxrpc_rcu_destroy_call+0xbd/0x200 net/rxrpc/call_object.c:657 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0xba0/0x1a30 kernel/rcu/tree.c:2881 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:lock_acquire+0x1ea/0x3f0 kernel/locking/lockdep.c:3906 Code: 7c 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 c4 01 00 00 48 83 3d 9a f2 9f 07 00 0f 84 38 01 00 00 48 8b 7d c8 57 9d <0f> 1f 44 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 65 8b RSP: 0018:ffff88804748f610 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11e4ae9 RBX: ffff8880519280c0 RCX: 00000000cdc8f84b RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000282 RBP: ffff88804748f658 R08: 0000000000000000 R09: 0000000000000001 R10: ffff888051928968 R11: 00000000bfbcaaa5 R12: ffffffff88f934e0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002 rcu_lock_acquire include/linux/rcupdate.h:242 [inline] rcu_read_lock include/linux/rcupdate.h:627 [inline] lock_page_memcg+0x39/0x240 mm/memcontrol.c:1906 page_remove_file_rmap mm/rmap.c:1215 [inline] page_remove_rmap+0x53d/0x12c0 mm/rmap.c:1300 zap_pte_range mm/memory.c:1338 [inline] zap_pmd_range mm/memory.c:1440 [inline] zap_pud_range mm/memory.c:1469 [inline] zap_p4d_range mm/memory.c:1490 [inline] unmap_page_range+0xda2/0x1fb0 mm/memory.c:1511 unmap_single_vma+0x19d/0x300 mm/memory.c:1556 unmap_vmas+0xae/0x180 mm/memory.c:1586 exit_mmap+0x2c2/0x530 mm/mmap.c:3091 __mmput kernel/fork.c:1015 [inline] mmput+0x15f/0x4c0 kernel/fork.c:1036 exit_mm kernel/exit.c:546 [inline] do_exit+0xb1e/0x30d0 kernel/exit.c:867 do_group_exit+0x135/0x370 kernel/exit.c:983 get_signal+0x3ec/0x1fc0 kernel/signal.c:2583 do_signal+0x95/0x1960 arch/x86/kernel/signal.c:821 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b3b9 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa06ea15cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 000000000075bfd0 RCX: 000000000045b3b9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 000000000075bfd4 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000033fe0 R11: 0000000000000246 R12: 000000000075bfd4 R13: 00007ffc4fc4c30f R14: 00007fa06ea169c0 R15: 000000000075bfd4 input: syz1 as /devices/virtual/input/input1013 input: syz1 as /devices/virtual/input/input1014 input: syz1 as /devices/virtual/input/input1015 input: syz1 as /devices/virtual/input/input1016 input: syz1 as /devices/virtual/input/input1017 input: syz1 as /devices/virtual/input/input1018 input: syz1 as /devices/virtual/input/input1019 input: syz1 as /devices/virtual/input/input1020 input: syz1 as /devices/virtual/input/input1021 input: syz1 as /devices/virtual/input/input1022 input input1023: cannot allocate more than FF_MAX_EFFECTS effects input input1026: cannot allocate more than FF_MAX_EFFECTS effects input: syz1 as /devices/virtual/input/input1025 input: syz1 as /devices/virtual/input/input1028 input: syz1 as /devices/virtual/input/input1029 input: syz1 as /devices/virtual/input/input1030 input: syz1 as /devices/virtual/input/input1031 input: syz1 as /devices/virtual/input/input1032 input: syz1 as /devices/virtual/input/input1033 input: syz1 as /devices/virtual/input/input1034 input: syz1 as /devices/virtual/input/input1035 input: syz1 as /devices/virtual/input/input1036 input: syz1 as /devices/virtual/input/input1037 Enabling of bearer rejected, failed to enable media uinput: write device info first input: syz1 as /devices/virtual/input/input1039 input: syz1 as /devices/virtual/input/input1040 input: syz1 as /devices/virtual/input/input1043 input: syz1 as /devices/virtual/input/input1044 input: syz1 as /devices/virtual/input/input1045 input: syz1 as /devices/virtual/input/input1046 input: syz1 as /devices/virtual/input/input1047 uinput: write device info first input: syz1 as /devices/virtual/input/input1049 bridge0: port 2(bridge_slave_1) entered disabled state bridge0: port 1(bridge_slave_0) entered disabled state