netlink: 20 bytes leftover after parsing attributes in process `syz-executor1'. ====================================================== [ INFO: possible circular locking dependency detected ] 4.9.109-g7cecc75 #2 Not tainted ------------------------------------------------------- syz-executor4/7550 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: -> #1 (rtnl_mutex){+.+.+.}: 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 -> #0 (sk_lock-AF_INET){+.+.+.}: 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-executor4/7550: #0: (rtnl_mutex){+.+.+.}, at: [] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70 stack backtrace: CPU: 0 PID: 7550 Comm: syz-executor4 Not tainted 4.9.109-g7cecc75 #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cf007758 ffffffff81eb3e29 ffffffff855e7800 ffffffff8559d0a0 ffffffff855e7800 ffff8801d065e8e8 ffff8801d065e000 ffff8801cf0077a0 ffffffff814262d4 0000000000000001 00000000d065e000 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 netlink: 20 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 20 bytes leftover after parsing attributes in process `syz-executor1'. PM: Marking nosave pages: [mem 0x00000000-0x00000fff] PM: Marking nosave pages: [mem 0x0009f000-0x000fffff] PM: Marking nosave pages: [mem 0xbfff3000-0xffffffff] PM: Basic memory bitmaps created IPVS: length: 4096 != 24 PM: Basic memory bitmaps freed blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock blk_update_request: I/O error, dev loop13, sector 2 loop3: p1 p2 p3 p4 < > EXT4-fs (loop13): unable to read superblock blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock loop3: p1 p2 p3 p4 < > blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock autofs4:pid:7828:autofs4_fill_super: called with bogus options blk_update_request: I/O error, dev loop13, sector 2 netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. EXT4-fs (loop13): unable to read superblock autofs4:pid:7828:autofs4_fill_super: called with bogus options netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock syz-executor5: vmalloc: allocation failure: 0 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 1 PID: 7871 Comm: syz-executor5 Not tainted 4.9.109-g7cecc75 #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b971f8a0 ffffffff81eb3e29 1ffff100372e3f16 ffff8801be458000 ffffffff83cba1a0 0000000000000001 0000000000400000 ffff8801b971f9e8 ffffffff815634dc 0000000041b58ab3 ffffffff843c6998 ffffffff814523b0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc.cold.123+0xd5/0x141 mm/page_alloc.c:3068 [] __vmalloc_node_range+0x357/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] sel_write_load+0x135/0xfa0 security/selinux/selinuxfs.c:514 [] __vfs_write+0x115/0x580 fs/read_write.c:507 [] vfs_write+0x187/0x530 fs/read_write.c:557 [] SYSC_write fs/read_write.c:604 [inline] [] SyS_write+0xd9/0x1c0 fs/read_write.c:596 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:278798 inactive_anon:41 isolated_anon:0 active_file:4020 inactive_file:12597 isolated_file:0 unevictable:0 dirty:291 writeback:0 unstable:0 slab_reclaimable:5000 slab_unreclaimable:62511 mapped:74702 shmem:51 pagetables:1466 bounce:0 free:1191669 free_pcp:464 free_cma:0 Node 0 active_anon:1115192kB inactive_anon:164kB active_file:16080kB inactive_file:50388kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:298808kB dirty:1164kB writeback:0kB shmem:204kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 372736kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB DMA32 free:2977712kB min:30580kB low:38224kB high:45868kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129292kB managed:2978500kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:788kB local_pcp:736kB free_cma:0kB Normal free:1773056kB min:36836kB low:46044kB high:55252kB active_anon:1115192kB inactive_anon:164kB active_file:16080kB inactive_file:50388kB unevictable:0kB writepending:1164kB present:4718592kB managed:3585212kB mlocked:0kB slab_reclaimable:20000kB slab_unreclaimable:250044kB kernel_stack:6144kB pagetables:5864kB bounce:0kB free_pcp:1068kB local_pcp:532kB free_cma:0kB DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 16667 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965969 pages RAM 0 pages HighMem/MovableOnly 321064 pages reserved syz-executor5: vmalloc: allocation failure: 0 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 7878 Comm: syz-executor5 Not tainted 4.9.109-g7cecc75 #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff880171d578a0 ffffffff81eb3e29 1ffff1002e3aaf16 ffff8801c63ae000 ffffffff83cba1a0 0000000000000001 0000000000400000 ffff880171d579e8 ffffffff815634dc 0000000041b58ab3 ffffffff843c6998 ffffffff814523b0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc.cold.123+0xd5/0x141 mm/page_alloc.c:3068 [] __vmalloc_node_range+0x357/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] sel_write_load+0x135/0xfa0 security/selinux/selinuxfs.c:514 [] __vfs_write+0x115/0x580 fs/read_write.c:507 [] vfs_write+0x187/0x530 fs/read_write.c:557 [] SYSC_write fs/read_write.c:604 [inline] [] SyS_write+0xd9/0x1c0 fs/read_write.c:596 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:277806 inactive_anon:41 isolated_anon:0 active_file:4020 inactive_file:12597 isolated_file:0 unevictable:0 dirty:291 writeback:0 unstable:0 slab_reclaimable:5000 slab_unreclaimable:62374 mapped:74727 shmem:51 pagetables:1466 bounce:0 free:1192306 free_pcp:465 free_cma:0 Node 0 active_anon:1111224kB inactive_anon:164kB active_file:16080kB inactive_file:50388kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:298908kB dirty:1164kB writeback:0kB shmem:204kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 372736kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB DMA32 free:2977712kB min:30580kB low:38224kB high:45868kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129292kB managed:2978500kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:788kB local_pcp:52kB free_cma:0kB Normal free:1775604kB min:36836kB low:46044kB high:55252kB active_anon:1111224kB inactive_anon:164kB active_file:16080kB inactive_file:50388kB unevictable:0kB writepending:1164kB present:4718592kB managed:3585212kB mlocked:0kB slab_reclaimable:20000kB slab_unreclaimable:249496kB kernel_stack:6112kB pagetables:5864kB bounce:0kB free_pcp:1072kB local_pcp:644kB free_cma:0kB DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 16667 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965969 pages RAM 0 pages HighMem/MovableOnly 321064 pages reserved IPVS: Creating netns size=2536 id=10 IPVS: Creating netns size=2536 id=11 IPVS: Creating netns size=2536 id=12 blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'. IPVS: Creating netns size=2536 id=13 blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock IPVS: Creating netns size=2536 id=14 netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'. EXT4-fs (loop13): unable to read superblock EXT4-fs (loop13): unable to read superblock EXT4-fs (loop13): unable to read superblock EXT4-fs (loop6): unable to read superblock netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'. FAT-fs (loop6): invalid media value (0x5e) FAT-fs (loop6): Can't find a valid FAT filesystem IPVS: Creating netns size=2536 id=15 FAT-fs (loop6): invalid media value (0x5e) FAT-fs (loop6): Can't find a valid FAT filesystem IPVS: Creating netns size=2536 id=16 EXT4-fs (loop13): unable to read superblock netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'. EXT4-fs (loop13): unable to read superblock EXT4-fs (loop13): unable to read superblock EXT4-fs (loop13): unable to read superblock 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 IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready EXT4-fs (loop13): unable to read superblock netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'. EXT4-fs (loop13): unable to read superblock IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: 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 blk_update_request: 10 callbacks suppressed blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock blk_update_request: I/O error, dev loop13, sector 2 EXT4-fs (loop13): unable to read superblock netlink: 16 bytes leftover after parsing attributes in process `syz-executor2'.