netlink: 5 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor3'. ====================================================== WARNING: possible circular locking dependency detected 4.14.0-rc4+ #80 Not tainted ------------------------------------------------------ kworker/u4:6/3249 is trying to acquire lock: ((&(&cp->cp_send_w)->work)){+.+.}, at: [] flush_work+0x99/0x8f0 kernel/workqueue.c:2883 but task is already holding lock: (k-sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1462 [inline] (k-sk_lock-AF_INET){+.+.}, at: [] rds_tcp_reset_callbacks+0x1dc/0x580 net/rds/tcp.c:165 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (k-sk_lock-AF_INET){+.+.}: check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x328f/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 lock_sock_nested+0xc2/0x110 net/core/sock.c:2767 lock_sock include/net/sock.h:1462 [inline] do_tcp_setsockopt.isra.36+0x142/0x2000 net/ipv4/tcp.c:2585 tcp_setsockopt+0xb0/0xd0 net/ipv4/tcp.c:2854 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2965 kernel_setsockopt+0x100/0x1c0 net/socket.c:3376 rds_tcp_cork net/rds/tcp_send.c:43 [inline] rds_tcp_xmit_path_prepare+0xe9/0x140 net/rds/tcp_send.c:50 rds_send_xmit+0x355/0x22d0 net/rds/send.c:187 rds_send_worker+0x115/0x2a0 net/rds/threads.c:189 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 -> #0 ((&(&cp->cp_send_w)->work)){+.+.}: check_prev_add+0x865/0x1520 kernel/locking/lockdep.c:1894 check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x328f/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 flush_work+0xcc/0x8f0 kernel/workqueue.c:2886 __cancel_work_timer+0x30a/0x7e0 kernel/workqueue.c:2961 cancel_delayed_work_sync+0x1a/0x20 kernel/workqueue.c:3081 rds_tcp_reset_callbacks+0x1e8/0x580 net/rds/tcp.c:167 dccp_close: ABORT with 173 bytes unread rds_tcp_accept_one+0x881/0xd70 net/rds/tcp_listen.c:186 rds_tcp_accept_worker+0x57/0x80 net/rds/tcp.c:406 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(k-sk_lock-AF_INET); lock((&(&cp->cp_send_w)->work)); lock(k-sk_lock-AF_INET); lock((&(&cp->cp_send_w)->work)); *** DEADLOCK *** 4 locks held by kworker/u4:6/3249: #0: ("%s""krdsd"){+.+.}, at: [] __write_once_size include/linux/compiler.h:305 [inline] #0: ("%s""krdsd"){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:33 [inline] #0: ("%s""krdsd"){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:56 [inline] #0: ("%s""krdsd"){+.+.}, at: [] set_work_data kernel/workqueue.c:617 [inline] #0: ("%s""krdsd"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ("%s""krdsd"){+.+.}, at: [] process_one_work+0xad4/0x1bd0 kernel/workqueue.c:2090 #1: ((&rtn->rds_tcp_accept_w)){+.+.}, at: [] process_one_work+0xb2c/0x1bd0 kernel/workqueue.c:2094 #2: (&tc->t_conn_path_lock){+.+.}, at: [] rds_tcp_accept_one+0x739/0xd70 net/rds/tcp_listen.c:178 #3: (k-sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1462 [inline] #3: (k-sk_lock-AF_INET){+.+.}, at: [] rds_tcp_reset_callbacks+0x1dc/0x580 net/rds/tcp.c:165 stack backtrace: CPU: 0 PID: 3249 Comm: kworker/u4:6 Not tainted 4.14.0-rc4+ #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_tcp_accept_worker Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_circular_bug+0x503/0x710 kernel/locking/lockdep.c:1259 check_prev_add+0x865/0x1520 kernel/locking/lockdep.c:1894 check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x328f/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 flush_work+0xcc/0x8f0 kernel/workqueue.c:2886 __cancel_work_timer+0x30a/0x7e0 kernel/workqueue.c:2961 cancel_delayed_work_sync+0x1a/0x20 kernel/workqueue.c:3081 rds_tcp_reset_callbacks+0x1e8/0x580 net/rds/tcp.c:167 rds_tcp_accept_one+0x881/0xd70 net/rds/tcp_listen.c:186 rds_tcp_accept_worker+0x57/0x80 net/rds/tcp.c:406 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18876 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18891 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18912 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18920 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18957 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18970 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=18990 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=19000 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=19088 comm=syz-executor6 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=19102 comm=syz-executor6 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 20866 Comm: syz-executor4 Not tainted 4.14.0-rc4+ #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc+0x47/0x760 mm/slab.c:3559 inet_bind_bucket_create+0x7a/0x350 net/ipv4/inet_hashtables.c:69 __inet_hash_connect+0x666/0xea0 net/ipv4/inet_hashtables.c:611 inet6_hash_connect+0x62/0xc0 net/ipv6/inet6_hashtables.c:266 tcp_v6_connect+0x139d/0x22a0 net/ipv6/tcp_ipv6.c:283 __inet_stream_connect+0x2d4/0xf00 net/ipv4/af_inet.c:619 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:683 SYSC_connect+0x20a/0x480 net/socket.c:1642 SyS_connect+0x24/0x30 net/socket.c:1623 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x4520a9 RSP: 002b:00007fa8da25cc08 EFLAGS: 00000216 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 RDX: 000000000000001c RSI: 00000000207b8fe4 RDI: 0000000000000005 RBP: 00007fa8da25ca10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b6c37 R13: 00007fa8da25cb48 R14: 00000000004b6c47 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 20933 Comm: syz-executor4 Not tainted 4.14.0-rc4+ #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node+0x56/0x760 mm/slab.c:3649 __alloc_skb+0xf1/0x780 net/core/skbuff.c:194 alloc_skb_fclone include/linux/skbuff.h:1027 [inline] sk_stream_alloc_skb+0x11d/0x900 net/ipv4/tcp.c:870 tcp_connect+0x1141/0x3f50 net/ipv4/tcp_output.c:3456 tcp_v6_connect+0x1d89/0x22a0 net/ipv6/tcp_ipv6.c:305 __inet_stream_connect+0x2d4/0xf00 net/ipv4/af_inet.c:619 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:683 SYSC_connect+0x20a/0x480 net/socket.c:1642 SyS_connect+0x24/0x30 net/socket.c:1623 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x4520a9 RSP: 002b:00007fa8da25cc08 EFLAGS: 00000216 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 RDX: 000000000000001c RSI: 00000000207b8fe4 RDI: 0000000000000005 RBP: 00007fa8da25ca10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b6c37 R13: 00007fa8da25cb48 R14: 00000000004b6c47 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 20984 Comm: syz-executor7 Not tainted 4.14.0-rc4+ #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x4b/0x750 mm/slab.c:3625 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:666 [inline] sctp_association_new+0x114/0x21e0 net/sctp/associola.c:309 __sctp_connect+0x5e7/0xc80 net/sctp/socket.c:1172 sctp_connect+0xb4/0xf0 net/sctp/socket.c:4209 inet_dgram_connect+0x16b/0x1f0 net/ipv4/af_inet.c:541 SYSC_connect+0x20a/0x480 net/socket.c:1642 SyS_connect+0x24/0x30 net/socket.c:1623 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x4520a9 RSP: 002b:00007ff1ab863c08 EFLAGS: 00000216 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 RDX: 0000000000000010 RSI: 0000000020305000 RDI: 0000000000000005 RBP: 00007ff1ab863a10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b6c37 R13: 00007ff1ab863b48 R14: 00000000004b6c47 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 21057 Comm: syz-executor7 Not tainted 4.14.0-rc4+ #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x8c0/0xa40 lib/fault-inject.c:149 should_failslab+0xec/0x120 mm/failslab.c:31 slab_pre_alloc_hook mm/slab.h:422 [inline] slab_alloc mm/slab.c:3383 [inline] __do_kmalloc mm/slab.c:3723 [inline] __kmalloc+0x63/0x760 mm/slab.c:3734 kmalloc_array include/linux/slab.h:612 [inline] sctp_stream_alloc_out+0x2f/0x1a0 net/sctp/stream.c:96 sctp_stream_init+0xe6/0x340 net/sctp/stream.c:159 sctp_association_init net/sctp/associola.c:249 [inline] sctp_association_new+0x129f/0x21e0 net/sctp/associola.c:313 __sctp_connect+0x5e7/0xc80 net/sctp/socket.c:1172 sctp_connect+0xb4/0xf0 net/sctp/socket.c:4209 inet_dgram_connect+0x16b/0x1f0 net/ipv4/af_inet.c:541 SYSC_connect+0x20a/0x480 net/socket.c:1642 SyS_connect+0x24/0x30 net/socket.c:1623 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x4520a9 RSP: 002b:00007ff1ab863c08 EFLAGS: 00000216 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 RDX: 0000000000000010 RSI: 0000000020305000 RDI: 0000000000000005 RBP: 00007ff1ab863a10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b6c37 R13: 00007ff1ab863b48 R14: 00000000004b6c47 R15: 0000000000000000