Home
last modified time | relevance | path

Searched refs:copy_from_sockptr (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.1.9/include/linux/
Dsockptr.h53 static inline int copy_from_sockptr(void *dst, sockptr_t src, size_t size) in copy_from_sockptr() function
78 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr()
91 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr_nul()
/linux-6.1.9/net/ipv6/
Dipv6_sockglue.c149 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()
684 if (copy_from_sockptr(&pkt, optval, sizeof(pkt))) { in do_ipv6_setsockopt()
727 if (copy_from_sockptr(opt + 1, optval, optlen)) in do_ipv6_setsockopt()
849 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
867 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
[all …]
Dip6mr.c1693 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()
/linux-6.1.9/net/ipv4/
Dip_sockglue.c705 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in copy_group_source_from_sockptr()
713 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr()
820 if (copy_from_sockptr(gf32, optval, optlen)) in compat_ip_set_mcast_msfilter()
853 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in ip_mcast_join_leave()
875 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in compat_ip_mcast_join_leave()
926 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ip_setsockopt()
931 if (copy_from_sockptr(&ucval, optval, sizeof(ucval))) in do_ip_setsockopt()
1153 if (copy_from_sockptr(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
1158 if (copy_from_sockptr(&mreq, optval, in do_ip_setsockopt()
1162 if (copy_from_sockptr(&mreq.imr_address, optval, in do_ip_setsockopt()
[all …]
Dtcp.c3228 if (copy_from_sockptr(&opt, optbuf, sizeof(opt))) in tcp_repair_set_window()
3550 if (copy_from_sockptr(key, optval, optlen)) in do_tcp_setsockopt()
3566 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_tcp_setsockopt()
4064 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
4114 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
4132 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
4151 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
4161 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
4180 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
4214 if (copy_from_sockptr(&len, optlen, sizeof(int))) in do_tcp_getsockopt()
[all …]
Dipmr.c1430 if (copy_from_sockptr(&vif, optval, sizeof(vif))) { in ip_mroute_setsockopt()
1458 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) { in ip_mroute_setsockopt()
1476 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt()
1488 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt()
1503 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt()
1525 if (copy_from_sockptr(&uval, optval, sizeof(uval))) { in ip_mroute_setsockopt()
1583 if (copy_from_sockptr(&olr, optlen, sizeof(int))) in ip_mroute_getsockopt()
/linux-6.1.9/net/can/
Draw.c548 if (copy_from_sockptr(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt()
608 if (copy_from_sockptr(&err_mask, optval, optlen)) in raw_setsockopt()
652 if (copy_from_sockptr(&ro->loopback, optval, optlen)) in raw_setsockopt()
661 if (copy_from_sockptr(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt()
670 if (copy_from_sockptr(&ro->fd_frames, optval, optlen)) in raw_setsockopt()
679 if (copy_from_sockptr(&ro->xl_frames, optval, optlen)) in raw_setsockopt()
688 if (copy_from_sockptr(&ro->join_filters, optval, optlen)) in raw_setsockopt()
Disotp.c1352 if (copy_from_sockptr(&so->opt, optval, optlen)) in isotp_setsockopt_locked()
1381 if (copy_from_sockptr(&so->rxfc, optval, optlen)) in isotp_setsockopt_locked()
1389 if (copy_from_sockptr(&so->force_tx_stmin, optval, optlen)) in isotp_setsockopt_locked()
1397 if (copy_from_sockptr(&so->force_rx_stmin, optval, optlen)) in isotp_setsockopt_locked()
1405 if (copy_from_sockptr(&ll, optval, optlen)) in isotp_setsockopt_locked()
/linux-6.1.9/net/rds/
Daf_rds.c310 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()
Drdma.c363 if (copy_from_sockptr(&args, optval, sizeof(struct rds_get_mr_args))) in rds_get_mr()
377 if (copy_from_sockptr(&args, optval, in rds_get_mr_for_dest()
405 if (copy_from_sockptr(&args, optval, sizeof(struct rds_free_mr_args))) in rds_free_mr()
/linux-6.1.9/net/bluetooth/
Dl2cap_sock.c775 if (copy_from_sockptr(&opts, optval, len)) { in l2cap_sock_setsockopt_old()
821 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt_old()
932 if (copy_from_sockptr(&sec, optval, len)) { in l2cap_sock_setsockopt()
980 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt()
995 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt()
1031 if (copy_from_sockptr(&pwr, optval, len)) { in l2cap_sock_setsockopt()
1043 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt()
1091 if (copy_from_sockptr(&mtu, optval, sizeof(u16))) { in l2cap_sock_setsockopt()
1122 if (copy_from_sockptr(&mode, optval, sizeof(u8))) { in l2cap_sock_setsockopt()
Dsco.c853 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in sco_sock_setsockopt()
874 if (copy_from_sockptr(&voice, optval, len)) { in sco_sock_setsockopt()
900 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in sco_sock_setsockopt()
944 if (copy_from_sockptr(buffer, optval, optlen)) { in sco_sock_setsockopt()
Dhci_sock.c1850 if (copy_from_sockptr(&opt, optval, sizeof(opt))) { in hci_sock_setsockopt_old()
1862 if (copy_from_sockptr(&opt, optval, sizeof(opt))) { in hci_sock_setsockopt_old()
1884 if (copy_from_sockptr(&uf, optval, len)) { in hci_sock_setsockopt_old()
1946 if (copy_from_sockptr(&opt, optval, sizeof(opt))) { in hci_sock_setsockopt()
Diso.c1197 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in iso_sock_setsockopt()
1223 if (copy_from_sockptr(&qos, optval, len)) { in iso_sock_setsockopt()
1251 if (copy_from_sockptr(iso_pi(sk)->base, optval, len)) { in iso_sock_setsockopt()
/linux-6.1.9/net/mptcp/
Dsockopt.c63 if (copy_from_sockptr(val, optval, sizeof(*val))) in mptcp_get_int_option()
216 if (copy_from_sockptr(&timestamping, optval, in mptcp_setsockopt_sol_socket_timestamping()
222 if (copy_from_sockptr(&timestamping.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()
631 if (copy_from_sockptr(&val, optval, sizeof(val))) in mptcp_setsockopt_sol_tcp_cork()
661 if (copy_from_sockptr(&val, optval, sizeof(val))) in mptcp_setsockopt_sol_tcp_nodelay()
/linux-6.1.9/net/core/
Dsock.c399 if (copy_from_sockptr(&tv32, optval, sizeof(tv32))) in sock_copy_user_timeval()
408 if (copy_from_sockptr(&old_tv, optval, sizeof(old_tv))) in sock_copy_user_timeval()
415 if (copy_from_sockptr(tv, optval, sizeof(*tv))) in sock_copy_user_timeval()
689 if (copy_from_sockptr(devname, optval, optlen)) in sock_setbindtodevice()
1101 if (copy_from_sockptr(&val, optval, sizeof(val))) in sk_setsockopt()
1215 if (copy_from_sockptr(&ling, optval, sizeof(ling))) { in sk_setsockopt()
1252 if (copy_from_sockptr(&timestamping, optval, in sk_setsockopt()
1299 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sk_setsockopt()
1320 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sk_setsockopt()
1426 copy_from_sockptr(&ulval, optval, sizeof(ulval))) { in sk_setsockopt()
[all …]
/linux-6.1.9/net/packet/
Daf_packet.c1618 if (copy_from_sockptr(&fd, data, len)) in fanout_set_data_ebpf()
3773 if (copy_from_sockptr(&mreq, optval, len)) in packet_setsockopt()
3804 if (copy_from_sockptr(&req_u.req, optval, len)) in packet_setsockopt()
3819 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3831 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3857 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3877 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3896 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3910 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3926 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
[all …]
/linux-6.1.9/net/bluetooth/rfcomm/
Dsock.c639 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in rfcomm_sock_setsockopt_old()
697 if (copy_from_sockptr(&sec, optval, len)) { in rfcomm_sock_setsockopt()
716 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in rfcomm_sock_setsockopt()
/linux-6.1.9/net/atm/
Dsvc.c467 if (copy_from_sockptr(&vcc->sap, optval, optlen)) { in svc_setsockopt()
478 if (copy_from_sockptr(&value, optval, sizeof(int))) { in svc_setsockopt()
Dcommon.c763 if (copy_from_sockptr(&qos, optval, sizeof(qos))) in vcc_setsockopt()
777 if (copy_from_sockptr(&value, optval, sizeof(value))) in vcc_setsockopt()
/linux-6.1.9/net/tls/
Dtls_main.c694 rc = copy_from_sockptr(crypto_info, optval, sizeof(*crypto_info)); in do_tls_setsockopt_conf()
828 if (copy_from_sockptr(&value, optval, sizeof(value))) in do_tls_setsockopt_tx_zc()
850 rc = copy_from_sockptr(&val, optval, sizeof(val)); in do_tls_setsockopt_no_pad()
/linux-6.1.9/net/rxrpc/
Daf_rxrpc.c644 ret = copy_from_sockptr(&min_sec_level, optval, in rxrpc_setsockopt()
663 if (copy_from_sockptr(service_upgrade, optval, in rxrpc_setsockopt()
/linux-6.1.9/net/xdp/
Dxsk.c1064 if (copy_from_sockptr(&entries, optval, sizeof(entries))) in xsk_setsockopt()
1091 if (copy_from_sockptr(&mr, optval, mr_size)) in xsk_setsockopt()
1118 if (copy_from_sockptr(&entries, optval, sizeof(entries))) in xsk_setsockopt()
/linux-6.1.9/net/nfc/
Dllcp_sock.c255 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in nfc_llcp_setsockopt()
277 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in nfc_llcp_setsockopt()
/linux-6.1.9/net/caif/
Dcaif_socket.c684 if (copy_from_sockptr(&linksel, ov, sizeof(int))) in setsockopt()
698 copy_from_sockptr(&cf_sk->conn_req.param.data, ov, ol)) { in setsockopt()

123