====================================================== [ INFO: possible circular locking dependency detected ] 4.9.111-g03c70fe #6 Not tainted ------------------------------------------------------- syz-executor2/1978 is trying to acquire lock: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 but task is already holding lock: (sk_lock-AF_INET){+.+.+.}, at: [] lock_sock include/net/sock.h:1404 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] do_ip_setsockopt.isra.13+0x269/0x2b10 net/ipv4/ip_sockglue.c:636 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 lock_sock_nested+0xc6/0x120 net/core/sock.c:2511 lock_sock include/net/sock.h:1404 [inline] do_ip_setsockopt.isra.13+0x12a/0x2b10 net/ipv4/ip_sockglue.c:636 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240 udp_setsockopt+0x4a/0x90 net/ipv4/udp.c:2091 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706 SYSC_setsockopt net/socket.c:1772 [inline] SyS_setsockopt+0x166/0x260 net/socket.c:1751 do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 entry_SYSCALL_64_after_swapgs+0x5d/0xdb check_prev_add kernel/locking/lockdep.c:1828 [inline] check_prevs_add kernel/locking/lockdep.c:1938 [inline] validate_chain kernel/locking/lockdep.c:2265 [inline] __lock_acquire+0x3019/0x4070 kernel/locking/lockdep.c:3345 lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 __mutex_lock_common kernel/locking/mutex.c:521 [inline] mutex_lock_nested+0xc0/0x870 kernel/locking/mutex.c:621 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 mrtsock_destruct+0x3b/0x1e0 net/ipv4/ipmr.c:1231 ip_ra_control+0x2c2/0x420 net/ipv4/ip_sockglue.c:360 do_ip_setsockopt.isra.13+0x15ff/0x2b10 net/ipv4/ip_sockglue.c:1137 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:833 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706 SYSC_setsockopt net/socket.c:1772 [inline] SyS_setsockopt+0x166/0x260 net/socket.c:1751 do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 entry_SYSCALL_64_after_swapgs+0x5d/0xdb other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sk_lock-AF_INET); lock(rtnl_mutex); lock(sk_lock-AF_INET); lock(rtnl_mutex); *** DEADLOCK *** 1 lock held by syz-executor2/1978: #0: (sk_lock-AF_INET){+.+.+.}, at: [] lock_sock include/net/sock.h:1404 [inline] #0: (sk_lock-AF_INET){+.+.+.}, at: [] do_ip_setsockopt.isra.13+0x269/0x2b10 net/ipv4/ip_sockglue.c:636 stack backtrace: CPU: 0 PID: 1978 Comm: syz-executor2 Not tainted 4.9.111-g03c70fe #6 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cac3f5f8 ffffffff81eb2729 ffffffff8559d0a0 ffffffff855e7800 ffffffff8559d0a0 ffff8801cfb850e8 ffff8801cfb84800 ffff8801cac3f640 ffffffff814263a4 0000000000000001 00000000cfb84800 0000000000000001 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_circular_bug.cold.51+0x1bd/0x27d kernel/locking/lockdep.c:1202 [] check_prev_add kernel/locking/lockdep.c:1828 [inline] [] check_prevs_add kernel/locking/lockdep.c:1938 [inline] [] validate_chain kernel/locking/lockdep.c:2265 [inline] [] __lock_acquire+0x3019/0x4070 kernel/locking/lockdep.c:3345 [] lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 [] __mutex_lock_common kernel/locking/mutex.c:521 [inline] [] mutex_lock_nested+0xc0/0x870 kernel/locking/mutex.c:621 [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 [] mrtsock_destruct+0x3b/0x1e0 net/ipv4/ipmr.c:1231 [] ip_ra_control+0x2c2/0x420 net/ipv4/ip_sockglue.c:360 [] do_ip_setsockopt.isra.13+0x15ff/0x2b10 net/ipv4/ip_sockglue.c:1137 [] ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240 [] raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:833 [] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706 [] SYSC_setsockopt net/socket.c:1772 [inline] [] SyS_setsockopt+0x166/0x260 net/socket.c:1751 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): Filesystem has been set read-only FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): Filesystem has been set read-only FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): Filesystem has been set read-only FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): Filesystem has been set read-only FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 2365 Comm: syz-executor6 Not tainted 4.9.111-g03c70fe #6 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a990f610 ffffffff81eb2729 0000000000000002 0000000000000000 ffff8801c9302900 ffff8801a990f7e0 0000000000000000 ffff8801a990f808 ffffffff81cb907b 0000000000000800 ffff8801a990f760 ffff8801c9302a0c Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault.cold.18+0x3e/0x51 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3508 [inline] [] __handle_mm_fault mm/memory.c:3597 [inline] [] handle_mm_fault+0x221d/0x28e0 mm/memory.c:3634 [] __do_page_fault+0x5af/0xd50 arch/x86/mm/fault.c:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:951 [] evdev_ioctl+0x27/0x30 drivers/input/evdev.c:1311 [] vfs_ioctl fs/ioctl.c:43 [inline] [] file_ioctl fs/ioctl.c:493 [inline] [] do_vfs_ioctl+0x1ac/0x11a0 fs/ioctl.c:677 [] SYSC_ioctl fs/ioctl.c:694 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb IPVS: Creating netns size=2536 id=104 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_team: link is not ready IPVS: stopping master sync thread 27642 ... IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 2774 Comm: syz-executor6 Not tainted 4.9.111-g03c70fe #6 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b12ef610 ffffffff81eb2729 0000000000000002 0000000000000000 ffff8801c9303680 ffff8801b12ef7e0 0000000000000000 ffff8801b12ef808 ffffffff81cb907b 0000000000000800 ffff8801b12ef760 ffff8801c930378c Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault.cold.18+0x3e/0x51 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3508 [inline] [] __handle_mm_fault mm/memory.c:3597 [inline] [] handle_mm_fault+0x221d/0x28e0 mm/memory.c:3634 [] __do_page_fault+0x5af/0xd50 arch/x86/mm/fault.c:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:951 [] evdev_ioctl+0x27/0x30 drivers/input/evdev.c:1311 [] vfs_ioctl fs/ioctl.c:43 [inline] [] file_ioctl fs/ioctl.c:493 [inline] [] do_vfs_ioctl+0x1ac/0x11a0 fs/ioctl.c:677 [] SYSC_ioctl fs/ioctl.c:694 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): Filesystem has been set read-only FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): Filesystem has been set read-only FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) FAT-fs (loop1): error, fat_get_cluster: invalid cluster chain (i_pos 1041) IPVS: Creating netns size=2536 id=105 IPVS: Creating netns size=2536 id=106 IPVS: Creating netns size=2536 id=107 IPVS: Creating netns size=2536 id=108 IPVS: Creating netns size=2536 id=109