/net/sctp/ |
D | socket.c | 1384 char __user *optval, in sctp_getsockopt_connectx3() argument 1397 if (copy_from_user(¶m32, optval, sizeof(param32))) in sctp_getsockopt_connectx3() 1408 if (copy_from_user(¶m, optval, sizeof(param))) in sctp_getsockopt_connectx3() 1416 if (copy_to_user(optval, &assoc_id, sizeof(assoc_id))) in sctp_getsockopt_connectx3() 2197 char __user *optval, in sctp_setsockopt_disable_fragments() argument 2205 if (get_user(val, (int __user *)optval)) in sctp_setsockopt_disable_fragments() 2213 static int sctp_setsockopt_events(struct sock *sk, char __user *optval, in sctp_setsockopt_events() argument 2225 if (copy_from_user(&subscribe, optval, optlen)) in sctp_setsockopt_events() 2267 static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval, in sctp_setsockopt_autoclose() argument 2278 if (copy_from_user(&sp->autoclose, optval, optlen)) in sctp_setsockopt_autoclose() [all …]
|
/net/ipv6/ |
D | ipv6_sockglue.c | 140 char __user *optval, unsigned int optlen) in do_ipv6_setsockopt() argument 148 if (!optval) in do_ipv6_setsockopt() 152 if (get_user(val, (int __user *) optval)) in do_ipv6_setsockopt() 161 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt() 410 optval = NULL; in do_ipv6_setsockopt() 411 else if (!optval) in do_ipv6_setsockopt() 417 new = memdup_user(optval, optlen); in do_ipv6_setsockopt() 480 else if (optlen < sizeof(struct in6_pktinfo) || !optval) in do_ipv6_setsockopt() 483 if (copy_from_user(&pkt, optval, sizeof(struct in6_pktinfo))) { in do_ipv6_setsockopt() 526 if (copy_from_user(opt+1, optval, optlen)) in do_ipv6_setsockopt() [all …]
|
D | udp_impl.h | 19 char __user *optval, int __user *optlen); 21 char __user *optval, unsigned int optlen); 24 char __user *optval, unsigned int optlen); 26 char __user *optval, int __user *optlen);
|
D | raw.c | 975 char __user *optval, int optlen) in rawv6_seticmpfilter() argument 981 if (copy_from_user(&raw6_sk(sk)->filter, optval, optlen)) in rawv6_seticmpfilter() 992 char __user *optval, int __user *optlen) in rawv6_geticmpfilter() argument 1006 if (copy_to_user(optval, &raw6_sk(sk)->filter, len)) in rawv6_geticmpfilter() 1018 char __user *optval, unsigned int optlen) in do_rawv6_setsockopt() argument 1023 if (get_user(val, (int __user *)optval)) in do_rawv6_setsockopt() 1065 char __user *optval, unsigned int optlen) in rawv6_setsockopt() argument 1074 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1081 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1084 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() [all …]
|
/net/rds/ |
D | af_rds.c | 293 static int rds_cancel_sent_to(struct rds_sock *rs, char __user *optval, in rds_cancel_sent_to() argument 311 if (copy_from_user(&sin, optval, sizeof(struct sockaddr_in))) { in rds_cancel_sent_to() 318 if (copy_from_user(&sin6, optval, in rds_cancel_sent_to() 330 static int rds_set_bool_option(unsigned char *optvar, char __user *optval, in rds_set_bool_option() argument 337 if (get_user(value, (int __user *) optval)) in rds_set_bool_option() 343 static int rds_cong_monitor(struct rds_sock *rs, char __user *optval, in rds_cong_monitor() argument 348 ret = rds_set_bool_option(&rs->rs_cong_monitor, optval, optlen); in rds_cong_monitor() 361 static int rds_set_transport(struct rds_sock *rs, char __user *optval, in rds_set_transport() argument 372 if (copy_from_user(&t_type, (int __user *)optval, sizeof(t_type))) in rds_set_transport() 383 static int rds_enable_recvtstamp(struct sock *sk, char __user *optval, in rds_enable_recvtstamp() argument [all …]
|
/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 | 16 char __user *optval, unsigned int optlen); 18 char __user *optval, int __user *optlen); 22 char __user *optval, unsigned int optlen); 24 char __user *optval, int __user *optlen);
|
D | raw.c | 812 static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen) in raw_seticmpfilter() argument 816 if (copy_from_user(&raw_sk(sk)->filter, optval, optlen)) in raw_seticmpfilter() 821 static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) in raw_geticmpfilter() argument 834 copy_to_user(optval, &raw_sk(sk)->filter, len)) in raw_geticmpfilter() 841 char __user *optval, unsigned int optlen) in do_raw_setsockopt() argument 847 return raw_seticmpfilter(sk, optval, optlen); in do_raw_setsockopt() 853 char __user *optval, unsigned int optlen) in raw_setsockopt() argument 856 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 857 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 862 char __user *optval, unsigned int optlen) in compat_raw_setsockopt() argument [all …]
|
D | tcp.c | 2786 int optname, char __user *optval, unsigned int optlen) in do_tcp_setsockopt() argument 2802 val = strncpy_from_user(name, optval, in do_tcp_setsockopt() 2821 val = strncpy_from_user(name, optval, in do_tcp_setsockopt() 2844 if (copy_from_user(key, optval, optlen)) in do_tcp_setsockopt() 2860 if (get_user(val, (int __user *)optval)) in do_tcp_setsockopt() 2951 (struct tcp_repair_opt __user *)optval, in do_tcp_setsockopt() 3070 err = tp->af_specific->md5_parse(sk, optname, optval, optlen); in do_tcp_setsockopt() 3122 err = tcp_repair_set_window(tp, optval, optlen); in do_tcp_setsockopt() 3148 int tcp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, in tcp_setsockopt() argument 3155 optval, optlen); in tcp_setsockopt() [all …]
|
/net/dccp/ |
D | proto.c | 405 char __user *optval, unsigned int optlen) in dccp_setsockopt_service() argument 421 optval + sizeof(service), in dccp_setsockopt_service() 476 char __user *optval, unsigned int optlen) in dccp_setsockopt_ccid() argument 484 val = memdup_user(optval, optlen); in dccp_setsockopt_ccid() 501 char __user *optval, unsigned int optlen) in do_dccp_setsockopt() argument 517 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 523 if (get_user(val, (int __user *)optval)) in do_dccp_setsockopt() 527 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt() 567 char __user *optval, unsigned int optlen) in dccp_setsockopt() argument 571 optname, optval, in dccp_setsockopt() [all …]
|
D | ccid.h | 80 u32 __user *optval, 84 u32 __user *optval, 243 u32 __user *optval, int __user *optlen) in ccid_hc_rx_getsockopt() argument 248 optval, optlen); in ccid_hc_rx_getsockopt() 254 u32 __user *optval, int __user *optlen) in ccid_hc_tx_getsockopt() argument 259 optval, optlen); in ccid_hc_tx_getsockopt()
|
/net/ |
D | compat.c | 321 struct sock_fprog __user *get_compat_bpf_fprog(char __user *optval) in get_compat_bpf_fprog() argument 323 struct compat_sock_fprog __user *fprog32 = (struct compat_sock_fprog __user *)optval; in get_compat_bpf_fprog() 341 char __user *optval, unsigned int optlen) in do_set_attach_filter() argument 345 kfprog = get_compat_bpf_fprog(optval); in do_set_attach_filter() 354 char __user *optval, unsigned int optlen) in compat_sock_setsockopt() argument 359 optval, optlen); in compat_sock_setsockopt() 360 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt() 364 char __user *optval, unsigned int optlen) in __compat_sys_setsockopt() argument 382 optname, optval, optlen); in __compat_sys_setsockopt() 385 optname, optval, optlen); in __compat_sys_setsockopt() [all …]
|
/net/ipv4/bpfilter/ |
D | sockopt.c | 26 char __user *optval, in bpfilter_mbox_request() argument 46 err = bpfilter_ops.sockopt(sk, optname, optval, optlen, is_set); in bpfilter_mbox_request() 52 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_set_sockopt() argument 55 return bpfilter_mbox_request(sk, optname, optval, optlen, true); in bpfilter_ip_set_sockopt() 58 int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_get_sockopt() argument 66 return bpfilter_mbox_request(sk, optname, optval, len, false); in bpfilter_ip_get_sockopt()
|
/net/tls/ |
D | tls_main.c | 327 static int do_tls_getsockopt_tx(struct sock *sk, char __user *optval, in do_tls_getsockopt_tx() argument 338 if (!optval || (len < sizeof(*crypto_info))) { in do_tls_getsockopt_tx() 357 if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) in do_tls_getsockopt_tx() 381 if (copy_to_user(optval, in do_tls_getsockopt_tx() 405 if (copy_to_user(optval, in do_tls_getsockopt_tx() 420 char __user *optval, int __user *optlen) in do_tls_getsockopt() argument 426 rc = do_tls_getsockopt_tx(sk, optval, optlen); in do_tls_getsockopt() 436 char __user *optval, int __user *optlen) in tls_getsockopt() argument 442 optname, optval, optlen); in tls_getsockopt() 444 return do_tls_getsockopt(sk, optname, optval, optlen); in tls_getsockopt() [all …]
|
/net/dns_resolver/ |
D | dns_key.c | 151 char optval[128]; in dns_resolver_preparse() local 155 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse() 165 memcpy(optval, eq, next_opt - eq); in dns_resolver_preparse() 166 optval[next_opt - eq] = '\0'; in dns_resolver_preparse() 169 optval[0] = '\0'; in dns_resolver_preparse() 173 opt_nlen, opt_nlen, opt, optval); in dns_resolver_preparse() 181 ret = kstrtoul(optval, 10, &derrno); in dns_resolver_preparse()
|
/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 …]
|
D | sco.c | 794 char __user *optval, unsigned int optlen) in sco_sock_setsockopt() argument 813 if (get_user(opt, (u32 __user *) optval)) { in sco_sock_setsockopt() 834 if (copy_from_user((char *)&voice, optval, len)) { in sco_sock_setsockopt() 859 char __user *optval, int __user *optlen) in sco_sock_getsockopt_old() argument 887 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old() 905 if (copy_to_user(optval, (char *)&cinfo, len)) in sco_sock_getsockopt_old() 920 char __user *optval, int __user *optlen) in sco_sock_getsockopt() argument 929 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt() 945 (u32 __user *)optval)) in sco_sock_getsockopt() 954 if (copy_to_user(optval, (char *)&voice, len)) in sco_sock_getsockopt()
|
/net/core/ |
D | sock.c | 333 static int sock_get_timeout(long timeo, void *optval, bool old_timeval) in sock_get_timeout() argument 348 *(struct old_timeval32 *)optval = tv32; in sock_get_timeout() 356 *(struct __kernel_old_timeval *)optval = old_tv; in sock_get_timeout() 359 *(struct __kernel_sock_timeval *)optval = tv; in sock_get_timeout() 366 static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen, bool old_timeval) in sock_set_timeout() argument 376 if (copy_from_user(&tv32, optval, sizeof(tv32))) in sock_set_timeout() 385 if (copy_from_user(&old_tv, optval, sizeof(old_tv))) in sock_set_timeout() 392 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout() 600 static int sock_setbindtodevice(struct sock *sk, char __user *optval, in sock_setbindtodevice() argument 623 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice() [all …]
|
/net/can/ |
D | raw.c | 488 char __user *optval, unsigned int optlen) in raw_setsockopt() argument 514 filter = memdup_user(optval, optlen); in raw_setsockopt() 518 if (copy_from_user(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt() 571 if (copy_from_user(&err_mask, optval, optlen)) in raw_setsockopt() 610 if (copy_from_user(&ro->loopback, optval, optlen)) in raw_setsockopt() 619 if (copy_from_user(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt() 628 if (copy_from_user(&ro->fd_frames, optval, optlen)) in raw_setsockopt() 637 if (copy_from_user(&ro->join_filters, optval, optlen)) in raw_setsockopt() 649 char __user *optval, int __user *optlen) in raw_getsockopt() argument 672 if (copy_to_user(optval, ro->filter, len)) in raw_getsockopt() [all …]
|
/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()
|
D | common.h | 24 char __user *optval, unsigned int optlen); 26 char __user *optval, int __user *optlen);
|
D | svc.c | 454 char __user *optval, unsigned int optlen) in svc_setsockopt() argument 467 if (copy_from_user(&vcc->sap, optval, optlen)) { in svc_setsockopt() 478 if (get_user(value, (int __user *)optval)) { in svc_setsockopt() 490 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt() 499 char __user *optval, int __user *optlen) in svc_getsockopt() argument 506 error = vcc_getsockopt(sock, level, optname, optval, optlen); in svc_getsockopt() 517 if (copy_to_user(optval, &ATM_SD(sock)->sap, sizeof(struct atm_sap))) { in svc_getsockopt()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 650 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old() argument 662 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt_old() 691 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_setsockopt() argument 702 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt() 719 if (copy_from_user((char *) &sec, optval, len)) { in rfcomm_sock_setsockopt() 738 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt() 759 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument 800 if (put_user(opt, (u32 __user *) optval)) in rfcomm_sock_getsockopt_old() 820 if (copy_to_user(optval, (char *) &cinfo, len)) in rfcomm_sock_getsockopt_old() 834 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument [all …]
|
/net/bridge/ |
D | br.c | 245 bool on = !!(bm->optval & BIT(opt_id)); in br_boolopt_multi_toggle() 261 u32 optval = 0; in br_boolopt_multi_get() local 265 optval |= (br_boolopt_get(br, opt_id) << opt_id); in br_boolopt_multi_get() 267 bm->optval = optval; in br_boolopt_multi_get()
|
/net/nfc/ |
D | llcp_sock.c | 221 char __user *optval, unsigned int optlen) in nfc_llcp_setsockopt() argument 244 if (get_user(opt, (u32 __user *) optval)) { in nfc_llcp_setsockopt() 266 if (get_user(opt, (u32 __user *) optval)) { in nfc_llcp_setsockopt() 294 char __user *optval, int __user *optlen) in nfc_llcp_getsockopt() argument 322 if (put_user(rw, (u32 __user *) optval)) in nfc_llcp_getsockopt() 331 if (put_user(miux, (u32 __user *) optval)) in nfc_llcp_getsockopt() 340 if (put_user(remote_miu, (u32 __user *) optval)) in nfc_llcp_getsockopt() 346 if (put_user(local->remote_lto / 10, (u32 __user *) optval)) in nfc_llcp_getsockopt() 352 if (put_user(llcp_sock->remote_rw, (u32 __user *) optval)) in nfc_llcp_getsockopt()
|