/Linux-v4.19/include/net/ |
D | bond_options.h | 121 static inline void __bond_opt_init(struct bond_opt_value *optval, in __bond_opt_init() argument 124 memset(optval, 0, sizeof(*optval)); in __bond_opt_init() 125 optval->value = ULLONG_MAX; in __bond_opt_init() 127 optval->string = string; in __bond_opt_init() 129 optval->value = value; in __bond_opt_init() 131 #define bond_opt_initval(optval, value) __bond_opt_init(optval, NULL, value) argument 132 #define bond_opt_initstr(optval, str) __bond_opt_init(optval, str, ULLONG_MAX) argument
|
D | inet_connection_sock.h | 52 char __user *optval, unsigned int optlen); 54 char __user *optval, int __user *optlen); 58 char __user *optval, unsigned int optlen); 61 char __user *optval, int __user *optlen); 312 char __user *optval, int __user *optlen); 314 char __user *optval, unsigned int optlen);
|
/Linux-v4.19/net/ipv4/bpfilter/ |
D | sockopt.c | 9 char __user *optval, 14 char __user *optval, in bpfilter_mbox_request() argument 25 return bpfilter_process_sockopt(sk, optname, optval, optlen, is_set); in bpfilter_mbox_request() 28 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_set_sockopt() argument 31 return bpfilter_mbox_request(sk, optname, optval, optlen, true); in bpfilter_ip_set_sockopt() 34 int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_get_sockopt() argument 42 return bpfilter_mbox_request(sk, optname, optval, len, false); in bpfilter_ip_get_sockopt()
|
/Linux-v4.19/net/sctp/ |
D | socket.c | 1424 char __user *optval, in sctp_getsockopt_connectx3() argument 1437 if (copy_from_user(¶m32, optval, sizeof(param32))) in sctp_getsockopt_connectx3() 1448 if (copy_from_user(¶m, optval, sizeof(param))) in sctp_getsockopt_connectx3() 1456 if (copy_to_user(optval, &assoc_id, sizeof(assoc_id))) in sctp_getsockopt_connectx3() 2306 char __user *optval, in sctp_setsockopt_disable_fragments() argument 2314 if (get_user(val, (int __user *)optval)) in sctp_setsockopt_disable_fragments() 2322 static int sctp_setsockopt_events(struct sock *sk, char __user *optval, in sctp_setsockopt_events() argument 2330 if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen)) in sctp_setsockopt_events() 2365 static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval, in sctp_setsockopt_autoclose() argument 2376 if (copy_from_user(&sp->autoclose, optval, optlen)) in sctp_setsockopt_autoclose() [all …]
|
/Linux-v4.19/net/ipv6/ |
D | ipv6_sockglue.c | 142 char __user *optval, unsigned int optlen) in do_ipv6_setsockopt() argument 150 if (!optval) in do_ipv6_setsockopt() 154 if (get_user(val, (int __user *) optval)) in do_ipv6_setsockopt() 163 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt() 412 optval = NULL; in do_ipv6_setsockopt() 413 else if (!optval) in do_ipv6_setsockopt() 419 new = memdup_user(optval, optlen); in do_ipv6_setsockopt() 482 else if (optlen < sizeof(struct in6_pktinfo) || !optval) in do_ipv6_setsockopt() 485 if (copy_from_user(&pkt, optval, sizeof(struct in6_pktinfo))) { in do_ipv6_setsockopt() 528 if (copy_from_user(opt+1, optval, optlen)) in do_ipv6_setsockopt() [all …]
|
D | udp_impl.h | 18 char __user *optval, int __user *optlen); 20 char __user *optval, unsigned int optlen); 23 char __user *optval, unsigned int optlen); 25 char __user *optval, int __user *optlen);
|
D | raw.c | 963 char __user *optval, int optlen) in rawv6_seticmpfilter() argument 969 if (copy_from_user(&raw6_sk(sk)->filter, optval, optlen)) in rawv6_seticmpfilter() 980 char __user *optval, int __user *optlen) in rawv6_geticmpfilter() argument 994 if (copy_to_user(optval, &raw6_sk(sk)->filter, len)) in rawv6_geticmpfilter() 1006 char __user *optval, unsigned int optlen) in do_rawv6_setsockopt() argument 1011 if (get_user(val, (int __user *)optval)) in do_rawv6_setsockopt() 1053 char __user *optval, unsigned int optlen) in rawv6_setsockopt() argument 1062 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1069 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1072 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() [all …]
|
/Linux-v4.19/net/rds/ |
D | af_rds.c | 260 static int rds_cancel_sent_to(struct rds_sock *rs, char __user *optval, in rds_cancel_sent_to() argument 278 if (copy_from_user(&sin, optval, sizeof(struct sockaddr_in))) { in rds_cancel_sent_to() 285 if (copy_from_user(&sin6, optval, in rds_cancel_sent_to() 297 static int rds_set_bool_option(unsigned char *optvar, char __user *optval, in rds_set_bool_option() argument 304 if (get_user(value, (int __user *) optval)) in rds_set_bool_option() 310 static int rds_cong_monitor(struct rds_sock *rs, char __user *optval, in rds_cong_monitor() argument 315 ret = rds_set_bool_option(&rs->rs_cong_monitor, optval, optlen); in rds_cong_monitor() 328 static int rds_set_transport(struct rds_sock *rs, char __user *optval, in rds_set_transport() argument 339 if (copy_from_user(&t_type, (int __user *)optval, sizeof(t_type))) in rds_set_transport() 350 static int rds_enable_recvtstamp(struct sock *sk, char __user *optval, in rds_enable_recvtstamp() argument [all …]
|
/Linux-v4.19/net/ |
D | compat.c | 319 struct sock_fprog __user *get_compat_bpf_fprog(char __user *optval) in get_compat_bpf_fprog() argument 321 struct compat_sock_fprog __user *fprog32 = (struct compat_sock_fprog __user *)optval; in get_compat_bpf_fprog() 339 char __user *optval, unsigned int optlen) in do_set_attach_filter() argument 343 kfprog = get_compat_bpf_fprog(optval); in do_set_attach_filter() 352 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout() argument 354 struct compat_timeval __user *up = (struct compat_timeval __user *)optval; in do_set_sock_timeout() 374 char __user *optval, unsigned int optlen) in compat_sock_setsockopt() argument 379 optval, optlen); in compat_sock_setsockopt() 382 return do_set_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_setsockopt() 384 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | ip_sockglue.c | 591 int optname, char __user *optval, unsigned int optlen) in do_ip_setsockopt() argument 624 if (get_user(val, (int __user *) optval)) in do_ip_setsockopt() 629 if (get_user(ucval, (unsigned char __user *) optval)) in do_ip_setsockopt() 640 return ip_mroute_setsockopt(sk, optname, optval, optlen); in do_ip_setsockopt() 655 optval, optlen); in do_ip_setsockopt() 856 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt() 861 if (copy_from_user(&mreq, optval, in do_ip_setsockopt() 865 if (copy_from_user(&mreq.imr_address, optval, in do_ip_setsockopt() 918 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt() 922 if (copy_from_user(&mreq, optval, sizeof(struct ip_mreq))) in do_ip_setsockopt() [all …]
|
D | udp_impl.h | 15 char __user *optval, unsigned int optlen); 17 char __user *optval, int __user *optlen); 21 char __user *optval, unsigned int optlen); 23 char __user *optval, int __user *optlen);
|
D | raw.c | 817 static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen) in raw_seticmpfilter() argument 821 if (copy_from_user(&raw_sk(sk)->filter, optval, optlen)) in raw_seticmpfilter() 826 static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) in raw_geticmpfilter() argument 839 copy_to_user(optval, &raw_sk(sk)->filter, len)) in raw_geticmpfilter() 846 char __user *optval, unsigned int optlen) in do_raw_setsockopt() argument 852 return raw_seticmpfilter(sk, optval, optlen); in do_raw_setsockopt() 858 char __user *optval, unsigned int optlen) in raw_setsockopt() argument 861 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 862 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 867 char __user *optval, unsigned int optlen) in compat_raw_setsockopt() argument [all …]
|
/Linux-v4.19/net/dccp/ |
D | proto.c | 409 char __user *optval, unsigned int optlen) in dccp_setsockopt_service() argument 425 optval + sizeof(service), in dccp_setsockopt_service() 480 char __user *optval, unsigned int optlen) in dccp_setsockopt_ccid() argument 488 val = memdup_user(optval, optlen); in dccp_setsockopt_ccid() 505 char __user *optval, unsigned int optlen) in do_dccp_setsockopt() argument 521 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 527 if (get_user(val, (int __user *)optval)) in do_dccp_setsockopt() 531 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt() 571 char __user *optval, unsigned int optlen) in dccp_setsockopt() argument 575 optname, optval, in dccp_setsockopt() [all …]
|
D | ccid.h | 83 u32 __user *optval, 87 u32 __user *optval, 246 u32 __user *optval, int __user *optlen) in ccid_hc_rx_getsockopt() argument 251 optval, optlen); in ccid_hc_rx_getsockopt() 257 u32 __user *optval, int __user *optlen) in ccid_hc_tx_getsockopt() argument 262 optval, optlen); in ccid_hc_tx_getsockopt()
|
/Linux-v4.19/net/tls/ |
D | tls_main.c | 321 static int do_tls_getsockopt_tx(struct sock *sk, char __user *optval, argument 332 if (!optval || (len < sizeof(*crypto_info))) { 351 if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) 375 if (copy_to_user(optval, 390 char __user *optval, int __user *optlen) argument 396 rc = do_tls_getsockopt_tx(sk, optval, optlen); 406 char __user *optval, int __user *optlen) argument 411 return ctx->getsockopt(sk, level, optname, optval, optlen); 413 return do_tls_getsockopt(sk, optname, optval, optlen); 416 static int do_tls_setsockopt_conf(struct sock *sk, char __user *optval, argument [all …]
|
/Linux-v4.19/include/linux/ |
D | bpfilter.h | 8 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval, 10 int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, 13 char __user *optval,
|
D | netfilter.h | 150 int (*set)(struct sock *sk, int optval, void __user *user, unsigned int len); 152 int (*compat_set)(struct sock *sk, int optval, 157 int (*get)(struct sock *sk, int optval, void __user *user, int *len); 159 int (*compat_get)(struct sock *sk, int optval, 312 int nf_setsockopt(struct sock *sk, u_int8_t pf, int optval, char __user *opt, 314 int nf_getsockopt(struct sock *sk, u_int8_t pf, int optval, char __user *opt, 317 int compat_nf_setsockopt(struct sock *sk, u_int8_t pf, int optval, 319 int compat_nf_getsockopt(struct sock *sk, u_int8_t pf, int optval,
|
D | net.h | 161 int optname, char __user *optval, unsigned int optlen); 163 int optname, char __user *optval, int __user *optlen); 166 int optname, char __user *optval, unsigned int optlen); 168 int optname, char __user *optval, int __user *optlen); 301 int kernel_getsockopt(struct socket *sock, int level, int optname, char *optval, 303 int kernel_setsockopt(struct socket *sock, int level, int optname, char *optval,
|
/Linux-v4.19/drivers/net/bonding/ |
D | bond_procfs.c | 60 const struct bond_opt_value *optval; in bond_info_show_master() local 71 optval = bond_opt_get_val(BOND_OPT_FAIL_OVER_MAC, in bond_info_show_master() 73 seq_printf(seq, " (fail_over_mac %s)", optval->string); in bond_info_show_master() 79 optval = bond_opt_get_val(BOND_OPT_XMIT_HASH, in bond_info_show_master() 82 optval->string, bond->params.xmit_policy); in bond_info_show_master() 90 optval = bond_opt_get_val(BOND_OPT_PRIMARY_RESELECT, in bond_info_show_master() 93 optval->string); in bond_info_show_master() 135 optval = bond_opt_get_val(BOND_OPT_AD_SELECT, in bond_info_show_master() 138 optval->string); in bond_info_show_master()
|
/Linux-v4.19/net/dns_resolver/ |
D | dns_key.c | 91 char optval[128]; in dns_resolver_preparse() local 95 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse() 105 memcpy(optval, eq, next_opt - eq); in dns_resolver_preparse() 106 optval[next_opt - eq] = '\0'; in dns_resolver_preparse() 109 optval[0] = '\0'; in dns_resolver_preparse() 113 opt_nlen, opt_nlen, opt, optval); in dns_resolver_preparse() 121 ret = kstrtoul(optval, 10, &derrno); in dns_resolver_preparse()
|
/Linux-v4.19/drivers/crypto/chelsio/chtls/ |
D | chtls_main.c | 444 static int do_chtls_getsockopt(struct sock *sk, char __user *optval, in do_chtls_getsockopt() argument 450 if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info))) in do_chtls_getsockopt() 456 char __user *optval, int __user *optlen) in chtls_getsockopt() argument 461 return ctx->getsockopt(sk, level, optname, optval, optlen); in chtls_getsockopt() 463 return do_chtls_getsockopt(sk, optval, optlen); in chtls_getsockopt() 467 char __user *optval, unsigned int optlen) in do_chtls_setsockopt() argument 476 if (!optval || optlen < sizeof(*crypto_info)) { in do_chtls_setsockopt() 481 rc = copy_from_user(&tmp_crypto_info, optval, sizeof(*crypto_info)); in do_chtls_setsockopt() 501 optval + sizeof(*crypto_info), in do_chtls_setsockopt() 523 char __user *optval, unsigned int optlen) in chtls_setsockopt() argument [all …]
|
/Linux-v4.19/net/bluetooth/ |
D | l2cap_sock.c | 393 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt_old() argument 431 if (copy_to_user(optval, (char *) &opts, len)) in l2cap_sock_getsockopt_old() 463 if (put_user(opt, (u32 __user *) optval)) in l2cap_sock_getsockopt_old() 481 if (copy_to_user(optval, (char *) &cinfo, len)) in l2cap_sock_getsockopt_old() 496 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt() argument 507 return l2cap_sock_getsockopt_old(sock, optname, optval, optlen); in l2cap_sock_getsockopt() 537 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt() 549 (u32 __user *) optval)) in l2cap_sock_getsockopt() 556 (u32 __user *) optval)) in l2cap_sock_getsockopt() 571 if (copy_to_user(optval, (char *) &pwr, len)) in l2cap_sock_getsockopt() [all …]
|
/Linux-v4.19/net/atm/ |
D | pvc.c | 66 char __user *optval, unsigned int optlen) in pvc_setsockopt() argument 72 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt() 78 char __user *optval, int __user *optlen) in pvc_getsockopt() argument 84 error = vcc_getsockopt(sock, level, optname, optval, optlen); in pvc_getsockopt()
|
/Linux-v4.19/net/can/ |
D | raw.c | 490 char __user *optval, unsigned int optlen) in raw_setsockopt() argument 517 filter = memdup_user(optval, optlen); in raw_setsockopt() 521 if (copy_from_user(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt() 574 if (copy_from_user(&err_mask, optval, optlen)) in raw_setsockopt() 613 if (copy_from_user(&ro->loopback, optval, optlen)) in raw_setsockopt() 622 if (copy_from_user(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt() 631 if (copy_from_user(&ro->fd_frames, optval, optlen)) in raw_setsockopt() 640 if (copy_from_user(&ro->join_filters, optval, optlen)) in raw_setsockopt() 652 char __user *optval, int __user *optlen) in raw_getsockopt() argument 675 if (copy_to_user(optval, ro->filter, len)) in raw_getsockopt() [all …]
|
/Linux-v4.19/net/core/ |
D | sock.c | 338 static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen) in sock_set_timeout() argument 344 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout() 523 static int sock_setbindtodevice(struct sock *sk, char __user *optval, in sock_setbindtodevice() argument 551 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice() 581 static int sock_getbindtodevice(struct sock *sk, char __user *optval, in sock_getbindtodevice() argument 605 if (copy_to_user(optval, devname, len)) in sock_getbindtodevice() 654 char __user *optval, unsigned int optlen) in sock_setsockopt() argument 668 return sock_setbindtodevice(sk, optval, optlen); in sock_setsockopt() 673 if (get_user(val, (int __user *)optval)) in sock_setsockopt() 787 if (copy_from_user(&ling, optval, sizeof(ling))) { in sock_setsockopt() [all …]
|