Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable ============================= WARNING: suspicious RCU usage 4.15.0-rc8+ #197 Not tainted ----------------------------- ./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 1 lock held by syz-executor0/7974: #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b1941e65>] lock_sock include/net/sock.h:1463 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b1941e65>] do_ipv6_setsockopt.isra.9+0x23d/0x39a0 net/ipv6/ipv6_sockglue.c:167 stack backtrace: CPU: 0 PID: 7974 Comm: syz-executor0 Not tainted 4.15.0-rc8+ #197 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:4585 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/0x1350 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+0x823/0x9c0 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.9+0x50a/0x39a0 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:1823 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1802 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452e99 RSP: 002b:00007f5b45c9bc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f5b45c9c700 RCX: 0000000000452e99 RDX: 0000000000000020 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 0000000000a2f870 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020030fe0 R11: 0000000000000212 R12: 0000000000000000 R13: 0000000000a2f7ef R14: 00007f5b45c9c9c0 R15: 0000000000000004 ============================= WARNING: suspicious RCU usage 4.15.0-rc8+ #197 Not tainted ----------------------------- ./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 1 lock held by syz-executor0/7974: #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b1941e65>] lock_sock include/net/sock.h:1463 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000b1941e65>] do_ipv6_setsockopt.isra.9+0x23d/0x39a0 net/ipv6/ipv6_sockglue.c:167 stack backtrace: CPU: 0 PID: 7974 Comm: syz-executor0 Not tainted 4.15.0-rc8+ #197 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:4585 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/0x1350 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+0x823/0x9c0 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.9+0x50a/0x39a0 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:1823 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1802 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452e99 RSP: 002b:00007f5b45c9bc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f5b45c9c700 RCX: 0000000000452e99 RDX: 0000000000000020 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 0000000000a2f870 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020030fe0 R11: 0000000000000212 R12: 0000000000000000 R13: 0000000000a2f7ef R14: 00007f5b45c9c9c0 R15: 0000000000000004 dccp_close: ABORT with 2 bytes unread audit: type=1400 audit(1516366086.700:41): avc: denied { getattr } for pid=8070 comm="syz-executor7" 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 l2tp_ppp: tunl 59: set debug=f55d40e sock: process `syz-executor6' is using obsolete setsockopt SO_BSDCOMPAT SELinux: unrecognized netlink message: protocol=9 nlmsg_type=0 sclass=netlink_audit_socket pig=8371 comm=syz-executor1 audit: type=1400 audit(1516366087.721:42): avc: denied { create } for pid=8364 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_connector_socket permissive=1 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=0 sclass=netlink_audit_socket pig=8381 comm=syz-executor1 dccp_xmit_packet: Payload too large (65423) for featneg. dccp_close: ABORT with 65647 bytes unread SELinux: unrecognized netlink message: protocol=0 nlmsg_type=53368 sclass=netlink_route_socket pig=8542 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=53368 sclass=netlink_route_socket pig=8552 comm=syz-executor3 sctp: [Deprecated]: syz-executor6 (pid 8580) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead openvswitch: netlink: Key type 1023 is out of range max 29 openvswitch: netlink: Key type 1023 is out of range max 29 netlink: 'syz-executor0': attribute type 17 has an invalid length. netlink: 'syz-executor0': attribute type 17 has an invalid length. audit: type=1400 audit(1516366089.458:43): avc: denied { create } for pid=8916 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_fib_lookup_socket permissive=1 audit: type=1400 audit(1516366089.460:44): avc: denied { setopt } for pid=8916 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_fib_lookup_socket permissive=1 l2tp_core: tunl 4: fd 19 wrong protocol, got 1, expected 17 dccp_invalid_packet: P.Data Offset(66) too large l2tp_core: tunl 4: fd 22 wrong protocol, got 1, expected 17 RDS: rds_bind could not find a transport for 255.255.255.255, load rds_tcp or rds_rdma? insert transport fail, errno -17 RDS: rds_bind could not find a transport for 255.255.255.255, load rds_tcp or rds_rdma? DRBG: could not allocate digest TFM handle: hmac(sha384) sctp: [Deprecated]: syz-executor2 (pid 9207) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sock: sock_set_timeout: `syz-executor3' (pid 9211) tries to set negative timeout sock: sock_set_timeout: `syz-executor3' (pid 9215) tries to set negative timeout sctp: [Deprecated]: syz-executor2 (pid 9231) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead audit: type=1400 audit(1516366090.418:45): avc: denied { setopt } for pid=9243 comm="syz-executor7" 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: 'syz-executor5': attribute type 3 has an invalid length. netlink: 'syz-executor5': attribute type 3 has an invalid length. sctp: [Deprecated]: syz-executor5 (pid 9522) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor5 (pid 9608) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead can: request_module (can-proto-6) failed. sctp: [Deprecated]: syz-executor5 (pid 9608) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead can: request_module (can-proto-6) failed. audit: type=1400 audit(1516366091.916:46): avc: denied { create } for pid=9662 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_rdma_socket permissive=1 openvswitch: netlink: Message has 4 unknown bytes. openvswitch: netlink: Message has 4 unknown bytes. dccp_invalid_packet: invalid packet type audit: type=1400 audit(1516366093.990:47): avc: denied { map } for pid=10213 comm="syz-executor4" path="socket:[20009]" dev="sockfs" ino=20009 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=1 netlink: 'syz-executor6': attribute type 2 has an invalid length. netlink: 'syz-executor6': attribute type 2 has an invalid length. audit: type=1400 audit(1516366094.546:48): avc: denied { accept } for pid=10385 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_netfilter_socket permissive=1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=4 sclass=netlink_route_socket pig=10396 comm=syz-executor7 IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1