====================================================== WARNING: possible circular locking dependency detected 4.14.290-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:6/11051 is trying to acquire lock: ((&(&cp->cp_send_w)->work)){+.+.}, at: [] flush_work+0x88/0x770 kernel/workqueue.c:2887 but task is already holding lock: (k-sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1473 [inline] (k-sk_lock-AF_INET){+.+.}, at: [] rds_tcp_reset_callbacks+0x181/0x450 net/rds/tcp.c:165 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (k-sk_lock-AF_INET){+.+.}: lock_sock_nested+0xb7/0x100 net/core/sock.c:2813 lock_sock include/net/sock.h:1473 [inline] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2564 tcp_setsockopt net/ipv4/tcp.c:2832 [inline] tcp_setsockopt+0xa7/0xc0 net/ipv4/tcp.c:2824 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:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #0 ((&(&cp->cp_send_w)->work)){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 flush_work+0xad/0x770 kernel/workqueue.c:2890 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2965 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:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 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(k-sk_lock-AF_INET); lock((&(&cp->cp_send_w)->work)); lock(k-sk_lock-AF_INET); lock((&(&cp->cp_send_w)->work)); *** DEADLOCK *** 4 locks held by kworker/u4:6/11051: #0: ("%s""krdsd"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2088 #1: ((&rtn->rds_tcp_accept_w)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092 #2: (&tc->t_conn_path_lock){+.+.}, at: [] rds_tcp_accept_one+0x502/0x8b0 net/rds/tcp_listen.c:186 #3: (k-sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1473 [inline] #3: (k-sk_lock-AF_INET){+.+.}, at: [] rds_tcp_reset_callbacks+0x181/0x450 net/rds/tcp.c:165 stack backtrace: CPU: 0 PID: 11051 Comm: kworker/u4:6 Not tainted 4.14.290-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: krdsd rds_tcp_accept_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 flush_work+0xad/0x770 kernel/workqueue.c:2890 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2965 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:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 audit: type=1804 audit(1660683671.731:129): pid=15163 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3557517788/syzkaller.eHEn9A/199/bus" dev="sda1" ino=14028 res=1 audit: type=1804 audit(1660683671.771:130): pid=15166 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3467997141/syzkaller.X2ouo5/187/bus" dev="sda1" ino=14049 res=1 overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value audit: type=1804 audit(1660683672.611:131): pid=15211 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3557517788/syzkaller.eHEn9A/200/bus" dev="sda1" ino=14082 res=1 overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value audit: type=1804 audit(1660683672.651:132): pid=15212 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir3467997141/syzkaller.X2ouo5/188/bus" dev="sda1" ino=14097 res=1 overlayfs: unrecognized mount option "xino=auto" or missing value audit: type=1804 audit(1660683673.231:133): pid=15259 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3557517788/syzkaller.eHEn9A/201/bus" dev="sda1" ino=14129 res=1 overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value overlayfs: unrecognized mount option "xino=auto" or missing value Bluetooth: hci4 command 0x0406 tx timeout Bluetooth: hci1 command 0x0406 tx timeout Bluetooth: hci2 command 0x0406 tx timeout Bluetooth: hci3 command 0x0406 tx timeout Bluetooth: hci0 command 0x0406 tx timeout Bluetooth: hci5 command 0x0406 tx timeout hfs: can't find a HFS filesystem on dev loop4 8021q: adding VLAN 0 to HW filter on device team0 audit: type=1804 audit(1660683677.102:134): pid=15616 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3557517788/syzkaller.eHEn9A/216/bus" dev="sda1" ino=14341 res=1 bond0: Enslaving team0 as an active interface with an up link bond0: Releasing backup interface team0 bridge0: port 3(team0) entered blocking state audit: type=1800 audit(1660683677.102:135): pid=15616 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=14341 res=0 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 device macvlan2 entered promiscuous mode device macvlan3 entered promiscuous mode device macvlan4 entered promiscuous mode device macvlan5 entered promiscuous mode hfs: can't find a HFS filesystem on dev loop4 device team0 left promiscuous mode device team_slave_0 left promiscuous mode device team_slave_1 left promiscuous mode hfs: can't find a HFS filesystem on dev loop4 device macvlan2 left promiscuous mode device macvlan3 left promiscuous mode device macvlan4 left promiscuous mode device macvlan5 left promiscuous mode hfs: can't find a HFS filesystem on dev loop4 bridge0: port 3(team0) entered disabled state 8021q: adding VLAN 0 to HW filter on device team0 bond0: Enslaving team0 as an active interface with an up link bond0: Releasing backup interface team0 audit: type=1804 audit(1660683678.102:136): pid=15669 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3557517788/syzkaller.eHEn9A/217/bus" dev="sda1" ino=14346 res=1 bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered disabled state device team0 entered promiscuous mode audit: type=1800 audit(1660683678.102:137): pid=15669 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=14346 res=0 device team_slave_0 entered promiscuous mode syz-executor.5 (15634) used greatest stack depth: 23952 bytes left device team_slave_1 entered promiscuous mode device macvlan2 entered promiscuous mode device macvlan3 entered promiscuous mode audit: type=1804 audit(1660683678.372:138): pid=15677 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir4191852877/syzkaller.BFEWlO/229/bus" dev="sda1" ino=14341 res=1 device macvlan4 entered promiscuous mode device macvlan5 entered promiscuous mode audit: type=1800 audit(1660683678.372:139): pid=15677 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=14341 res=0 device team0 left promiscuous mode device team_slave_0 left promiscuous mode device team_slave_1 left promiscuous mode device macvlan2 left promiscuous mode device macvlan3 left promiscuous mode device macvlan4 left promiscuous mode device macvlan5 left promiscuous mode bridge0: port 3(team0) entered disabled state 8021q: adding VLAN 0 to HW filter on device team0 bond0: Enslaving team0 as an active interface with an up link bond0: Releasing backup interface team0 bridge0: port 3(team0) entered blocking state audit: type=1804 audit(1660683678.852:140): pid=15688 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir1304596187/syzkaller.pIM2Dv/215/bus" dev="sda1" ino=14342 res=1 bridge0: port 3(team0) entered disabled state device team0 entered promiscuous mode audit: type=1800 audit(1660683678.852:141): pid=15688 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.1" name="bus" dev="sda1" ino=14342 res=0 device team_slave_0 entered promiscuous mode audit: type=1804 audit(1660683678.982:142): pid=15695 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir3557517788/syzkaller.eHEn9A/218/bus" dev="sda1" ino=14006 res=1 device team_slave_1 entered promiscuous mode audit: type=1800 audit(1660683678.982:143): pid=15695 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=14006 res=0 device macvlan2 entered promiscuous mode device macvlan3 entered promiscuous mode device macvlan4 entered promiscuous mode device macvlan5 entered promiscuous mode device team0 left promiscuous mode device team_slave_0 left promiscuous mode device team_slave_1 left promiscuous mode device macvlan2 left promiscuous mode device macvlan3 left promiscuous mode device macvlan4 left promiscuous mode