BTRFS: device fsid ecf6f2a3-2997-48ae-b81e-1b00920efd9a devid 0 transid 0 /dev/loop2 ====================================================== [ INFO: possible circular locking dependency detected ] 4.9.110-g00a0bcb #4 Not tainted ------------------------------------------------------- syz-executor6/7292 is trying to acquire lock: (sk_lock-AF_INET){+.+.+.}, at: [] lock_sock include/net/sock.h:1404 [inline] (sk_lock-AF_INET){+.+.+.}, at: [] do_ip_setsockopt.isra.13+0x12a/0x2b10 net/ipv4/ip_sockglue.c:636 but task is already holding lock: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 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 __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 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 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 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rtnl_mutex); lock(sk_lock-AF_INET); lock(rtnl_mutex); lock(sk_lock-AF_INET); *** DEADLOCK *** 1 lock held by syz-executor6/7292: #0: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 stack backtrace: CPU: 0 PID: 7292 Comm: syz-executor6 Not tainted 4.9.110-g00a0bcb #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b87d7758 ffffffff81eb2329 ffffffff855e79b0 ffffffff8559cef0 ffffffff855e79b0 ffff8801c3cea0e8 ffff8801c3ce9800 ffff8801b87d77a0 ffffffff814262d4 0000000000000001 00000000c3ce9800 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 [] 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 BTRFS error (device loop2): superblock checksum mismatch Dev loop1: unable to read RDB block 4 BTRFS error (device loop2): open_ctree failed loop1: unable to read partition table BTRFS error (device loop2): superblock checksum mismatch loop1: partition table beyond EOD, truncated loop_reread_partitions: partition scan of loop1 () failed (rc=-5) BTRFS error (device loop2): open_ctree failed Dev loop1: unable to read RDB block 4 loop1: unable to read partition table loop1: partition table beyond EOD, truncated loop_reread_partitions: partition scan of loop1 () failed (rc=-5) capability: warning: `syz-executor0' uses 32-bit capabilities (legacy support in use) BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed IPv6: Can't replace route, no match found IPv6: Can't replace route, no match found BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed binder: 7447:7451 got transaction to context manager from process owning it BTRFS error (device loop2): superblock checksum mismatch ISOFS: Invalid session number or type of track ISOFS: Invalid session number isofs_fill_super: bread failed, dev=loop3, iso_blknum=16, block=32 BTRFS error (device loop2): open_ctree failed binder: 7447:7451 transaction failed 29201/-22, size 24-8 line 3009 binder: BINDER_SET_CONTEXT_MGR already set binder: 7447:7464 ioctl 40046207 0 returned -16 binder_alloc: 7447: binder_alloc_buf, no vma binder: 7447:7451 transaction failed 29189/-3, size 24-8 line 3141 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 ISOFS: Invalid session number or type of track FAT-fs (loop4): error, invalid access to FAT (entry 0x000006c0) FAT-fs (loop4): Filesystem has been set read-only FAT-fs (loop4): error, invalid access to FAT (entry 0x000006c0) FAT-fs (loop4): error, invalid access to FAT (entry 0x000006c0) FAT-fs (loop4): error, invalid access to FAT (entry 0x000006c0) BTRFS error (device loop2): superblock checksum mismatch ISOFS: Invalid session number isofs_fill_super: bread failed, dev=loop3, iso_blknum=16, block=32 BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch PF_BRIDGE: RTM_DELNEIGH with invalid address PF_BRIDGE: RTM_DELNEIGH with invalid address BTRFS error (device loop2): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch netlink: 8 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor0'. BTRFS error (device loop7): open_ctree failed BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch mmap: syz-executor6 (7754) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop1): superblock checksum mismatch BTRFS error (device loop1): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop4): superblock checksum mismatch BTRFS error (device loop4): open_ctree failed BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop7): superblock checksum mismatch BTRFS error (device loop7): open_ctree failed BTRFS error (device loop0): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed BTRFS error (device loop6): superblock checksum mismatch BTRFS error (device loop6): open_ctree failed BTRFS error (device loop0): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed BTRFS error (device loop0): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed BTRFS error (device loop0): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed BTRFS error (device loop0): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed BTRFS error (device loop0): superblock checksum mismatch BTRFS error (device loop0): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed BTRFS error (device loop2): superblock checksum mismatch BTRFS error (device loop2): open_ctree failed