====================================================== WARNING: possible circular locking dependency detected 4.14.229-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:4/364 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:4/364: #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: 0 PID: 364 Comm: kworker/u4:4 Not tainted 4.14.229-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 input: syz1 as /devices/virtual/input/input10 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue input: syz1 as /devices/virtual/input/input11 qnx4: no qnx4 filesystem (no root dir). EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue qnx4: no qnx4 filesystem (no root dir). audit: type=1804 audit(1617993766.039:26): pid=22083 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir168420965/syzkaller.GMvEyd/611/bus" dev="sda1" ino=14418 res=1 audit: type=1804 audit(1617993766.059:27): pid=22083 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir168420965/syzkaller.GMvEyd/611/bus" dev="sda1" ino=14418 res=1 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy audit: type=1804 audit(1617993766.849:28): pid=22083 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir168420965/syzkaller.GMvEyd/611/bus" dev="sda1" ino=14418 res=1 audit: type=1804 audit(1617993766.869:29): pid=22139 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir168420965/syzkaller.GMvEyd/611/bus" dev="sda1" ino=14418 res=1 ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ip6_tables: ip6tables: counters copy to user failed while replacing table team0: Cannot enslave team device to itself ip6_tables: ip6tables: counters copy to user failed while replacing table bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered disabled state ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy device team0 entered promiscuous mode device team_slave_0 entered promiscuous mode ceph: No mds server is up or the cluster is laggy device team_slave_1 entered promiscuous mode bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered forwarding state ceph: No mds server is up or the cluster is laggy 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 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue ceph: No mds server is up or the cluster is laggy team0: Cannot enslave team device to itself bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered disabled state device team0 entered promiscuous mode ceph: No mds server is up or the cluster is laggy device team_slave_0 entered promiscuous mode device team_slave_1 entered promiscuous mode ceph: No mds server is up or the cluster is laggy bridge0: port 3(team0) entered blocking state bridge0: port 3(team0) entered forwarding state ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy device team0 left promiscuous mode device team_slave_0 left promiscuous mode ceph: No mds server is up or the cluster is laggy device team_slave_1 left promiscuous mode bridge0: port 3(team0) entered disabled state ceph: No mds server is up or the cluster is laggy team0: Cannot enslave team device to itself bridge0: port 3(team0) entered blocking state ceph: No mds server is up or the cluster is laggy 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 IPVS: ftp: loaded support on port[0] = 21 ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy sg_write: process 120 (syz-executor.2) changed security contexts after opening file descriptor, this is not allowed. ceph: No mds server is up or the cluster is laggy IPVS: ftp: loaded support on port[0] = 21 audit: type=1804 audit(1617993769.819:30): pid=22531 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir127887796/syzkaller.o0m75k/28/bus" dev="sda1" ino=14884 res=1 audit: type=1804 audit(1617993769.849:31): pid=22531 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir127887796/syzkaller.o0m75k/28/bus" dev="sda1" ino=14884 res=1 Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! File: /root/syzkaller-testdir127887796/syzkaller.o0m75k/28/bus PID: 22531 Comm: syz-executor.0 audit: type=1804 audit(1617993769.859:32): pid=22531 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir127887796/syzkaller.o0m75k/28/bus" dev="sda1" ino=14884 res=1 ceph: No mds server is up or the cluster is laggy audit: type=1804 audit(1617993769.949:33): pid=22539 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir127887796/syzkaller.o0m75k/28/bus" dev="sda1" ino=14884 res=1 ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy IPVS: ftp: loaded support on port[0] = 21 ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy IPVS: ftp: loaded support on port[0] = 21 ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy IPVS: ftp: loaded support on port[0] = 21 ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy EXT4-fs warning (device loop5): ext4_enable_quotas:5758: Failed to enable quota tracking (type=-1, err=-22). Please run e2fsck to fix. hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected EXT4-fs (loop5): mount failed EXT4-fs warning (device loop5): ext4_enable_quotas:5758: Failed to enable quota tracking (type=-1, err=-22). Please run e2fsck to fix. EXT4-fs (loop5): mount failed BTRFS: device fsid f90cac8b-044b-4fa8-8bee-4b8d3da88dc2 devid 1 transid 7 /dev/loop5 ceph: No mds server is up or the cluster is laggy BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents UBIFS error (pid: 22963): cannot open "/dev/loop3", error -22 ceph: No mds server is up or the cluster is laggy UBIFS error (pid: 22980): cannot open "/dev/loop3", error -22 attempt to access beyond end of device loop5: rw=4096, want=2064, limit=267 BTRFS error (device loop5): failed to read chunk root BTRFS error (device loop5): open_ctree failed BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents attempt to access beyond end of device loop5: rw=4096, want=2064, limit=267 BTRFS error (device loop5): failed to read chunk root BTRFS error (device loop5): open_ctree failed print_req_error: 259 callbacks suppressed print_req_error: I/O error, dev loop5, sector 0 libceph: mon0 [d::]:6789 socket closed (con state CONNECTING) ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy ceph: No mds server is up or the cluster is laggy