bridge0: port 3(bond_slave_0) entered disabled state sctp: [Deprecated]: syz-executor4 (pid 6793) Use of int in maxseg socket option. Use struct sctp_assoc_value instead ====================================================== WARNING: possible circular locking dependency detected 4.17.0-rc2+ #22 Not tainted ------------------------------------------------------ syz-executor1/6779 is trying to acquire lock: (ptrval) (sk_lock-AF_INET6){+.+.}, at: lock_sock include/net/sock.h:1469 [inline] (ptrval) (sk_lock-AF_INET6){+.+.}, at: tcp_mmap+0x1c7/0x14f0 net/ipv4/tcp.c:1759 bridge0: port 3(bond_slave_0) entered blocking state but task is already holding lock: (ptrval) (&mm->mmap_sem){++++}, at: vm_mmap_pgoff+0x1a1/0x2a0 mm/util.c:355 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: bridge0: port 3(bond_slave_0) entered disabled state -> #1 (&mm->mmap_sem){++++}: __might_fault+0x155/0x1e0 mm/memory.c:4555 _copy_from_user+0x30/0x150 lib/usercopy.c:10 copy_from_user include/linux/uaccess.h:147 [inline] sctp_setsockopt_enable_strreset net/sctp/socket.c:3976 [inline] sctp_setsockopt+0x3911/0x7000 net/sctp/socket.c:4351 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3042 __sys_setsockopt+0x1bd/0x390 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1911 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (sk_lock-AF_INET6){+.+.}: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 lock_sock_nested+0xd0/0x120 net/core/sock.c:2844 lock_sock include/net/sock.h:1469 [inline] tcp_mmap+0x1c7/0x14f0 net/ipv4/tcp.c:1759 sock_mmap+0x8e/0xc0 net/socket.c:1144 call_mmap include/linux/fs.h:1789 [inline] mmap_region+0xd13/0x1820 mm/mmap.c:1723 do_mmap+0xc79/0x11d0 mm/mmap.c:1494 do_mmap_pgoff include/linux/mm.h:2237 [inline] vm_mmap_pgoff+0x1fb/0x2a0 mm/util.c:357 ksys_mmap_pgoff+0x4c9/0x640 mm/mmap.c:1544 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&mm->mmap_sem); lock(sk_lock-AF_INET6); sctp: [Deprecated]: syz-executor3 (pid 6783) Use of int in maxseg socket option. Use struct sctp_assoc_value instead lock(&mm->mmap_sem); lock(sk_lock-AF_INET6); *** DEADLOCK *** 1 lock held by syz-executor1/6779: #0: (ptrval) (&mm->mmap_sem){++++}, at: vm_mmap_pgoff+0x1a1/0x2a0 mm/util.c:355 stack backtrace: CPU: 1 PID: 6779 Comm: syz-executor1 Not tainted 4.17.0-rc2+ #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 print_circular_bug.isra.36.cold.54+0x1bd/0x27d kernel/locking/lockdep.c:1223 check_prev_add kernel/locking/lockdep.c:1863 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2417 [inline] __lock_acquire+0x343e/0x5140 kernel/locking/lockdep.c:3431 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 lock_sock_nested+0xd0/0x120 net/core/sock.c:2844 lock_sock include/net/sock.h:1469 [inline] tcp_mmap+0x1c7/0x14f0 net/ipv4/tcp.c:1759 sock_mmap+0x8e/0xc0 net/socket.c:1144 call_mmap include/linux/fs.h:1789 [inline] mmap_region+0xd13/0x1820 mm/mmap.c:1723 do_mmap+0xc79/0x11d0 mm/mmap.c:1494 do_mmap_pgoff include/linux/mm.h:2237 [inline] vm_mmap_pgoff+0x1fb/0x2a0 mm/util.c:357 ksys_mmap_pgoff+0x4c9/0x640 mm/mmap.c:1544 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455979 RSP: 002b:00007fa3cb4f7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fa3cb4f86d4 RCX: 0000000000455979 RDX: 0000000000000000 RSI: 0000000000da6000 RDI: 0000000020000000 RBP: 000000000072bea0 R08: 0000000000000016 R09: 0000000000000000 R10: 0000000000000011 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000003fe R14: 00000000006f9070 R15: 0000000000000000 sctp: [Deprecated]: syz-executor4 (pid 6842) Use of int in maxseg socket option. Use struct sctp_assoc_value instead netlink: 'syz-executor4': attribute type 6 has an invalid length. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 'syz-executor4': attribute type 6 has an invalid length. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 7200 Comm: syz-executor0 Not tainted 4.17.0-rc2+ #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:3082 [inline] prepare_alloc_pages mm/page_alloc.c:4322 [inline] __alloc_pages_nodemask+0x34e/0xd70 mm/page_alloc.c:4358 alloc_pages_current+0x10c/0x210 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] skb_page_frag_refill+0x453/0x6a0 net/core/sock.c:2214 tun_build_skb.isra.51+0x345/0x2040 drivers/net/tun.c:1631 tun_get_user+0xc04/0x3ff0 drivers/net/tun.c:1807 tun_chr_write_iter+0xb9/0x154 drivers/net/tun.c:1996 call_write_iter include/linux/fs.h:1784 [inline] do_iter_readv_writev+0x859/0xa50 fs/read_write.c:680 do_iter_write+0x185/0x5f0 fs/read_write.c:959 vfs_writev+0x1c7/0x330 fs/read_write.c:1004 do_writev+0x112/0x2f0 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1109 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455831 RSP: 002b:00007f7b47030ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000003e RCX: 0000000000455831 RDX: 0000000000000001 RSI: 00007f7b47030bf0 RDI: 00000000000000fc RBP: 0000000020000080 R08: 00000000000000fc R09: 0000000000000000 R10: 000000000000003e R11: 0000000000000293 R12: 0000000000000013 R13: 0000000000000661 R14: 00000000006fc9b8 R15: 0000000000000000 IPVS: set_ctl: invalid protocol: 29 172.20.20.187:20000 nq IPVS: set_ctl: invalid protocol: 29 172.20.20.187:20000 nq FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 7234 Comm: syz-executor0 Not tainted 4.17.0-rc2+ #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3552 __build_skb+0xa3/0x410 net/core/skbuff.c:281 build_skb+0x6f/0x2e0 net/core/skbuff.c:312 tun_build_skb.isra.51+0x878/0x2040 drivers/net/tun.c:1701 IPVS: length: 103 != 24 IPVS: length: 103 != 24 tun_get_user+0xc04/0x3ff0 drivers/net/tun.c:1807 tun_chr_write_iter+0xb9/0x154 drivers/net/tun.c:1996 call_write_iter include/linux/fs.h:1784 [inline] do_iter_readv_writev+0x859/0xa50 fs/read_write.c:680 do_iter_write+0x185/0x5f0 fs/read_write.c:959 vfs_writev+0x1c7/0x330 fs/read_write.c:1004 do_writev+0x112/0x2f0 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1109 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455831 RSP: 002b:00007f7b47030ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000003e RCX: 0000000000455831 RDX: 0000000000000001 RSI: 00007f7b47030bf0 RDI: 00000000000000fc RBP: 0000000020000080 R08: 00000000000000fc R09: 0000000000000000 R10: 000000000000003e R11: 0000000000000293 R12: 0000000000000013 R13: 0000000000000661 R14: 00000000006fc9b8 R15: 0000000000000001 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 7274 Comm: syz-executor0 Not tainted 4.17.0-rc2+ #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node+0x56/0x780 mm/slab.c:3642 __alloc_skb+0x111/0x780 net/core/skbuff.c:193 netlink: 4 bytes leftover after parsing attributes in process `syz-executor5'. alloc_skb include/linux/skbuff.h:989 [inline] alloc_skb_with_frags+0x137/0x760 net/core/skbuff.c:5265 sock_alloc_send_pskb+0x87a/0xae0 net/core/sock.c:2091 IPVS: ftp: loaded support on port[0] = 21 sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2108 __ip6_append_data.isra.47+0x1fae/0x3860 net/ipv6/ip6_output.c:1440 netlink: 4 bytes leftover after parsing attributes in process `syz-executor5'. ip6_append_data+0x1bd/0x2e0 net/ipv6/ip6_output.c:1609 icmpv6_echo_reply+0x1213/0x1d00 net/ipv6/icmp.c:734 icmpv6_rcv+0x1431/0x1a40 net/ipv6/icmp.c:851 ip6_input_finish+0x3ff/0x1a30 net/ipv6/ip6_input.c:284 IPVS: You probably need to specify IP address on multicast interface. NF_HOOK include/linux/netfilter.h:288 [inline] ip6_input+0xe1/0x5e0 net/ipv6/ip6_input.c:327 IPVS: Error connecting to the multicast addr dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x29c/0xa10 net/ipv6/ip6_input.c:71 NF_HOOK include/linux/netfilter.h:288 [inline] ipv6_rcv+0xeb8/0x2040 net/ipv6/ip6_input.c:208 IPVS: You probably need to specify IP address on multicast interface. IPVS: Error connecting to the multicast addr __netif_receive_skb_core+0x26f5/0x3630 net/core/dev.c:4603 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:4668 netif_receive_skb_internal+0x126/0x7b0 net/core/dev.c:4742 netif_receive_skb+0xba/0x400 net/core/dev.c:4766 tun_rx_batched.isra.53+0x4ba/0x8c0 drivers/net/tun.c:1560 tun_get_user+0x2944/0x3ff0 drivers/net/tun.c:1968 tun_chr_write_iter+0xb9/0x154 drivers/net/tun.c:1996 call_write_iter include/linux/fs.h:1784 [inline] do_iter_readv_writev+0x859/0xa50 fs/read_write.c:680 do_iter_write+0x185/0x5f0 fs/read_write.c:959 vfs_writev+0x1c7/0x330 fs/read_write.c:1004 do_writev+0x112/0x2f0 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1109 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455831 RSP: 002b:00007f7b47030ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000003e RCX: 0000000000455831 RDX: 0000000000000001 RSI: 00007f7b47030bf0 RDI: 00000000000000fc RBP: 0000000020000080 R08: 00000000000000fc R09: 0000000000000000 R10: 000000000000003e R11: 0000000000000293 R12: 0000000000000013 R13: 0000000000000661 R14: 00000000006fc9b8 R15: 0000000000000002 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 7343 Comm: syz-executor0 Not tainted 4.17.0-rc2+ #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x5a/0x770 mm/slab.c:3661 __do_kmalloc_node mm/slab.c:3681 [inline] __kmalloc_node_track_caller+0x33/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.38+0x3a/0xe0 net/core/skbuff.c:137 __alloc_skb+0x14d/0x780 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:989 [inline] alloc_skb_with_frags+0x137/0x760 net/core/skbuff.c:5265 sock_alloc_send_pskb+0x87a/0xae0 net/core/sock.c:2091 sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2108 __ip6_append_data.isra.47+0x1fae/0x3860 net/ipv6/ip6_output.c:1440 IPVS: ftp: loaded support on port[0] = 21 ip6_append_data+0x1bd/0x2e0 net/ipv6/ip6_output.c:1609 icmpv6_echo_reply+0x1213/0x1d00 net/ipv6/icmp.c:734 icmpv6_rcv+0x1431/0x1a40 net/ipv6/icmp.c:851 ip6_input_finish+0x3ff/0x1a30 net/ipv6/ip6_input.c:284 NF_HOOK include/linux/netfilter.h:288 [inline] ip6_input+0xe1/0x5e0 net/ipv6/ip6_input.c:327 IPVS: You probably need to specify IP address on multicast interface. dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x29c/0xa10 net/ipv6/ip6_input.c:71 IPVS: Error connecting to the multicast addr NF_HOOK include/linux/netfilter.h:288 [inline] ipv6_rcv+0xeb8/0x2040 net/ipv6/ip6_input.c:208 __netif_receive_skb_core+0x26f5/0x3630 net/core/dev.c:4603 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:4668 netif_receive_skb_internal+0x126/0x7b0 net/core/dev.c:4742 netif_receive_skb+0xba/0x400 net/core/dev.c:4766 tun_rx_batched.isra.53+0x4ba/0x8c0 drivers/net/tun.c:1560 tun_get_user+0x2944/0x3ff0 drivers/net/tun.c:1968 tun_chr_write_iter+0xb9/0x154 drivers/net/tun.c:1996 call_write_iter include/linux/fs.h:1784 [inline] do_iter_readv_writev+0x859/0xa50 fs/read_write.c:680 do_iter_write+0x185/0x5f0 fs/read_write.c:959 vfs_writev+0x1c7/0x330 fs/read_write.c:1004 do_writev+0x112/0x2f0 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1109 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455831 RSP: 002b:00007f7b47030ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000003e RCX: 0000000000455831 RDX: 0000000000000001 RSI: 00007f7b47030bf0 RDI: 00000000000000fc RBP: 0000000020000080 R08: 00000000000000fc R09: 0000000000000000 R10: 000000000000003e R11: 0000000000000293 R12: 0000000000000013 R13: 0000000000000661 R14: 00000000006fc9b8 R15: 0000000000000003