Home
last modified time | relevance | path

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

123

/Linux-v5.10/include/linux/
Dsockptr.h53 static inline int copy_from_sockptr(void *dst, sockptr_t src, size_t size) in copy_from_sockptr() function
73 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr()
86 if (copy_from_sockptr(p, src, len)) { in memdup_sockptr_nul()
/Linux-v5.10/net/ipv6/
Dipv6_sockglue.c147 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in copy_group_source_from_sockptr()
155 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr()
254 if (copy_from_sockptr(gf32, optval, optlen)) in compat_ipv6_set_mcast_msfilter()
286 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in ipv6_mcast_join_leave()
306 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in compat_ipv6_mcast_join_leave()
405 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ipv6_setsockopt()
670 if (copy_from_sockptr(&pkt, optval, sizeof(pkt))) { in do_ipv6_setsockopt()
713 if (copy_from_sockptr(opt + 1, optval, optlen)) in do_ipv6_setsockopt()
835 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
853 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
Dip6mr.c1669 if (copy_from_sockptr(&vif, optval, sizeof(vif))) in ip6_mroute_setsockopt()
1682 if (copy_from_sockptr(&mifi, optval, sizeof(mifi_t))) in ip6_mroute_setsockopt()
1701 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) in ip6_mroute_setsockopt()
1722 if (copy_from_sockptr(&flags, optval, sizeof(flags))) in ip6_mroute_setsockopt()
1739 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt()
1752 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt()
1773 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt()
Draw.c981 if (copy_from_sockptr(&raw6_sk(sk)->filter, optval, optlen)) in rawv6_seticmpfilter()
1023 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_rawv6_setsockopt()
/Linux-v5.10/net/can/
Draw.c516 if (copy_from_sockptr(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt()
569 if (copy_from_sockptr(&err_mask, optval, optlen)) in raw_setsockopt()
608 if (copy_from_sockptr(&ro->loopback, optval, optlen)) in raw_setsockopt()
617 if (copy_from_sockptr(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt()
626 if (copy_from_sockptr(&ro->fd_frames, optval, optlen)) in raw_setsockopt()
635 if (copy_from_sockptr(&ro->join_filters, optval, optlen)) in raw_setsockopt()
Disotp.c1168 if (copy_from_sockptr(&so->opt, optval, optlen)) in isotp_setsockopt()
1180 if (copy_from_sockptr(&so->rxfc, optval, optlen)) in isotp_setsockopt()
1188 if (copy_from_sockptr(&so->force_tx_stmin, optval, optlen)) in isotp_setsockopt()
1196 if (copy_from_sockptr(&so->force_rx_stmin, optval, optlen)) in isotp_setsockopt()
1204 if (copy_from_sockptr(&ll, optval, optlen)) in isotp_setsockopt()
/Linux-v5.10/net/ipv4/
Dip_sockglue.c706 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in copy_group_source_from_sockptr()
714 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()
924 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ip_setsockopt()
929 if (copy_from_sockptr(&ucval, optval, sizeof(ucval))) in do_ip_setsockopt()
1151 if (copy_from_sockptr(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
1156 if (copy_from_sockptr(&mreq, optval, in do_ip_setsockopt()
1160 if (copy_from_sockptr(&mreq.imr_address, optval, in do_ip_setsockopt()
[all …]
Dipmr.c1420 if (copy_from_sockptr(&vif, optval, sizeof(vif))) { in ip_mroute_setsockopt()
1448 if (copy_from_sockptr(&mfc, optval, sizeof(mfc))) { in ip_mroute_setsockopt()
1466 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt()
1478 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt()
1493 if (copy_from_sockptr(&val, optval, sizeof(val))) { in ip_mroute_setsockopt()
1515 if (copy_from_sockptr(&uval, optval, sizeof(uval))) { in ip_mroute_setsockopt()
/Linux-v5.10/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-v5.10/net/bluetooth/
Dl2cap_sock.c739 if (copy_from_sockptr(&opts, optval, len)) { in l2cap_sock_setsockopt_old()
785 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt_old()
894 if (copy_from_sockptr(&sec, optval, len)) { in l2cap_sock_setsockopt()
942 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt()
957 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt()
993 if (copy_from_sockptr(&pwr, optval, len)) { in l2cap_sock_setsockopt()
1005 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in l2cap_sock_setsockopt()
1053 if (copy_from_sockptr(&opt, optval, sizeof(u16))) { in l2cap_sock_setsockopt()
1084 if (copy_from_sockptr(&opt, optval, sizeof(u8))) { in l2cap_sock_setsockopt()
Dsco.c825 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in sco_sock_setsockopt()
846 if (copy_from_sockptr(&voice, optval, len)) { in sco_sock_setsockopt()
862 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in sco_sock_setsockopt()
Dhci_sock.c1864 if (copy_from_sockptr(&opt, optval, sizeof(opt))) { in hci_sock_setsockopt()
1876 if (copy_from_sockptr(&opt, optval, sizeof(opt))) { in hci_sock_setsockopt()
1898 if (copy_from_sockptr(&uf, optval, len)) { in hci_sock_setsockopt()
/Linux-v5.10/net/packet/
Daf_packet.c1576 if (copy_from_sockptr(&fd, data, len)) in fanout_set_data_ebpf()
3689 if (copy_from_sockptr(&mreq, optval, len)) in packet_setsockopt()
3720 if (copy_from_sockptr(&req_u.req, optval, len)) in packet_setsockopt()
3735 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3747 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3773 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3793 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3812 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3826 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
3842 if (copy_from_sockptr(&val, optval, sizeof(val))) in packet_setsockopt()
[all …]
/Linux-v5.10/net/core/
Dsock.c375 if (copy_from_sockptr(&tv32, optval, sizeof(tv32))) in sock_set_timeout()
384 if (copy_from_sockptr(&old_tv, optval, sizeof(old_tv))) in sock_set_timeout()
391 if (copy_from_sockptr(&tv, optval, sizeof(tv))) in sock_set_timeout()
623 if (copy_from_sockptr(devname, optval, optlen)) in sock_setbindtodevice()
843 if (copy_from_sockptr(&val, optval, sizeof(val))) in sock_setsockopt()
956 if (copy_from_sockptr(&ling, optval, sizeof(ling))) { in sock_setsockopt()
1069 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sock_setsockopt()
1090 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sock_setsockopt()
1170 copy_from_sockptr(&ulval, optval, sizeof(ulval))) { in sock_setsockopt()
1213 } else if (copy_from_sockptr(&sk_txtime, optval, in sock_setsockopt()
/Linux-v5.10/net/bluetooth/rfcomm/
Dsock.c660 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in rfcomm_sock_setsockopt_old()
718 if (copy_from_sockptr(&sec, optval, len)) { in rfcomm_sock_setsockopt()
737 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in rfcomm_sock_setsockopt()
/Linux-v5.10/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-v5.10/net/xdp/
Dxsk.c822 if (copy_from_sockptr(&entries, optval, sizeof(entries))) in xsk_setsockopt()
849 if (copy_from_sockptr(&mr, optval, mr_size)) in xsk_setsockopt()
876 if (copy_from_sockptr(&entries, optval, sizeof(entries))) in xsk_setsockopt()
/Linux-v5.10/net/rxrpc/
Daf_rxrpc.c643 ret = copy_from_sockptr(&min_sec_level, optval, in rxrpc_setsockopt()
662 if (copy_from_sockptr(service_upgrade, optval, in rxrpc_setsockopt()
/Linux-v5.10/net/nfc/
Dllcp_sock.c244 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in nfc_llcp_setsockopt()
266 if (copy_from_sockptr(&opt, optval, sizeof(u32))) { in nfc_llcp_setsockopt()
/Linux-v5.10/net/caif/
Dcaif_socket.c688 if (copy_from_sockptr(&linksel, ov, sizeof(int))) in setsockopt()
702 copy_from_sockptr(&cf_sk->conn_req.param.data, ov, ol)) { in setsockopt()
/Linux-v5.10/net/can/j1939/
Dsocket.c657 if (copy_from_sockptr(&tmp, optval, optlen)) in j1939_sk_setsockopt_flag()
726 if (copy_from_sockptr(&tmp, optval, optlen)) in j1939_sk_setsockopt()
/Linux-v5.10/net/bridge/netfilter/
Debtables.c1072 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in do_replace()
1292 if (copy_from_sockptr(&hlp, arg, sizeof(hlp))) in update_counters()
2088 if (copy_from_sockptr(&tmp, arg, sizeof(tmp))) in compat_copy_ebt_replace_from_user()
2222 if (copy_from_sockptr(&hlp, arg, sizeof(hlp))) in compat_update_counters()
/Linux-v5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_main.c506 rc = copy_from_sockptr(&tmp_crypto_info, optval, sizeof(*crypto_info)); in do_chtls_setsockopt()

123