/openbmc/linux/include/linux/ |
H A D | sockptr.h | 57 static inline int copy_from_sockptr(void *dst, sockptr_t src, size_t size) in copy_from_sockptr() function 80 if (copy_from_sockptr(dst, optval, ksize)) in copy_safe_from_sockptr() 105 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr() 118 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr_nul()
|
/openbmc/linux/net/ipv6/ |
H A D | ipv6_sockglue.c | 149 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in copy_group_source_from_sockptr() 157 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr() 256 if (copy_from_sockptr(gf32, optval, optlen)) in compat_ipv6_set_mcast_msfilter() 288 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in ipv6_mcast_join_leave() 308 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in compat_ipv6_mcast_join_leave() 407 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ipv6_setsockopt() 672 if (copy_from_sockptr(&pkt, optval, sizeof(pkt))) { in do_ipv6_setsockopt() 715 if (copy_from_sockptr(opt + 1, optval, optlen)) in do_ipv6_setsockopt() 1067 if (copy_from_sockptr(&gsf, optval, size0)) in ipv6_get_msfilter() 1098 if (copy_from_sockptr(&gf32, optval, size0)) in compat_ipv6_get_msfilter() [all …]
|
H A D | ip6mr.c | 1693 if (copy_from_sockptr(&vif, optval, sizeof(vif))) in ip6_mroute_setsockopt() 1706 if (copy_from_sockptr(&mifi, optval, sizeof(mifi_t))) in ip6_mroute_setsockopt() 1725 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) in ip6_mroute_setsockopt() 1746 if (copy_from_sockptr(&flags, optval, sizeof(flags))) in ip6_mroute_setsockopt() 1763 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt() 1777 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt() 1801 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt() 1865 if (copy_from_sockptr(&olr, optlen, sizeof(int))) in ip6_mroute_getsockopt()
|
H A D | raw.c | 945 if (copy_from_sockptr(&raw6_sk(sk)->filter, optval, optlen)) in rawv6_seticmpfilter() 990 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_rawv6_setsockopt()
|
/openbmc/linux/net/ipv4/ |
H A D | ip_sockglue.c | 708 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in copy_group_source_from_sockptr() 823 if (copy_from_sockptr(gf32, optval, optlen)) in compat_ip_set_mcast_msfilter() 856 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in ip_mcast_join_leave() 878 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in compat_ip_mcast_join_leave() 930 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ip_setsockopt() 1169 if (copy_from_sockptr(&mreq, optval, in do_ip_setsockopt() 1173 if (copy_from_sockptr(&mreq.imr_address, optval, in do_ip_setsockopt() 1230 if (copy_from_sockptr(&mreq, optval, in do_ip_setsockopt() 1462 if (copy_from_sockptr(&gsf, optval, size0)) in ip_get_mcast_msfilter() 1490 if (copy_from_sockptr(&gf32, optval, size0)) in compat_ip_get_mcast_msfilter() [all …]
|
H A D | tcp.c | 3137 if (copy_from_sockptr(&opt, optbuf, sizeof(opt))) in tcp_repair_set_window() 3476 if (copy_from_sockptr(key, optval, optlen)) in do_tcp_setsockopt() 3492 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_tcp_setsockopt() 3985 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() 4037 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() 4055 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() 4074 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() 4084 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() 4103 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() 4137 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt() [all …]
|
H A D | ipmr.c | 1429 if (copy_from_sockptr(&vif, optval, sizeof(vif))) { in ip_mroute_setsockopt() 1457 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) { in ip_mroute_setsockopt() 1475 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt() 1487 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt() 1502 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt() 1524 if (copy_from_sockptr(&uval, optval, sizeof(uval))) { in ip_mroute_setsockopt() 1604 if (copy_from_sockptr(&olr, optlen, sizeof(int))) in ip_mroute_getsockopt()
|
/openbmc/linux/net/can/ |
H A D | raw.c | 560 if (copy_from_sockptr(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt() 619 if (copy_from_sockptr(&err_mask, optval, optlen)) in raw_setsockopt() 662 if (copy_from_sockptr(&ro->loopback, optval, optlen)) in raw_setsockopt() 671 if (copy_from_sockptr(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt() 680 if (copy_from_sockptr(&fd_frames, optval, optlen)) in raw_setsockopt() 694 if (copy_from_sockptr(&ro->xl_frames, optval, optlen)) in raw_setsockopt() 706 if (copy_from_sockptr(&ro->join_filters, optval, optlen)) in raw_setsockopt()
|
H A D | isotp.c | 1386 if (copy_from_sockptr(&so->opt, optval, optlen)) in isotp_setsockopt_locked() 1415 if (copy_from_sockptr(&so->rxfc, optval, optlen)) in isotp_setsockopt_locked() 1423 if (copy_from_sockptr(&so->force_tx_stmin, optval, optlen)) in isotp_setsockopt_locked() 1431 if (copy_from_sockptr(&so->force_rx_stmin, optval, optlen)) in isotp_setsockopt_locked() 1439 if (copy_from_sockptr(&ll, optval, optlen)) in isotp_setsockopt_locked()
|
/openbmc/linux/net/rds/ |
H A D | af_rds.c | 310 if (copy_from_sockptr(&sin, optval, in rds_cancel_sent_to() 318 if (copy_from_sockptr(&sin6, optval, in rds_cancel_sent_to() 337 if (copy_from_sockptr(&value, optval, sizeof(int))) in rds_set_bool_option() 370 if (copy_from_sockptr(&t_type, optval, sizeof(t_type))) in rds_set_transport() 389 if (copy_from_sockptr(&val, optval, sizeof(int))) in rds_enable_recvtstamp() 414 if (copy_from_sockptr(&trace, optval, sizeof(trace))) in rds_recv_track_latency()
|
H A D | rdma.c | 366 if (copy_from_sockptr(&args, optval, sizeof(struct rds_get_mr_args))) in rds_get_mr() 380 if (copy_from_sockptr(&args, optval, in rds_get_mr_for_dest() 408 if (copy_from_sockptr(&args, optval, sizeof(struct rds_free_mr_args))) in rds_free_mr()
|
/openbmc/linux/net/core/ |
H A D | sock.c | 405 if (copy_from_sockptr(&tv32, optval, sizeof(tv32))) in sock_copy_user_timeval() 414 if (copy_from_sockptr(&old_tv, optval, sizeof(old_tv))) in sock_copy_user_timeval() 421 if (copy_from_sockptr(tv, optval, sizeof(*tv))) in sock_copy_user_timeval() 697 if (copy_from_sockptr(devname, optval, optlen)) in sock_setbindtodevice() 1118 if (copy_from_sockptr(&val, optval, sizeof(val))) in sk_setsockopt() 1232 if (copy_from_sockptr(&ling, optval, sizeof(ling))) { in sk_setsockopt() 1270 if (copy_from_sockptr(×tamping, optval, in sk_setsockopt() 1322 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sk_setsockopt() 1343 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sk_setsockopt() 1483 } else if (copy_from_sockptr(&sk_txtime, optval, in sk_setsockopt() [all …]
|
/openbmc/linux/net/packet/ |
H A D | af_packet.c | 1681 if (copy_from_sockptr(&fd, data, len)) in fanout_set_data_ebpf() 3875 if (copy_from_sockptr(&mreq, optval, len)) in packet_setsockopt() 3898 ret = copy_from_sockptr(&req_u.req, optval, in packet_setsockopt() 3906 ret = copy_from_sockptr(&req_u.req3, optval, in packet_setsockopt() 3923 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt() 3935 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt() 3961 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt() 3981 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt() 4000 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt() 4012 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt() [all …]
|
/openbmc/linux/net/mptcp/ |
H A D | sockopt.c | 64 if (copy_from_sockptr(val, optval, sizeof(*val))) in mptcp_get_int_option() 216 if (copy_from_sockptr(×tamping, optval, in mptcp_setsockopt_sol_socket_timestamping() 222 if (copy_from_sockptr(×tamping.flags, optval, sizeof(int))) in mptcp_setsockopt_sol_socket_timestamping() 261 if (copy_from_sockptr(&ling, optval, sizeof(ling))) in mptcp_setsockopt_sol_socket_linger()
|
/openbmc/linux/net/atm/ |
H A D | svc.c | 472 if (copy_from_sockptr(&vcc->sap, optval, optlen)) { in svc_setsockopt() 483 if (copy_from_sockptr(&value, optval, sizeof(int))) { in svc_setsockopt()
|
H A D | common.c | 763 if (copy_from_sockptr(&qos, optval, sizeof(qos))) in vcc_setsockopt() 777 if (copy_from_sockptr(&value, optval, sizeof(value))) in vcc_setsockopt()
|
/openbmc/linux/net/tls/ |
H A D | tls_main.c | 613 rc = copy_from_sockptr(crypto_info, optval, sizeof(*crypto_info)); in do_tls_setsockopt_conf() 724 if (copy_from_sockptr(&value, optval, sizeof(value))) in do_tls_setsockopt_tx_zc() 746 rc = copy_from_sockptr(&val, optval, sizeof(val)); in do_tls_setsockopt_no_pad()
|
/openbmc/linux/net/rxrpc/ |
H A D | af_rxrpc.c | 664 ret = copy_from_sockptr(&min_sec_level, optval, in rxrpc_setsockopt() 683 if (copy_from_sockptr(service_upgrade, optval, in rxrpc_setsockopt()
|
/openbmc/linux/net/caif/ |
H A D | caif_socket.c | 680 if (copy_from_sockptr(&linksel, ov, sizeof(int))) in setsockopt() 694 copy_from_sockptr(&cf_sk->conn_req.param.data, ov, ol)) { in setsockopt()
|
/openbmc/linux/include/net/bluetooth/ |
H A D | bluetooth.h | 595 return copy_from_sockptr(dst, src, dst_size); in bt_copy_from_sockptr()
|
/openbmc/linux/net/xdp/ |
H A D | xsk.c | 1281 if (copy_from_sockptr(&entries, optval, sizeof(entries))) in xsk_setsockopt() 1308 if (copy_from_sockptr(&mr, optval, mr_size)) in xsk_setsockopt() 1337 if (copy_from_sockptr(&entries, optval, sizeof(entries))) in xsk_setsockopt()
|
/openbmc/linux/crypto/ |
H A D | af_alg.c | 220 if (copy_from_sockptr(key, ukey, keylen)) in alg_setkey() 300 if (copy_from_sockptr(&serial, optval, optlen)) in alg_setkey_by_key_serial()
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebtables.c | 1116 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in do_replace() 1430 if (copy_from_sockptr(&hlp, arg, sizeof(hlp))) in update_counters() 2225 if (copy_from_sockptr(&tmp, arg, sizeof(tmp))) in compat_copy_ebt_replace_from_user() 2361 if (copy_from_sockptr(&hlp, arg, sizeof(hlp))) in compat_update_counters()
|
/openbmc/linux/net/can/j1939/ |
H A D | socket.c | 670 if (copy_from_sockptr(&tmp, optval, optlen)) in j1939_sk_setsockopt_flag() 741 if (copy_from_sockptr(&tmp, optval, optlen)) in j1939_sk_setsockopt()
|
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_main.c | 506 rc = copy_from_sockptr(&tmp_crypto_info, optval, sizeof(*crypto_info)); in do_chtls_setsockopt()
|