====================================================== WARNING: possible circular locking dependency detected 4.14.232-syzkaller #0 Not tainted ------------------------------------------------------ IPVS: ftp: loaded support on port[0] = 21 kworker/u4:1/22 is trying to acquire lock: (k-sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1471 [inline] (k-sk_lock-AF_INET){+.+.}, at: [] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2562 but task is already holding lock: ((&(&cp->cp_send_w)->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 ((&(&cp->cp_send_w)->work)){+.+.}: flush_work+0xad/0x770 kernel/workqueue.c:2889 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2964 rds_tcp_reset_callbacks+0x18d/0x450 net/rds/tcp.c:167 rds_tcp_accept_one+0x61a/0x8b0 net/rds/tcp_listen.c:194 rds_tcp_accept_worker+0x4d/0x70 net/rds/tcp.c:407 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #0 (k-sk_lock-AF_INET){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 lock_sock_nested+0xb7/0x100 net/core/sock.c:2796 lock_sock include/net/sock.h:1471 [inline] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2562 tcp_setsockopt net/ipv4/tcp.c:2830 [inline] tcp_setsockopt+0xa7/0xc0 net/ipv4/tcp.c:2822 kernel_setsockopt+0xfb/0x1b0 net/socket.c:3396 rds_tcp_cork net/rds/tcp_send.c:43 [inline] rds_tcp_xmit_path_prepare+0xaf/0xe0 net/rds/tcp_send.c:50 rds_send_xmit+0x1ae/0x1c00 net/rds/send.c:187 rds_send_worker+0x6d/0x240 net/rds/threads.c:189 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((&(&cp->cp_send_w)->work)); lock(k-sk_lock-AF_INET); lock((&(&cp->cp_send_w)->work)); lock(k-sk_lock-AF_INET); *** DEADLOCK *** 2 locks held by kworker/u4:1/22: #0: ("%s""krdsd"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087 #1: ((&(&cp->cp_send_w)->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 stack backtrace: CPU: 1 PID: 22 Comm: kworker/u4:1 Not tainted 4.14.232-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_send_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 lock_sock_nested+0xb7/0x100 net/core/sock.c:2796 lock_sock include/net/sock.h:1471 [inline] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2562 tcp_setsockopt net/ipv4/tcp.c:2830 [inline] tcp_setsockopt+0xa7/0xc0 net/ipv4/tcp.c:2822 kernel_setsockopt+0xfb/0x1b0 net/socket.c:3396 rds_tcp_cork net/rds/tcp_send.c:43 [inline] rds_tcp_xmit_path_prepare+0xaf/0xe0 net/rds/tcp_send.c:50 rds_send_xmit+0x1ae/0x1c00 net/rds/send.c:187 rds_send_worker+0x6d/0x240 net/rds/threads.c:189 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 caif:caif_disconnect_client(): nothing to disconnect caif:caif_disconnect_client(): nothing to disconnect bond0: team0 is up - this may be due to an out of date ifenslave bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered disabled state device team0 entered promiscuous mode device team_slave_0 entered promiscuous mode device team_slave_1 entered promiscuous mode bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered forwarding state device team0 left promiscuous mode device team_slave_0 left promiscuous mode device team_slave_1 left promiscuous mode bridge0: port 3(team0) entered disabled state bond0: team0 is up - this may be due to an out of date ifenslave bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered disabled state device team0 entered promiscuous mode device team_slave_0 entered promiscuous mode device team_slave_1 entered promiscuous mode bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered forwarding state kvm: vcpu 0: requested 128 ns lapic timer period limited to 500000 ns XFS (loop4): unknown mount option [Ýy®”p÷!ô9‘M¸þÝÊfUŽ÷)¹!òB±”DqAæõ]. XFS (loop4): unknown mount option [Ýy®”p÷!ô9‘M¸þÝÊfUŽ÷)¹!òB±”DqAæõ]. IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 usb usb1: check_ctrlrecip: process 1095 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1095 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1103 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1103 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1115 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1115 (syz-executor.3) did not claim interface 0 before use kvm: vcpu 0: requested 128 ns lapic timer period limited to 500000 ns kvm: vcpu 0: requested 128 ns lapic timer period limited to 500000 ns usb usb1: check_ctrlrecip: process 1143 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1143 (syz-executor.3) did not claim interface 0 before use hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected IPVS: ftp: loaded support on port[0] = 21 hub 9-0:1.0: USB hub found usb usb1: check_ctrlrecip: process 1162 (syz-executor.3) requesting ep 01 but needs 81 hub 9-0:1.0: 8 ports detected usb usb1: usbfs: process 1162 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1205 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1205 (syz-executor.3) did not claim interface 0 before use kvm: vcpu 0: requested 128 ns lapic timer period limited to 500000 ns netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. usb usb1: check_ctrlrecip: process 1239 (syz-executor.3) requesting ep 01 but needs 81 kvm: vcpu 0: requested 128 ns lapic timer period limited to 500000 ns xt_HL: TTL: invalid or unknown mode 3 kvm: vcpu 0: requested 128 ns lapic timer period limited to 500000 ns usb usb1: usbfs: process 1239 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1243 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1243 (syz-executor.4) did not claim interface 0 before use ieee80211 M: Selected rate control algorithm 'minstrel_ht' Unknown ioctl 1074029063 ieee80211 M: hwaddr 02:00:00:00:02:00 registered usb usb1: check_ctrlrecip: process 1276 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1276 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1280 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1280 (syz-executor.4) did not claim interface 0 before use Unknown ioctl 1074029063 usb usb1: check_ctrlrecip: process 1282 (syz-executor.3) requesting ep 01 but needs 81 ieee80211 phy3: Selected rate control algorithm 'minstrel_ht' usb usb1: usbfs: process 1282 (syz-executor.3) did not claim interface 0 before use ieee80211 phy3: hwaddr 02:00:00:00:03:00 registered usb usb1: check_ctrlrecip: process 1291 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1291 (syz-executor.4) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1307 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1307 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1314 (syz-executor.5) requesting ep 01 but needs 81 ieee80211 phy4: Selected rate control algorithm 'minstrel_ht' usb usb1: usbfs: process 1314 (syz-executor.5) did not claim interface 0 before use ieee80211 phy4: hwaddr 02:00:00:00:04:00 registered usb usb1: check_ctrlrecip: process 1323 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1323 (syz-executor.4) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1331 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1331 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1338 (syz-executor.5) requesting ep 01 but needs 81 usb usb1: usbfs: process 1338 (syz-executor.5) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1342 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1342 (syz-executor.4) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1344 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1344 (syz-executor.3) did not claim interface 0 before use IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 usb usb1: check_ctrlrecip: process 1399 (syz-executor.3) requesting ep 01 but needs 81 ieee80211 phy5: Selected rate control algorithm 'minstrel_ht' usb usb1: usbfs: process 1399 (syz-executor.3) did not claim interface 0 before use ieee80211 phy5: hwaddr 02:00:00:00:05:00 registered usb usb1: check_ctrlrecip: process 1396 (syz-executor.5) requesting ep 01 but needs 81 usb usb1: usbfs: process 1396 (syz-executor.5) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1402 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1402 (syz-executor.4) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1416 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1416 (syz-executor.3) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1428 (syz-executor.4) requesting ep 01 but needs 81 usb usb1: usbfs: process 1428 (syz-executor.4) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1427 (syz-executor.5) requesting ep 01 but needs 81 usb usb1: usbfs: process 1427 (syz-executor.5) did not claim interface 0 before use usb usb1: check_ctrlrecip: process 1436 (syz-executor.3) requesting ep 01 but needs 81 usb usb1: usbfs: process 1436 (syz-executor.3) did not claim interface 0 before use ieee80211 phy6: Selected rate control algorithm 'minstrel_ht' usb usb1: check_ctrlrecip: process 1440 (syz-executor.1) requesting ep 01 but needs 81