diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-31 18:48:45 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-31 18:48:45 -0400 |
| commit | 24e8a2ca1f74574ad2ed1ac7af0260dd90fd911e (patch) | |
| tree | c863dd43c84579d853f3a2ae0ee6ead46c967703 /net/socket.c | |
| parent | 66f61c92889ff3ca365161fb29dd36d6354682ba (diff) | |
| parent | d724c9e54939a597592de3659541da11fc7aa112 (diff) | |
Merge tag 'kvm-ppc-fixes-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master
PPC KVM fixes for 5.2
- Several bug fixes for the new XIVE-native code.
- Replace kvm->lock by other mutexes in several places where we hold a
vcpu mutex, to avoid lock order inversions.
- Fix a lockdep warning on guest entry for radix-mode guests.
- Fix a bug causing user-visible corruption of SPRG3 on the host.
Diffstat (limited to 'net/socket.c')
| -rw-r--r-- | net/socket.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/net/socket.c b/net/socket.c index 472fbefa5d9b..72372dc5dd70 100644 --- a/net/socket.c +++ b/net/socket.c | |||
| @@ -645,14 +645,6 @@ void __sock_tx_timestamp(__u16 tsflags, __u8 *tx_flags) | |||
| 645 | } | 645 | } |
| 646 | EXPORT_SYMBOL(__sock_tx_timestamp); | 646 | EXPORT_SYMBOL(__sock_tx_timestamp); |
| 647 | 647 | ||
| 648 | /** | ||
| 649 | * sock_sendmsg - send a message through @sock | ||
| 650 | * @sock: socket | ||
| 651 | * @msg: message to send | ||
| 652 | * | ||
| 653 | * Sends @msg through @sock, passing through LSM. | ||
| 654 | * Returns the number of bytes sent, or an error code. | ||
| 655 | */ | ||
| 656 | INDIRECT_CALLABLE_DECLARE(int inet_sendmsg(struct socket *, struct msghdr *, | 648 | INDIRECT_CALLABLE_DECLARE(int inet_sendmsg(struct socket *, struct msghdr *, |
| 657 | size_t)); | 649 | size_t)); |
| 658 | static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) | 650 | static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) |
| @@ -663,6 +655,14 @@ static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) | |||
| 663 | return ret; | 655 | return ret; |
| 664 | } | 656 | } |
| 665 | 657 | ||
| 658 | /** | ||
| 659 | * sock_sendmsg - send a message through @sock | ||
| 660 | * @sock: socket | ||
| 661 | * @msg: message to send | ||
| 662 | * | ||
| 663 | * Sends @msg through @sock, passing through LSM. | ||
| 664 | * Returns the number of bytes sent, or an error code. | ||
| 665 | */ | ||
| 666 | int sock_sendmsg(struct socket *sock, struct msghdr *msg) | 666 | int sock_sendmsg(struct socket *sock, struct msghdr *msg) |
| 667 | { | 667 | { |
| 668 | int err = security_socket_sendmsg(sock, msg, | 668 | int err = security_socket_sendmsg(sock, msg, |
| @@ -875,15 +875,6 @@ void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, | |||
| 875 | } | 875 | } |
| 876 | EXPORT_SYMBOL_GPL(__sock_recv_ts_and_drops); | 876 | EXPORT_SYMBOL_GPL(__sock_recv_ts_and_drops); |
| 877 | 877 | ||
| 878 | /** | ||
| 879 | * sock_recvmsg - receive a message from @sock | ||
| 880 | * @sock: socket | ||
| 881 | * @msg: message to receive | ||
| 882 | * @flags: message flags | ||
| 883 | * | ||
| 884 | * Receives @msg from @sock, passing through LSM. Returns the total number | ||
| 885 | * of bytes received, or an error. | ||
| 886 | */ | ||
| 887 | INDIRECT_CALLABLE_DECLARE(int inet_recvmsg(struct socket *, struct msghdr *, | 878 | INDIRECT_CALLABLE_DECLARE(int inet_recvmsg(struct socket *, struct msghdr *, |
| 888 | size_t , int )); | 879 | size_t , int )); |
| 889 | static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, | 880 | static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, |
| @@ -893,6 +884,15 @@ static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, | |||
| 893 | msg_data_left(msg), flags); | 884 | msg_data_left(msg), flags); |
| 894 | } | 885 | } |
| 895 | 886 | ||
| 887 | /** | ||
| 888 | * sock_recvmsg - receive a message from @sock | ||
| 889 | * @sock: socket | ||
| 890 | * @msg: message to receive | ||
| 891 | * @flags: message flags | ||
| 892 | * | ||
| 893 | * Receives @msg from @sock, passing through LSM. Returns the total number | ||
| 894 | * of bytes received, or an error. | ||
| 895 | */ | ||
| 896 | int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags) | 896 | int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags) |
| 897 | { | 897 | { |
| 898 | int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags); | 898 | int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags); |
