Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable ============================= WARNING: suspicious RCU usage 4.15.0+ #220 Not tainted ip_tunnel: non-ECT from 0.0.0.0 with TOS=0x1 ----------------------------- ./include/net/inet_sock.h:136 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 ip_tunnel: non-ECT from 0.0.0.0 with TOS=0x1 1 lock held by syz-executor2/9822: #0: (sk_lock-AF_INET6){+.+.}, at: [<000000003f4d1522>] lock_sock include/net/sock.h:1461 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000003f4d1522>] do_ipv6_setsockopt.isra.8+0x23d/0x39d0 net/ipv6/ipv6_sockglue.c:167 stack backtrace: CPU: 1 PID: 9822 Comm: syz-executor2 Not tainted 4.15.0+ #220 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4592 ireq_opt_deref include/net/inet_sock.h:135 [inline] inet_csk_route_req+0x824/0xca0 net/ipv4/inet_connection_sock.c:544 dccp_v4_send_response+0xa7/0x650 net/dccp/ipv4.c:485 dccp_v4_conn_request+0x9ee/0x11b0 net/dccp/ipv4.c:633 dccp_v6_conn_request+0xd30/0x1410 net/dccp/ipv6.c:317 dccp_rcv_state_process+0x574/0x1620 net/dccp/input.c:612 dccp_v4_do_rcv+0xf1/0x160 net/dccp/ipv4.c:682 dccp_v6_do_rcv+0x86a/0xa70 net/dccp/ipv6.c:578 sk_backlog_rcv include/net/sock.h:908 [inline] __release_sock+0x124/0x360 net/core/sock.c:2274 release_sock+0xa4/0x2a0 net/core/sock.c:2789 do_ipv6_setsockopt.isra.8+0x50a/0x39d0 net/ipv6/ipv6_sockglue.c:898 ipv6_setsockopt+0xd7/0x150 net/ipv6/ipv6_sockglue.c:922 dccp_setsockopt+0x85/0xd0 net/dccp/proto.c:576 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007ff91b5bac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000020 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 00000000000005c5 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020163fe0 R11: 0000000000000212 R12: 00000000006f7b18 R13: 00000000ffffffff R14: 00007ff91b5bb6d4 R15: 0000000000000000 ============================= WARNING: suspicious RCU usage 4.15.0+ #220 Not tainted ----------------------------- ./include/net/inet_sock.h:136 suspicious rcu_dereference_check() usage! other info that might help us debug this: Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable rcu_scheduler_active = 2, debug_locks = 1 1 lock held by syz-executor2/9822: #0: (sk_lock-AF_INET6){+.+.}, at: [<000000003f4d1522>] lock_sock include/net/sock.h:1461 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000003f4d1522>] do_ipv6_setsockopt.isra.8+0x23d/0x39d0 net/ipv6/ipv6_sockglue.c:167 stack backtrace: CPU: 1 PID: 9822 Comm: syz-executor2 Not tainted 4.15.0+ #220 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4592 ireq_opt_deref include/net/inet_sock.h:135 [inline] dccp_v4_send_response+0x4b6/0x650 net/dccp/ipv4.c:496 dccp_v4_conn_request+0x9ee/0x11b0 net/dccp/ipv4.c:633 dccp_v6_conn_request+0xd30/0x1410 net/dccp/ipv6.c:317 dccp_rcv_state_process+0x574/0x1620 net/dccp/input.c:612 dccp_v4_do_rcv+0xf1/0x160 net/dccp/ipv4.c:682 dccp_v6_do_rcv+0x86a/0xa70 net/dccp/ipv6.c:578 sk_backlog_rcv include/net/sock.h:908 [inline] __release_sock+0x124/0x360 net/core/sock.c:2274 release_sock+0xa4/0x2a0 net/core/sock.c:2789 do_ipv6_setsockopt.isra.8+0x50a/0x39d0 net/ipv6/ipv6_sockglue.c:898 ipv6_setsockopt+0xd7/0x150 net/ipv6/ipv6_sockglue.c:922 dccp_setsockopt+0x85/0xd0 net/dccp/proto.c:576 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007ff91b5bac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000020 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 00000000000005c5 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020163fe0 R11: 0000000000000212 R12: 00000000006f7b18 R13: 00000000ffffffff R14: 00007ff91b5bb6d4 R15: 0000000000000000 netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. audit: type=1400 audit(1517525310.627:51): avc: denied { getattr } for pid=9893 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. sctp: [Deprecated]: syz-executor2 (pid 9965) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor3 (pid 9972) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor3 (pid 9972) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor2 (pid 9989) Use of int in maxseg socket option. Use struct sctp_assoc_value instead netlink: 'syz-executor3': attribute type 1 has an invalid length. netlink: 4 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor7'. audit: type=1400 audit(1517525311.994:52): avc: denied { bind } for pid=10270 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 netlink: 'syz-executor5': attribute type 1 has an invalid length. netlink: 'syz-executor5': attribute type 1 has an invalid length. openvswitch: netlink: Flow actions attr not present in new flow. audit: type=1400 audit(1517525312.867:53): avc: denied { shutdown } for pid=10533 comm="syz-executor2" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. dst_release: dst:00000000c1d4742d refcnt:-1 audit: type=1400 audit(1517525313.325:54): avc: denied { connect } for pid=10656 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 netlink: 11 bytes leftover after parsing attributes in process `syz-executor2'. SELinux: unrecognized netlink message: protocol=6 nlmsg_type=41 sclass=netlink_xfrm_socket pig=10795 comm=syz-executor2 ipt_CLUSTERIP: no such interface syz sctp: [Deprecated]: syz-executor3 (pid 10798) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor3 (pid 10798) Use of int in maxseg socket option. Use struct sctp_assoc_value instead ipt_CLUSTERIP: no such interface syz SELinux: unrecognized netlink message: protocol=6 nlmsg_type=41 sclass=netlink_xfrm_socket pig=10813 comm=syz-executor2 sctp: [Deprecated]: syz-executor1 (pid 10850) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. sctp: [Deprecated]: syz-executor3 (pid 10862) Use of int in max_burst socket option. Use struct sctp_assoc_value instead netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. sctp: [Deprecated]: syz-executor3 (pid 10877) Use of int in max_burst socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor1 (pid 10864) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2324 sclass=netlink_route_socket pig=10937 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2324 sclass=netlink_route_socket pig=10937 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=8104 sclass=netlink_route_socket pig=11072 comm=syz-executor6 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=8104 sclass=netlink_route_socket pig=11076 comm=syz-executor6 netlink: 'syz-executor6': attribute type 21 has an invalid length. netlink: 'syz-executor6': attribute type 21 has an invalid length. sctp: [Deprecated]: syz-executor5 (pid 11197) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor5 (pid 11197) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor5 (pid 11202) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor5 (pid 11197) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead SELinux: unrecognized netlink message: protocol=4 nlmsg_type=25 sclass=netlink_tcpdiag_socket pig=11215 comm=syz-executor4 netlink: 'syz-executor6': attribute type 21 has an invalid length. netlink: 'syz-executor6': attribute type 2 has an invalid length. netlink: 'syz-executor6': attribute type 21 has an invalid length. netlink: 'syz-executor6': attribute type 2 has an invalid length. audit: type=1400 audit(1517525315.622:55): avc: denied { map } for pid=11304 comm="syz-executor5" path="socket:[23213]" dev="sockfs" ino=23213 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=packet_socket permissive=1 x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 sctp: [Deprecated]: syz-executor6 (pid 11384) Use of int in maxseg socket option. Use struct sctp_assoc_value instead Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable sctp: [Deprecated]: syz-executor6 (pid 11384) Use of int in maxseg socket option. Use struct sctp_assoc_value instead x_tables: ip6_tables: TCPMSS target: only valid for protocol 6 Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable netlink: 'syz-executor3': attribute type 1 has an invalid length. rdma_op 00000000ead13cf3 conn xmit_rdma (null) audit: type=1400 audit(1517525316.385:56): avc: denied { map } for pid=11526 comm="syz-executor5" path="socket:[23353]" dev="sockfs" ino=23353 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=rawip_socket permissive=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20026. Sending cookies. Check SNMP counters. validate_nla: 6 callbacks suppressed netlink: 'syz-executor7': attribute type 3 has an invalid length. netlink: 'syz-executor4': attribute type 21 has an invalid length. netlink: 'syz-executor0': attribute type 20 has an invalid length. A link change request failed with some changes committed already. Interface lo may have been left with an inconsistent configuration, please check. netlink: 'syz-executor1': attribute type 21 has an invalid length. netlink: 'syz-executor1': attribute type 2 has an invalid length. netlink: 'syz-executor0': attribute type 20 has an invalid length. netlink: 'syz-executor1': attribute type 21 has an invalid length. netlink: 'syz-executor1': attribute type 2 has an invalid length. xt_hashlimit: Unknown mode mask 200, kernel too old? xt_hashlimit: Unknown mode mask 200, kernel too old? xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets audit: type=1400 audit(1517525317.963:57): avc: denied { map } for pid=11961 comm="syz-executor4" path="socket:[24703]" dev="sockfs" ino=24703 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dccp_socket permissive=1 audit: type=1400 audit(1517525318.165:58): avc: denied { map } for pid=12034 comm="syz-executor2" path="socket:[24742]" dev="sockfs" ino=24742 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=udp_socket permissive=1 netlink: 'syz-executor7': attribute type 3 has an invalid length. netlink: 'syz-executor7': attribute type 3 has an invalid length. Trying to set illegal importance in message Trying to set illegal importance in message audit: type=1400 audit(1517525318.819:59): avc: denied { setopt } for pid=12231 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 sctp: [Deprecated]: syz-executor0 (pid 12330) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor0 (pid 12330) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead A link change request failed with some changes committed already. Interface lo may have been left with an inconsistent configuration, please check.