/net/sctp/ |
D | socket.c | 1415 char __user *optval, in sctp_getsockopt_connectx3() argument 1428 if (copy_from_user(¶m32, optval, sizeof(param32))) in sctp_getsockopt_connectx3() 1439 if (copy_from_user(¶m, optval, sizeof(param))) in sctp_getsockopt_connectx3() 1447 if (copy_to_user(optval, &assoc_id, sizeof(assoc_id))) in sctp_getsockopt_connectx3() 2223 char __user *optval, in sctp_setsockopt_disable_fragments() argument 2231 if (get_user(val, (int __user *)optval)) in sctp_setsockopt_disable_fragments() 2239 static int sctp_setsockopt_events(struct sock *sk, char __user *optval, in sctp_setsockopt_events() argument 2247 if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen)) in sctp_setsockopt_events() 2288 static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval, in sctp_setsockopt_autoclose() argument 2299 if (copy_from_user(&sp->autoclose, optval, optlen)) in sctp_setsockopt_autoclose() [all …]
|
/net/ipv6/ |
D | ipv6_sockglue.c | 127 char __user *optval, unsigned int optlen) in do_ipv6_setsockopt() argument 134 if (optval == NULL) in do_ipv6_setsockopt() 138 if (get_user(val, (int __user *) optval)) in do_ipv6_setsockopt() 147 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt() 381 optval = NULL; in do_ipv6_setsockopt() 382 else if (optval == NULL) in do_ipv6_setsockopt() 395 (struct ipv6_opt_hdr __user *)optval, in do_ipv6_setsockopt() 436 else if (optlen < sizeof(struct in6_pktinfo) || optval == NULL) in do_ipv6_setsockopt() 439 if (copy_from_user(&pkt, optval, sizeof(struct in6_pktinfo))) { in do_ipv6_setsockopt() 482 if (copy_from_user(opt+1, optval, optlen)) in do_ipv6_setsockopt() [all …]
|
D | raw.c | 922 char __user *optval, int optlen) in rawv6_seticmpfilter() argument 928 if (copy_from_user(&raw6_sk(sk)->filter, optval, optlen)) in rawv6_seticmpfilter() 939 char __user *optval, int __user *optlen) in rawv6_geticmpfilter() argument 953 if (copy_to_user(optval, &raw6_sk(sk)->filter, len)) in rawv6_geticmpfilter() 965 char __user *optval, unsigned int optlen) in do_rawv6_setsockopt() argument 970 if (get_user(val, (int __user *)optval)) in do_rawv6_setsockopt() 1007 char __user *optval, unsigned int optlen) in rawv6_setsockopt() argument 1016 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1021 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1024 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() [all …]
|
D | udp_impl.h | 17 char __user *optval, int __user *optlen); 19 char __user *optval, unsigned int optlen); 22 char __user *optval, unsigned int optlen); 24 char __user *optval, int __user *optlen);
|
D | udp.c | 1385 char __user *optval, unsigned int optlen) in udpv6_setsockopt() argument 1388 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udpv6_setsockopt() 1390 return ipv6_setsockopt(sk, level, optname, optval, optlen); in udpv6_setsockopt() 1395 char __user *optval, unsigned int optlen) in compat_udpv6_setsockopt() argument 1398 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udpv6_setsockopt() 1400 return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); in compat_udpv6_setsockopt() 1405 char __user *optval, int __user *optlen) in udpv6_getsockopt() argument 1408 return udp_lib_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt() 1409 return ipv6_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt() 1414 char __user *optval, int __user *optlen) in compat_udpv6_getsockopt() argument [all …]
|
/net/ipv4/ |
D | ip_sockglue.c | 474 int optname, char __user *optval, unsigned int optlen) in do_ip_setsockopt() argument 502 if (get_user(val, (int __user *) optval)) in do_ip_setsockopt() 507 if (get_user(ucval, (unsigned char __user *) optval)) in do_ip_setsockopt() 516 return ip_mroute_setsockopt(sk, optname, optval, optlen); in do_ip_setsockopt() 529 optval, optlen); in do_ip_setsockopt() 701 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt() 706 if (copy_from_user(&mreq, optval, in do_ip_setsockopt() 710 if (copy_from_user(&mreq.imr_address, optval, in do_ip_setsockopt() 759 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt() 763 if (copy_from_user(&mreq, optval, sizeof(struct ip_mreq))) in do_ip_setsockopt() [all …]
|
D | udp_impl.h | 14 char __user *optval, unsigned int optlen); 16 char __user *optval, int __user *optlen); 20 char __user *optval, unsigned int optlen); 22 char __user *optval, int __user *optlen);
|
D | raw.c | 764 static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen) in raw_seticmpfilter() argument 768 if (copy_from_user(&raw_sk(sk)->filter, optval, optlen)) in raw_seticmpfilter() 773 static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) in raw_geticmpfilter() argument 786 copy_to_user(optval, &raw_sk(sk)->filter, len)) in raw_geticmpfilter() 793 char __user *optval, unsigned int optlen) in do_raw_setsockopt() argument 799 return raw_seticmpfilter(sk, optval, optlen); in do_raw_setsockopt() 805 char __user *optval, unsigned int optlen) in raw_setsockopt() argument 808 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 809 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 814 char __user *optval, unsigned int optlen) in compat_raw_setsockopt() argument [all …]
|
D | tcp.c | 2368 int optname, char __user *optval, unsigned int optlen) in do_tcp_setsockopt() argument 2383 val = strncpy_from_user(name, optval, in do_tcp_setsockopt() 2402 if (get_user(val, (int __user *)optval)) in do_tcp_setsockopt() 2494 (struct tcp_repair_opt __user *)optval, in do_tcp_setsockopt() 2605 err = tp->af_specific->md5_parse(sk, optval, optlen); in do_tcp_setsockopt() 2647 int tcp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, in tcp_setsockopt() argument 2654 optval, optlen); in tcp_setsockopt() 2655 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in tcp_setsockopt() 2661 char __user *optval, unsigned int optlen) in compat_tcp_setsockopt() argument 2665 optval, optlen); in compat_tcp_setsockopt() [all …]
|
/net/rds/ |
D | af_rds.c | 215 static int rds_cancel_sent_to(struct rds_sock *rs, char __user *optval, in rds_cancel_sent_to() argument 232 if (copy_from_user(&sin, optval, sizeof(sin))) { in rds_cancel_sent_to() 242 static int rds_set_bool_option(unsigned char *optvar, char __user *optval, in rds_set_bool_option() argument 249 if (get_user(value, (int __user *) optval)) in rds_set_bool_option() 255 static int rds_cong_monitor(struct rds_sock *rs, char __user *optval, in rds_cong_monitor() argument 260 ret = rds_set_bool_option(&rs->rs_cong_monitor, optval, optlen); in rds_cong_monitor() 274 char __user *optval, unsigned int optlen) in rds_setsockopt() argument 286 ret = rds_cancel_sent_to(rs, optval, optlen); in rds_setsockopt() 289 ret = rds_get_mr(rs, optval, optlen); in rds_setsockopt() 292 ret = rds_get_mr_for_dest(rs, optval, optlen); in rds_setsockopt() [all …]
|
/net/dccp/ |
D | proto.c | 404 char __user *optval, unsigned int optlen) in dccp_setsockopt_service() argument 420 optval + sizeof(service), in dccp_setsockopt_service() 475 char __user *optval, unsigned int optlen) in dccp_setsockopt_ccid() argument 483 val = memdup_user(optval, optlen); in dccp_setsockopt_ccid() 500 char __user *optval, unsigned int optlen) in do_dccp_setsockopt() argument 516 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 522 if (get_user(val, (int __user *)optval)) in do_dccp_setsockopt() 526 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt() 566 char __user *optval, unsigned int optlen) in dccp_setsockopt() argument 570 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()
|
/net/ |
D | compat.c | 343 char __user *optval, unsigned int optlen) in do_set_attach_filter() argument 345 struct compat_sock_fprog __user *fprog32 = (struct compat_sock_fprog __user *)optval; in do_set_attach_filter() 363 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout() argument 365 struct compat_timeval __user *up = (struct compat_timeval __user *)optval; in do_set_sock_timeout() 385 char __user *optval, unsigned int optlen) in compat_sock_setsockopt() argument 389 optval, optlen); in compat_sock_setsockopt() 391 return do_set_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_setsockopt() 393 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt() 397 char __user *, optval, unsigned int, optlen) in COMPAT_SYSCALL_DEFINE5() argument 411 optname, optval, optlen); in COMPAT_SYSCALL_DEFINE5() [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 387 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt_old() argument 425 if (copy_to_user(optval, (char *) &opts, len)) in l2cap_sock_getsockopt_old() 457 if (put_user(opt, (u32 __user *) optval)) in l2cap_sock_getsockopt_old() 475 if (copy_to_user(optval, (char *) &cinfo, len)) in l2cap_sock_getsockopt_old() 490 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt() argument 501 return l2cap_sock_getsockopt_old(sock, optname, optval, optlen); in l2cap_sock_getsockopt() 531 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt() 543 (u32 __user *) optval)) in l2cap_sock_getsockopt() 550 (u32 __user *) optval)) in l2cap_sock_getsockopt() 565 if (copy_to_user(optval, (char *) &pwr, len)) in l2cap_sock_getsockopt() [all …]
|
D | sco.c | 788 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, un… in sco_sock_setsockopt() argument 807 if (get_user(opt, (u32 __user *) optval)) { in sco_sock_setsockopt() 828 if (copy_from_user((char *) &voice, optval, len)) { in sco_sock_setsockopt() 852 static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __use… in sco_sock_getsockopt_old() argument 880 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old() 898 if (copy_to_user(optval, (char *)&cinfo, len)) in sco_sock_getsockopt_old() 912 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, in… in sco_sock_getsockopt() argument 921 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt() 937 (u32 __user *) optval)) in sco_sock_getsockopt() 946 if (copy_to_user(optval, (char *)&voice, len)) in sco_sock_getsockopt()
|
/net/can/ |
D | raw.c | 449 char __user *optval, unsigned int optlen) in raw_setsockopt() argument 473 filter = memdup_user(optval, optlen); in raw_setsockopt() 477 if (copy_from_user(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt() 528 if (copy_from_user(&err_mask, optval, optlen)) in raw_setsockopt() 565 if (copy_from_user(&ro->loopback, optval, optlen)) in raw_setsockopt() 574 if (copy_from_user(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt() 583 if (copy_from_user(&ro->fd_frames, optval, optlen)) in raw_setsockopt() 595 char __user *optval, int __user *optlen) in raw_getsockopt() argument 618 if (copy_to_user(optval, ro->filter, len)) in raw_getsockopt() 658 if (copy_to_user(optval, val, len)) in raw_getsockopt()
|
/net/atm/ |
D | pvc.c | 65 char __user *optval, unsigned int optlen) in pvc_setsockopt() argument 71 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt() 77 char __user *optval, int __user *optlen) in pvc_getsockopt() argument 83 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 | 453 char __user *optval, unsigned int optlen) in svc_setsockopt() argument 466 if (copy_from_user(&vcc->sap, optval, optlen)) { in svc_setsockopt() 477 if (get_user(value, (int __user *)optval)) { in svc_setsockopt() 489 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt() 498 char __user *optval, int __user *optlen) in svc_getsockopt() argument 505 error = vcc_getsockopt(sock, level, optname, optval, optlen); in svc_getsockopt() 516 if (copy_to_user(optval, &ATM_SD(sock)->sap, sizeof(struct atm_sap))) { in svc_getsockopt()
|
D | common.c | 753 char __user *optval, unsigned int optlen) in vcc_setsockopt() argument 768 if (copy_from_user(&qos, optval, sizeof(qos))) in vcc_setsockopt() 782 if (get_user(value, (unsigned long __user *)optval)) in vcc_setsockopt() 796 return vcc->dev->ops->setsockopt(vcc, level, optname, optval, optlen); in vcc_setsockopt() 800 char __user *optval, int __user *optlen) in vcc_getsockopt() argument 815 return copy_to_user(optval, &vcc->qos, sizeof(vcc->qos)) in vcc_getsockopt() 819 (unsigned long __user *)optval) ? -EFAULT : 0; in vcc_getsockopt() 831 return copy_to_user(optval, &pvc, sizeof(pvc)) ? -EFAULT : 0; in vcc_getsockopt() 840 return vcc->dev->ops->getsockopt(vcc, level, optname, optval, len); in vcc_getsockopt()
|
/net/core/ |
D | sock.c | 383 static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen) in sock_set_timeout() argument 389 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout() 546 static int sock_setbindtodevice(struct sock *sk, char __user *optval, in sock_setbindtodevice() argument 574 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice() 604 static int sock_getbindtodevice(struct sock *sk, char __user *optval, in sock_getbindtodevice() argument 628 if (copy_to_user(optval, devname, len)) in sock_getbindtodevice() 677 char __user *optval, unsigned int optlen) in sock_setsockopt() argument 690 return sock_setbindtodevice(sk, optval, optlen); in sock_setsockopt() 695 if (get_user(val, (int __user *)optval)) in sock_setsockopt() 812 if (copy_from_user(&ling, optval, sizeof(ling))) { in sock_setsockopt() [all …]
|
/net/bluetooth/rfcomm/ |
D | sock.c | 648 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old() argument 660 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt_old() 689 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_setsockopt() argument 700 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt() 717 if (copy_from_user((char *) &sec, optval, len)) { in rfcomm_sock_setsockopt() 736 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt() 757 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument 798 if (put_user(opt, (u32 __user *) optval)) in rfcomm_sock_getsockopt_old() 818 if (copy_to_user(optval, (char *) &cinfo, len)) in rfcomm_sock_getsockopt_old() 832 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument [all …]
|
/net/nfc/ |
D | llcp_sock.c | 227 char __user *optval, unsigned int optlen) in nfc_llcp_setsockopt() argument 250 if (get_user(opt, (u32 __user *) optval)) { in nfc_llcp_setsockopt() 272 if (get_user(opt, (u32 __user *) optval)) { in nfc_llcp_setsockopt() 300 char __user *optval, int __user *optlen) in nfc_llcp_getsockopt() argument 328 if (put_user(rw, (u32 __user *) optval)) in nfc_llcp_getsockopt() 337 if (put_user(miux, (u32 __user *) optval)) in nfc_llcp_getsockopt() 346 if (put_user(remote_miu, (u32 __user *) optval)) in nfc_llcp_getsockopt() 352 if (put_user(local->remote_lto / 10, (u32 __user *) optval)) in nfc_llcp_getsockopt() 358 if (put_user(llcp_sock->remote_rw, (u32 __user *) optval)) in nfc_llcp_getsockopt()
|
/net/irda/ |
D | af_irda.c | 1900 char __user *optval, unsigned int optlen) in irda_setsockopt() argument 1937 if (copy_from_user(ias_opt, optval, optlen)) { in irda_setsockopt() 2068 if (copy_from_user(ias_opt, optval, optlen)) { in irda_setsockopt() 2125 if (get_user(opt, (int __user *)optval)) { in irda_setsockopt() 2149 if (get_user(opt, (int __user *)optval)) { in irda_setsockopt() 2172 if (get_user(opt, (int __user *)optval)) { in irda_setsockopt() 2250 char __user *optval, int __user *optlen) in irda_getsockopt() argument 2300 if (copy_to_user(optval, &list, offset)) in irda_getsockopt() 2311 if (copy_to_user(optval+offset, discoveries, total - offset)) in irda_getsockopt() 2329 if (copy_to_user(optval, &val, len)) { in irda_getsockopt() [all …]
|
/net/dccp/ccids/ |
D | ccid3.c | 466 u8 option, u8 *optval, u8 optlen) in ccid3_hc_tx_parse_options() argument 482 opt_val = ntohl(get_unaligned((__be32 *)optval)); in ccid3_hc_tx_parse_options() 528 u32 __user *optval, int __user *optlen) in ccid3_hc_tx_getsockopt() argument 553 if (put_user(len, optlen) || copy_to_user(optval, val, len)) in ccid3_hc_tx_getsockopt() 820 u32 __user *optval, int __user *optlen) in ccid3_hc_rx_getsockopt() argument 840 if (put_user(len, optlen) || copy_to_user(optval, val, len)) in ccid3_hc_rx_getsockopt()
|