/openbmc/linux/net/ipv6/ |
H A D | ipv6_sockglue.c | 1052 if (copy_to_sockptr(optval, hdr, len)) in ipv6_getsockopt_sticky() 1078 if (copy_to_sockptr(optlen, &len, sizeof(int)) || in ipv6_get_msfilter() 1079 copy_to_sockptr(optval, &gsf, size0)) in ipv6_get_msfilter() 1116 if (copy_to_sockptr(optlen, &len, sizeof(int)) || in compat_ipv6_get_msfilter() 1210 return copy_to_sockptr(optlen, &len, sizeof(int)); in do_ipv6_getsockopt() 1324 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ipv6_getsockopt() 1326 if (copy_to_sockptr(optval, &mtuinfo, len)) in do_ipv6_getsockopt() 1418 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ipv6_getsockopt() 1420 if (copy_to_sockptr(optval, &freq, len)) in do_ipv6_getsockopt() 1472 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ipv6_getsockopt() [all …]
|
H A D | ip6mr.c | 1872 if (copy_to_sockptr(optlen, &olr, sizeof(int))) in ip6_mroute_getsockopt() 1874 if (copy_to_sockptr(optval, &val, olr)) in ip6_mroute_getsockopt()
|
/openbmc/linux/net/ipv4/ |
H A D | ip_sockglue.c | 1474 copy_to_sockptr(optval, &gsf, size0)) in ip_get_mcast_msfilter() 1505 if (copy_to_sockptr(optlen, &len, sizeof(int)) || in compat_ip_get_mcast_msfilter() 1627 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ip_getsockopt() 1629 if (copy_to_sockptr(optval, opt->__data, len)) in do_ip_getsockopt() 1667 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ip_getsockopt() 1669 if (copy_to_sockptr(optval, &addr, len)) in do_ip_getsockopt() 1731 return copy_to_sockptr(optlen, &len, sizeof(int)); in do_ip_getsockopt() 1748 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ip_getsockopt() 1750 if (copy_to_sockptr(optval, &ucval, 1)) in do_ip_getsockopt() 1754 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_ip_getsockopt() [all …]
|
H A D | tcp.c | 4043 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_tcp_getsockopt() 4045 if (copy_to_sockptr(optval, &info, len)) in do_tcp_getsockopt() 4063 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_tcp_getsockopt() 4065 if (copy_to_sockptr(optval, &info, len)) in do_tcp_getsockopt() 4077 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_tcp_getsockopt() 4093 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_tcp_getsockopt() 4111 if (copy_to_sockptr(optval, key, len)) in do_tcp_getsockopt() 4152 if (copy_to_sockptr(optval, &opt, len)) in do_tcp_getsockopt() 4291 if (!err && copy_to_sockptr(optval, &zc, len)) in do_tcp_getsockopt() 4300 if (copy_to_sockptr(optlen, &len, sizeof(int))) in do_tcp_getsockopt() [all …]
|
H A D | igmp.c | 2581 if (copy_to_sockptr(optlen, &msf_size, sizeof(int)) || in ip_mc_msfget() 2582 copy_to_sockptr(optval, msf, IP_MSFILTER_SIZE(0))) { in ip_mc_msfget()
|
H A D | ipmr.c | 1611 if (copy_to_sockptr(optlen, &olr, sizeof(int))) in ip_mroute_getsockopt() 1613 if (copy_to_sockptr(optval, &val, olr)) in ip_mroute_getsockopt()
|
/openbmc/linux/include/linux/ |
H A D | sockptr.h | 94 static inline int copy_to_sockptr(sockptr_t dst, const void *src, size_t size) in copy_to_sockptr() function
|
/openbmc/linux/net/core/ |
H A D | sock.c | 748 if (copy_to_sockptr(optval, devname, len)) in sock_getbindtodevice() 753 if (copy_to_sockptr(optlen, &len, sizeof(int))) in sock_getbindtodevice() 1773 if (copy_to_sockptr(optval, &peercred, len)) in sk_getsockopt() 1799 if (copy_to_sockptr(optval, &pidfd, len) || in sk_getsockopt() 1800 copy_to_sockptr(optlen, &len, sizeof(int))) { in sk_getsockopt() 1824 return copy_to_sockptr(optlen, &len, sizeof(int)) ? -EFAULT : -ERANGE; in sk_getsockopt() 1844 if (copy_to_sockptr(optval, &address, len)) in sk_getsockopt() 1944 if (copy_to_sockptr(optval, &meminfo, len)) in sk_getsockopt() 2014 if (copy_to_sockptr(optval, &v, len)) in sk_getsockopt() 2017 if (copy_to_sockptr(optlen, &len, sizeof(int))) in sk_getsockopt()
|
H A D | filter.c | 11118 if (copy_to_sockptr(optval, fprog->filter, bpf_classic_proglen(fprog))) in sk_get_filter()
|
/openbmc/linux/security/apparmor/ |
H A D | lsm.c | 1189 if (copy_to_sockptr(optval, name, slen)) in apparmor_socket_getpeersec_stream() 1192 if (copy_to_sockptr(optlen, &slen, sizeof(slen))) in apparmor_socket_getpeersec_stream()
|
/openbmc/linux/kernel/bpf/ |
H A D | cgroup.c | 1979 copy_to_sockptr(optval, ctx.optval, ctx.optlen)) { in __cgroup_bpf_run_filter_getsockopt() 1983 if (copy_to_sockptr(optlen, &ctx.optlen, sizeof(ctx.optlen))) { in __cgroup_bpf_run_filter_getsockopt()
|
/openbmc/linux/security/smack/ |
H A D | smack_lsm.c | 4185 if (copy_to_sockptr(optval, rcp, slen)) in smack_socket_getpeersec_stream() 4188 if (copy_to_sockptr(optlen, &slen, sizeof(slen))) in smack_socket_getpeersec_stream()
|
/openbmc/linux/security/selinux/ |
H A D | hooks.c | 5168 if (copy_to_sockptr(optval, scontext, scontext_len)) in selinux_socket_getpeersec_stream() 5171 if (copy_to_sockptr(optlen, &scontext_len, sizeof(scontext_len))) in selinux_socket_getpeersec_stream()
|