============================================ WARNING: possible recursive locking detected 4.17.0-rc1+ #8 Not tainted __should_failslab+0x124/0x180 mm/failslab.c:32 -------------------------------------------- should_failslab+0x9/0x14 mm/slab_common.c:1522 syz-executor2/27827 is trying to acquire lock: slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc_trace+0x4b/0x780 mm/slab.c:3618 00000000c69f951a ( rtnl_mutex kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] sctp_add_bind_addr+0xf9/0x4a0 net/sctp/bind_addr.c:159 ){+.+.} , at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 but task is already holding lock: 00000000c69f951a ( rtnl_mutex ){+.+.} , at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 sctp_copy_local_addr_list+0x499/0x690 net/sctp/protocol.c:180 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock( rtnl_mutex ); lock(rtnl_mutex sctp_copy_one_addr+0x5d/0x170 net/sctp/bind_addr.c:449 ); *** DEADLOCK *** May be due to missing lock nesting notation sctp_bind_addr_copy+0x16b/0x45b net/sctp/bind_addr.c:71 2 locks held by syz-executor2/27827: #0: 00000000c69f951a ( rtnl_mutex ){+.+.}, at: rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 sctp_assoc_set_bind_addr_from_ep+0x165/0x1c0 net/sctp/associola.c:1578 #1: __sctp_connect+0x6c6/0xe30 net/sctp/socket.c:1217 00000000769b2868 ( ipvs->sync_mutex ){+.+.} , at: do_ip_vs_set_ctl+0x562/0x1d30 net/netfilter/ipvs/ip_vs_ctl.c:2388 stack backtrace: sctp_connect+0xbf/0x100 net/sctp/socket.c:4418 inet_dgram_connect+0x154/0x2e0 net/ipv4/af_inet.c:571 __sys_connect+0x37d/0x4c0 net/socket.c:1665 __do_sys_connect net/socket.c:1676 [inline] __se_sys_connect net/socket.c:1673 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1673 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455379 RSP: 002b:00007f1395916c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f13959176d4 RCX: 0000000000455379 RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015 R13: 000000000000005a R14: 00000000006f3910 R15: 000000000000000f CPU: 1 PID: 27827 Comm: syz-executor2 Not tainted 4.17.0-rc1+ #8 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_deadlock_bug kernel/locking/lockdep.c:1761 [inline] check_deadlock kernel/locking/lockdep.c:1805 [inline] validate_chain kernel/locking/lockdep.c:2401 [inline] __lock_acquire.cold.62+0x18c/0x55b kernel/locking/lockdep.c:3431 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16d/0x17f0 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 ip_mc_drop_socket+0x8f/0x270 net/ipv4/igmp.c:2643 inet_release+0x4e/0x1f0 net/ipv4/af_inet.c:413 sock_release+0x96/0x1b0 net/socket.c:594 start_sync_thread+0xdc3/0x2d40 net/netfilter/ipvs/ip_vs_sync.c:1924 do_ip_vs_set_ctl+0x59c/0x1d30 net/netfilter/ipvs/ip_vs_ctl.c:2389 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x7d/0xd0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1253 tcp_setsockopt+0x93/0xe0 net/ipv4/tcp.c:2888 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3039 __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 RIP: 0033:0x455379 RSP: 002b:00007f923838cc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f923838d6d4 RCX: 0000000000455379 RDX: 000000000000048b RSI: 0000000000000000 RDI: 0000000000000015 RBP: 000000000072bea0 R08: 0000000000000018 R09: 0000000000000000 R10: 0000000020000080 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000529 R14: 00000000006fac78 R15: 0000000000000000 CPU: 0 PID: 27848 Comm: syz-executor1 Not tainted 4.17.0-rc1+ #8 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_trace+0x4b/0x780 mm/slab.c:3618 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] sctp_add_bind_addr+0xf9/0x4a0 net/sctp/bind_addr.c:159 sctp_copy_local_addr_list+0x499/0x690 net/sctp/protocol.c:180 sctp_copy_one_addr+0x5d/0x170 net/sctp/bind_addr.c:449 sctp_bind_addr_copy+0x16b/0x45b net/sctp/bind_addr.c:71 sctp_assoc_set_bind_addr_from_ep+0x165/0x1c0 net/sctp/associola.c:1578 __sctp_connect+0x6c6/0xe30 net/sctp/socket.c:1217 sctp_connect+0xbf/0x100 net/sctp/socket.c:4418 inet_dgram_connect+0x154/0x2e0 net/ipv4/af_inet.c:571 __sys_connect+0x37d/0x4c0 net/socket.c:1665 __do_sys_connect net/socket.c:1676 [inline] __se_sys_connect net/socket.c:1673 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1673 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455379 RSP: 002b:00007f1395916c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f13959176d4 RCX: 0000000000455379 RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015 R13: 000000000000005a R14: 00000000006f3910 R15: 0000000000000010 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 27863 Comm: syz-executor1 Not tainted 4.17.0-rc1+ #8 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_trace+0x4b/0x780 mm/slab.c:3618 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] sctp_add_bind_addr+0xf9/0x4a0 net/sctp/bind_addr.c:159 sctp_copy_local_addr_list+0x499/0x690 net/sctp/protocol.c:180 sctp_copy_one_addr+0x5d/0x170 net/sctp/bind_addr.c:449 sctp_bind_addr_copy+0x16b/0x45b net/sctp/bind_addr.c:71 sctp_assoc_set_bind_addr_from_ep+0x165/0x1c0 net/sctp/associola.c:1578 __sctp_connect+0x6c6/0xe30 net/sctp/socket.c:1217 sctp_connect+0xbf/0x100 net/sctp/socket.c:4418 inet_dgram_connect+0x154/0x2e0 net/ipv4/af_inet.c:571 __sys_connect+0x37d/0x4c0 net/socket.c:1665 __do_sys_connect net/socket.c:1676 [inline] __se_sys_connect net/socket.c:1673 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1673 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455379 RSP: 002b:00007f1395916c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f13959176d4 RCX: 0000000000455379 RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015 R13: 000000000000005a R14: 00000000006f3910 R15: 0000000000000011 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 27883 Comm: syz-executor1 Not tainted 4.17.0-rc1+ #8 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_trace+0x4b/0x780 mm/slab.c:3618 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] sctp_add_bind_addr+0xf9/0x4a0 net/sctp/bind_addr.c:159 sctp_copy_local_addr_list+0x499/0x690 net/sctp/protocol.c:180 sctp_copy_one_addr+0x5d/0x170 net/sctp/bind_addr.c:449 sctp_bind_addr_copy+0x16b/0x45b net/sctp/bind_addr.c:71 sctp_assoc_set_bind_addr_from_ep+0x165/0x1c0 net/sctp/associola.c:1578 __sctp_connect+0x6c6/0xe30 net/sctp/socket.c:1217 sctp_connect+0xbf/0x100 net/sctp/socket.c:4418 inet_dgram_connect+0x154/0x2e0 net/ipv4/af_inet.c:571 __sys_connect+0x37d/0x4c0 net/socket.c:1665 __do_sys_connect net/socket.c:1676 [inline] __se_sys_connect net/socket.c:1673 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1673 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455379 RSP: 002b:00007f1395916c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f13959176d4 RCX: 0000000000455379 RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015 R13: 000000000000005a R14: 00000000006f3910 R15: 0000000000000012