From: Luis Henriques <luis.henriques@canonical.com>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
kernel-team@lists.ubuntu.com
Cc: David Miller <davem@davemloft.net>,
Hannes Frederic Sowa <hannes@stressinduktion.org>,
Luis Henriques <luis.henriques@canonical.com>
Subject: [PATCH 3.11 022/208] net: rework recvmsg handler msg_name and msg_namelen logic
Date: Thu, 19 Dec 2013 11:52:00 +0000 [thread overview]
Message-ID: <1387454106-19326-23-git-send-email-luis.henriques@canonical.com> (raw)
In-Reply-To: <1387454106-19326-1-git-send-email-luis.henriques@canonical.com>
3.11.10.2 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
commit f3d3342602f8bcbf37d7c46641cb9bca7618eb1c upstream.
This patch now always passes msg->msg_namelen as 0. recvmsg handlers must
set msg_namelen to the proper size <= sizeof(struct sockaddr_storage)
to return msg_name to the user.
This prevents numerous uninitialized memory leaks we had in the
recvmsg handlers and makes it harder for new code to accidentally leak
uninitialized memory.
Optimize for the case recvfrom is called with NULL as address. We don't
need to copy the address at all, so set it to NULL before invoking the
recvmsg handler. We can do so, because all the recvmsg handlers must
cope with the case a plain read() is called on them. read() also sets
msg_name to NULL.
Also document these changes in include/linux/net.h as suggested by David
Miller.
Changes since RFC:
Set msg->msg_name = NULL if user specified a NULL in msg_name but had a
non-null msg_namelen in verify_iovec/verify_compat_iovec. This doesn't
affect sendto as it would bail out earlier while trying to copy-in the
address. It also more naturally reflects the logic by the callers of
verify_iovec.
With this change in place I could remove "
if (!uaddr || msg_sys->msg_namelen == 0)
msg->msg_name = NULL
".
This change does not alter the user visible error logic as we ignore
msg_namelen as long as msg_name is NULL.
Also remove two unnecessary curly brackets in ___sys_recvmsg and change
comments to netdev style.
Cc: David Miller <davem@davemloft.net>
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ luis: backported to 3.11: adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
crypto/algif_hash.c | 2 --
crypto/algif_skcipher.c | 1 -
drivers/isdn/mISDN/socket.c | 13 ++++---------
drivers/net/ppp/pppoe.c | 2 --
include/linux/net.h | 8 ++++++++
net/appletalk/ddp.c | 16 +++++++---------
net/atm/common.c | 2 --
net/ax25/af_ax25.c | 4 ++--
net/bluetooth/af_bluetooth.c | 4 ----
net/bluetooth/hci_sock.c | 2 --
net/bluetooth/rfcomm/sock.c | 1 -
net/bluetooth/sco.c | 1 -
net/caif/caif_socket.c | 4 ----
net/compat.c | 3 ++-
net/core/iovec.c | 3 ++-
net/ipx/af_ipx.c | 3 +--
net/irda/af_irda.c | 4 ----
net/iucv/af_iucv.c | 2 --
net/key/af_key.c | 1 -
net/l2tp/l2tp_ppp.c | 2 --
net/llc/af_llc.c | 2 --
net/netlink/af_netlink.c | 2 --
net/netrom/af_netrom.c | 3 +--
net/nfc/llcp_sock.c | 2 --
net/nfc/rawsock.c | 2 --
net/packet/af_packet.c | 32 +++++++++++++++-----------------
net/rds/recv.c | 2 --
net/rose/af_rose.c | 8 +++++---
net/rxrpc/ar-recvmsg.c | 9 ++++++---
net/socket.c | 19 +++++++++++--------
net/tipc/socket.c | 6 ------
net/unix/af_unix.c | 5 -----
net/vmw_vsock/af_vsock.c | 2 --
net/vmw_vsock/vmci_transport.c | 2 --
net/x25/af_x25.c | 3 +--
35 files changed, 65 insertions(+), 112 deletions(-)
diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c
index 0262210..ef5356c 100644
--- a/crypto/algif_hash.c
+++ b/crypto/algif_hash.c
@@ -161,8 +161,6 @@ static int hash_recvmsg(struct kiocb *unused, struct socket *sock,
else if (len < ds)
msg->msg_flags |= MSG_TRUNC;
- msg->msg_namelen = 0;
-
lock_sock(sk);
if (ctx->more) {
ctx->more = 0;
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
index a1c4f0a..6a6dfc0 100644
--- a/crypto/algif_skcipher.c
+++ b/crypto/algif_skcipher.c
@@ -432,7 +432,6 @@ static int skcipher_recvmsg(struct kiocb *unused, struct socket *sock,
long copied = 0;
lock_sock(sk);
- msg->msg_namelen = 0;
for (iov = msg->msg_iov, iovlen = msg->msg_iovlen; iovlen > 0;
iovlen--, iov++) {
unsigned long seglen = iov->iov_len;
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c
index e47dcb9..5cefb47 100644
--- a/drivers/isdn/mISDN/socket.c
+++ b/drivers/isdn/mISDN/socket.c
@@ -117,7 +117,6 @@ mISDN_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
{
struct sk_buff *skb;
struct sock *sk = sock->sk;
- struct sockaddr_mISDN *maddr;
int copied, err;
@@ -135,9 +134,9 @@ mISDN_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
if (!skb)
return err;
- if (msg->msg_namelen >= sizeof(struct sockaddr_mISDN)) {
- msg->msg_namelen = sizeof(struct sockaddr_mISDN);
- maddr = (struct sockaddr_mISDN *)msg->msg_name;
+ if (msg->msg_name) {
+ struct sockaddr_mISDN *maddr = msg->msg_name;
+
maddr->family = AF_ISDN;
maddr->dev = _pms(sk)->dev->id;
if ((sk->sk_protocol == ISDN_P_LAPD_TE) ||
@@ -150,11 +149,7 @@ mISDN_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
maddr->sapi = _pms(sk)->ch.addr & 0xFF;
maddr->tei = (_pms(sk)->ch.addr >> 8) & 0xFF;
}
- } else {
- if (msg->msg_namelen)
- printk(KERN_WARNING "%s: too small namelen %d\n",
- __func__, msg->msg_namelen);
- msg->msg_namelen = 0;
+ msg->msg_namelen = sizeof(*maddr);
}
copied = skb->len + MISDN_HEADER_LEN;
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index 5f66e30..82ee6ed 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -979,8 +979,6 @@ static int pppoe_recvmsg(struct kiocb *iocb, struct socket *sock,
if (error < 0)
goto end;
- m->msg_namelen = 0;
-
if (skb) {
total_len = min_t(size_t, total_len, skb->len);
error = skb_copy_datagram_iovec(skb, 0, m->msg_iov, total_len);
diff --git a/include/linux/net.h b/include/linux/net.h
index 4f27575..8bd9d92 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -163,6 +163,14 @@ struct proto_ops {
#endif
int (*sendmsg) (struct kiocb *iocb, struct socket *sock,
struct msghdr *m, size_t total_len);
+ /* Notes for implementing recvmsg:
+ * ===============================
+ * msg->msg_namelen should get updated by the recvmsg handlers
+ * iff msg_name != NULL. It is by default 0 to prevent
+ * returning uninitialized memory to user space. The recvfrom
+ * handlers can assume that msg.msg_name is either NULL or has
+ * a minimum size of sizeof(struct sockaddr_storage).
+ */
int (*recvmsg) (struct kiocb *iocb, struct socket *sock,
struct msghdr *m, size_t total_len,
int flags);
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 7fee50d..7d424ac 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -1735,7 +1735,6 @@ static int atalk_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr
size_t size, int flags)
{
struct sock *sk = sock->sk;
- struct sockaddr_at *sat = (struct sockaddr_at *)msg->msg_name;
struct ddpehdr *ddp;
int copied = 0;
int offset = 0;
@@ -1764,14 +1763,13 @@ static int atalk_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr
}
err = skb_copy_datagram_iovec(skb, offset, msg->msg_iov, copied);
- if (!err) {
- if (sat) {
- sat->sat_family = AF_APPLETALK;
- sat->sat_port = ddp->deh_sport;
- sat->sat_addr.s_node = ddp->deh_snode;
- sat->sat_addr.s_net = ddp->deh_snet;
- }
- msg->msg_namelen = sizeof(*sat);
+ if (!err && msg->msg_name) {
+ struct sockaddr_at *sat = msg->msg_name;
+ sat->sat_family = AF_APPLETALK;
+ sat->sat_port = ddp->deh_sport;
+ sat->sat_addr.s_node = ddp->deh_snode;
+ sat->sat_addr.s_net = ddp->deh_snet;
+ msg->msg_namelen = sizeof(*sat);
}
skb_free_datagram(sk, skb); /* Free the datagram. */
diff --git a/net/atm/common.c b/net/atm/common.c
index 737bef5..7b49100 100644
--- a/net/atm/common.c
+++ b/net/atm/common.c
@@ -531,8 +531,6 @@ int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
struct sk_buff *skb;
int copied, error = -EINVAL;
- msg->msg_namelen = 0;
-
if (sock->state != SS_CONNECTED)
return -ENOTCONN;
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index 4b4d2b7..78c474f 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -1636,11 +1636,11 @@ static int ax25_recvmsg(struct kiocb *iocb, struct socket *sock,
skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
- if (msg->msg_namelen != 0) {
- struct sockaddr_ax25 *sax = (struct sockaddr_ax25 *)msg->msg_name;
+ if (msg->msg_name) {
ax25_digi digi;
ax25_address src;
const unsigned char *mac = skb_mac_header(skb);
+ struct sockaddr_ax25 *sax = msg->msg_name;
memset(sax, 0, sizeof(struct full_sockaddr_ax25));
ax25_addr_parse(mac + 1, skb->data - mac - 1, &src, NULL,
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 9096137..6629cdc 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -221,8 +221,6 @@ int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
if (flags & (MSG_OOB))
return -EOPNOTSUPP;
- msg->msg_namelen = 0;
-
skb = skb_recv_datagram(sk, flags, noblock, &err);
if (!skb) {
if (sk->sk_shutdown & RCV_SHUTDOWN)
@@ -287,8 +285,6 @@ int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
if (flags & MSG_OOB)
return -EOPNOTSUPP;
- msg->msg_namelen = 0;
-
BT_DBG("sk %p size %zu", sk, size);
lock_sock(sk);
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 9bd7d95..fa4bf66 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -752,8 +752,6 @@ static int hci_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
if (!skb)
return err;
- msg->msg_namelen = 0;
-
copied = skb->len;
if (len < copied) {
msg->msg_flags |= MSG_TRUNC;
diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c
index 30b3721..c1c6028 100644
--- a/net/bluetooth/rfcomm/sock.c
+++ b/net/bluetooth/rfcomm/sock.c
@@ -608,7 +608,6 @@ static int rfcomm_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) {
rfcomm_dlc_accept(d);
- msg->msg_namelen = 0;
return 0;
}
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index e7bd4ee..2bb1d3a 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -700,7 +700,6 @@ static int sco_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) {
sco_conn_defer_accept(pi->conn->hcon, 0);
sk->sk_state = BT_CONFIG;
- msg->msg_namelen = 0;
release_sock(sk);
return 0;
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
index 05a41c7..d6be3ed 100644
--- a/net/caif/caif_socket.c
+++ b/net/caif/caif_socket.c
@@ -286,8 +286,6 @@ static int caif_seqpkt_recvmsg(struct kiocb *iocb, struct socket *sock,
if (m->msg_flags&MSG_OOB)
goto read_error;
- m->msg_namelen = 0;
-
skb = skb_recv_datagram(sk, flags, 0 , &ret);
if (!skb)
goto read_error;
@@ -361,8 +359,6 @@ static int caif_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
if (flags&MSG_OOB)
goto out;
- msg->msg_namelen = 0;
-
/*
* Lock the socket to prevent queue disordering
* while sleeps in memcpy_tomsg
diff --git a/net/compat.c b/net/compat.c
index 8903258..618c6a8 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -93,7 +93,8 @@ int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov,
if (err < 0)
return err;
}
- kern_msg->msg_name = kern_address;
+ if (kern_msg->msg_name)
+ kern_msg->msg_name = kern_address;
} else
kern_msg->msg_name = NULL;
diff --git a/net/core/iovec.c b/net/core/iovec.c
index de178e4..9a31515 100644
--- a/net/core/iovec.c
+++ b/net/core/iovec.c
@@ -48,7 +48,8 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr_storage *a
if (err < 0)
return err;
}
- m->msg_name = address;
+ if (m->msg_name)
+ m->msg_name = address;
} else {
m->msg_name = NULL;
}
diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
index 7a1e0fc..e096025 100644
--- a/net/ipx/af_ipx.c
+++ b/net/ipx/af_ipx.c
@@ -1823,8 +1823,6 @@ static int ipx_recvmsg(struct kiocb *iocb, struct socket *sock,
if (skb->tstamp.tv64)
sk->sk_stamp = skb->tstamp;
- msg->msg_namelen = sizeof(*sipx);
-
if (sipx) {
sipx->sipx_family = AF_IPX;
sipx->sipx_port = ipx->ipx_source.sock;
@@ -1832,6 +1830,7 @@ static int ipx_recvmsg(struct kiocb *iocb, struct socket *sock,
sipx->sipx_network = IPX_SKB_CB(skb)->ipx_source_net;
sipx->sipx_type = ipx->ipx_type;
sipx->sipx_zero = 0;
+ msg->msg_namelen = sizeof(*sipx);
}
rc = copied;
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c
index 0578d4f..a5e62ef5 100644
--- a/net/irda/af_irda.c
+++ b/net/irda/af_irda.c
@@ -1385,8 +1385,6 @@ static int irda_recvmsg_dgram(struct kiocb *iocb, struct socket *sock,
IRDA_DEBUG(4, "%s()\n", __func__);
- msg->msg_namelen = 0;
-
skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT,
flags & MSG_DONTWAIT, &err);
if (!skb)
@@ -1451,8 +1449,6 @@ static int irda_recvmsg_stream(struct kiocb *iocb, struct socket *sock,
target = sock_rcvlowat(sk, flags & MSG_WAITALL, size);
timeo = sock_rcvtimeo(sk, noblock);
- msg->msg_namelen = 0;
-
do {
int chunk;
struct sk_buff *skb = skb_dequeue(&sk->sk_receive_queue);
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index 168aff5..c4b7218 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -1324,8 +1324,6 @@ static int iucv_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
int err = 0;
u32 offset;
- msg->msg_namelen = 0;
-
if ((sk->sk_state == IUCV_DISCONN) &&
skb_queue_empty(&iucv->backlog_skb_q) &&
skb_queue_empty(&sk->sk_receive_queue) &&
diff --git a/net/key/af_key.c b/net/key/af_key.c
index ab8bd2c..66f51c5 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -3623,7 +3623,6 @@ static int pfkey_recvmsg(struct kiocb *kiocb,
if (flags & ~(MSG_PEEK|MSG_DONTWAIT|MSG_TRUNC|MSG_CMSG_COMPAT))
goto out;
- msg->msg_namelen = 0;
skb = skb_recv_datagram(sk, flags, flags & MSG_DONTWAIT, &err);
if (skb == NULL)
goto out;
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index 8c46b27..44441c0 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -197,8 +197,6 @@ static int pppol2tp_recvmsg(struct kiocb *iocb, struct socket *sock,
if (sk->sk_state & PPPOX_BOUND)
goto end;
- msg->msg_namelen = 0;
-
err = 0;
skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT,
flags & MSG_DONTWAIT, &err);
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 48aaa89..8870988 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -720,8 +720,6 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,
int target; /* Read at least this many bytes */
long timeo;
- msg->msg_namelen = 0;
-
lock_sock(sk);
copied = -ENOTCONN;
if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN))
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 0c61b59..90b654b 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2317,8 +2317,6 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock,
}
#endif
- msg->msg_namelen = 0;
-
copied = data_skb->len;
if (len < copied) {
msg->msg_flags |= MSG_TRUNC;
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
index 698814b..53c19a3 100644
--- a/net/netrom/af_netrom.c
+++ b/net/netrom/af_netrom.c
@@ -1179,10 +1179,9 @@ static int nr_recvmsg(struct kiocb *iocb, struct socket *sock,
sax->sax25_family = AF_NETROM;
skb_copy_from_linear_data_offset(skb, 7, sax->sax25_call.ax25_call,
AX25_ADDR_LEN);
+ msg->msg_namelen = sizeof(*sax);
}
- msg->msg_namelen = sizeof(*sax);
-
skb_free_datagram(sk, skb);
release_sock(sk);
diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c
index d308402..824c605 100644
--- a/net/nfc/llcp_sock.c
+++ b/net/nfc/llcp_sock.c
@@ -807,8 +807,6 @@ static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
pr_debug("%p %zu\n", sk, len);
- msg->msg_namelen = 0;
-
lock_sock(sk);
if (sk->sk_state == LLCP_CLOSED &&
diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c
index 313bf1b..5d11f4a 100644
--- a/net/nfc/rawsock.c
+++ b/net/nfc/rawsock.c
@@ -241,8 +241,6 @@ static int rawsock_recvmsg(struct kiocb *iocb, struct socket *sock,
if (!skb)
return rc;
- msg->msg_namelen = 0;
-
copied = skb->len;
if (len < copied) {
msg->msg_flags |= MSG_TRUNC;
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 75c8bbf..739c50d 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -2694,7 +2694,6 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
struct sock *sk = sock->sk;
struct sk_buff *skb;
int copied, err;
- struct sockaddr_ll *sll;
int vnet_hdr_len = 0;
err = -EINVAL;
@@ -2777,22 +2776,10 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
goto out_free;
}
- /*
- * If the address length field is there to be filled in, we fill
- * it in now.
- */
-
- sll = &PACKET_SKB_CB(skb)->sa.ll;
- if (sock->type == SOCK_PACKET)
- msg->msg_namelen = sizeof(struct sockaddr_pkt);
- else
- msg->msg_namelen = sll->sll_halen + offsetof(struct sockaddr_ll, sll_addr);
-
- /*
- * You lose any data beyond the buffer you gave. If it worries a
- * user program they can ask the device for its MTU anyway.
+ /* You lose any data beyond the buffer you gave. If it worries
+ * a user program they can ask the device for its MTU
+ * anyway.
*/
-
copied = skb->len;
if (copied > len) {
copied = len;
@@ -2805,9 +2792,20 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
sock_recv_ts_and_drops(msg, sk, skb);
- if (msg->msg_name)
+ if (msg->msg_name) {
+ /* If the address length field is there to be filled
+ * in, we fill it in now.
+ */
+ if (sock->type == SOCK_PACKET) {
+ msg->msg_namelen = sizeof(struct sockaddr_pkt);
+ } else {
+ struct sockaddr_ll *sll = &PACKET_SKB_CB(skb)->sa.ll;
+ msg->msg_namelen = sll->sll_halen +
+ offsetof(struct sockaddr_ll, sll_addr);
+ }
memcpy(msg->msg_name, &PACKET_SKB_CB(skb)->sa,
msg->msg_namelen);
+ }
if (pkt_sk(sk)->auxdata) {
struct tpacket_auxdata aux;
diff --git a/net/rds/recv.c b/net/rds/recv.c
index 9f0f17c..de339b2 100644
--- a/net/rds/recv.c
+++ b/net/rds/recv.c
@@ -410,8 +410,6 @@ int rds_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
rdsdebug("size %zu flags 0x%x timeo %ld\n", size, msg_flags, timeo);
- msg->msg_namelen = 0;
-
if (msg_flags & MSG_OOB)
goto out;
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c
index e98fcfb..33af772 100644
--- a/net/rose/af_rose.c
+++ b/net/rose/af_rose.c
@@ -1216,7 +1216,6 @@ static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,
{
struct sock *sk = sock->sk;
struct rose_sock *rose = rose_sk(sk);
- struct sockaddr_rose *srose = (struct sockaddr_rose *)msg->msg_name;
size_t copied;
unsigned char *asmptr;
struct sk_buff *skb;
@@ -1252,8 +1251,11 @@ static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,
skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
- if (srose != NULL) {
- memset(srose, 0, msg->msg_namelen);
+ if (msg->msg_name) {
+ struct sockaddr_rose *srose;
+
+ memset(msg->msg_name, 0, sizeof(struct full_sockaddr_rose));
+ srose = msg->msg_name;
srose->srose_family = AF_ROSE;
srose->srose_addr = rose->dest_addr;
srose->srose_call = rose->dest_call;
diff --git a/net/rxrpc/ar-recvmsg.c b/net/rxrpc/ar-recvmsg.c
index 4b48687..898492a 100644
--- a/net/rxrpc/ar-recvmsg.c
+++ b/net/rxrpc/ar-recvmsg.c
@@ -143,10 +143,13 @@ int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock,
/* copy the peer address and timestamp */
if (!continue_call) {
- if (msg->msg_name && msg->msg_namelen > 0)
+ if (msg->msg_name) {
+ size_t len =
+ sizeof(call->conn->trans->peer->srx);
memcpy(msg->msg_name,
- &call->conn->trans->peer->srx,
- sizeof(call->conn->trans->peer->srx));
+ &call->conn->trans->peer->srx, len);
+ msg->msg_namelen = len;
+ }
sock_recv_ts_and_drops(msg, &rx->sk, skb);
}
diff --git a/net/socket.c b/net/socket.c
index 4b94643..5158ff7 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1849,8 +1849,10 @@ SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size,
msg.msg_iov = &iov;
iov.iov_len = size;
iov.iov_base = ubuf;
- msg.msg_name = (struct sockaddr *)&address;
- msg.msg_namelen = sizeof(address);
+ /* Save some cycles and don't copy the address if not needed */
+ msg.msg_name = addr ? (struct sockaddr *)&address : NULL;
+ /* We assume all kernel code knows the size of sockaddr_storage */
+ msg.msg_namelen = 0;
if (sock->file->f_flags & O_NONBLOCK)
flags |= MSG_DONTWAIT;
err = sock_recvmsg(sock, &msg, size, flags);
@@ -2230,16 +2232,14 @@ static int ___sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
goto out;
}
- /*
- * Save the user-mode address (verify_iovec will change the
- * kernel msghdr to use the kernel address space)
+ /* Save the user-mode address (verify_iovec will change the
+ * kernel msghdr to use the kernel address space)
*/
-
uaddr = (__force void __user *)msg_sys->msg_name;
uaddr_len = COMPAT_NAMELEN(msg);
- if (MSG_CMSG_COMPAT & flags) {
+ if (MSG_CMSG_COMPAT & flags)
err = verify_compat_iovec(msg_sys, iov, &addr, VERIFY_WRITE);
- } else
+ else
err = verify_iovec(msg_sys, iov, &addr, VERIFY_WRITE);
if (err < 0)
goto out_freeiov;
@@ -2248,6 +2248,9 @@ static int ___sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
cmsg_ptr = (unsigned long)msg_sys->msg_control;
msg_sys->msg_flags = flags & (MSG_CMSG_CLOEXEC|MSG_CMSG_COMPAT);
+ /* We assume all kernel code knows the size of sockaddr_storage */
+ msg_sys->msg_namelen = 0;
+
if (sock->file->f_flags & O_NONBLOCK)
flags |= MSG_DONTWAIT;
err = (nosec ? sock_recvmsg_nosec : sock_recvmsg)(sock, msg_sys,
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 6cc7ddd..dffdbea 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -984,9 +984,6 @@ static int recv_msg(struct kiocb *iocb, struct socket *sock,
goto exit;
}
- /* will be updated in set_orig_addr() if needed */
- m->msg_namelen = 0;
-
timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
restart:
@@ -1095,9 +1092,6 @@ static int recv_stream(struct kiocb *iocb, struct socket *sock,
goto exit;
}
- /* will be updated in set_orig_addr() if needed */
- m->msg_namelen = 0;
-
target = sock_rcvlowat(sk, flags & MSG_WAITALL, buf_len);
timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index e64bbcf..6c66e8d 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1762,7 +1762,6 @@ static void unix_copy_addr(struct msghdr *msg, struct sock *sk)
{
struct unix_sock *u = unix_sk(sk);
- msg->msg_namelen = 0;
if (u->addr) {
msg->msg_namelen = u->addr->len;
memcpy(msg->msg_name, u->addr->name, u->addr->len);
@@ -1786,8 +1785,6 @@ static int unix_dgram_recvmsg(struct kiocb *iocb, struct socket *sock,
if (flags&MSG_OOB)
goto out;
- msg->msg_namelen = 0;
-
err = mutex_lock_interruptible(&u->readlock);
if (err) {
err = sock_intr_errno(sock_rcvtimeo(sk, noblock));
@@ -1927,8 +1924,6 @@ static int unix_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
target = sock_rcvlowat(sk, flags&MSG_WAITALL, size);
timeo = sock_rcvtimeo(sk, flags&MSG_DONTWAIT);
- msg->msg_namelen = 0;
-
/* Lock the socket to prevent queue disordering
* while sleeps in memcpy_tomsg
*/
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 4d93346..16f721c 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -1663,8 +1663,6 @@ vsock_stream_recvmsg(struct kiocb *kiocb,
vsk = vsock_sk(sk);
err = 0;
- msg->msg_namelen = 0;
-
lock_sock(sk);
if (sk->sk_state != SS_CONNECTED) {
diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index ffc11df..73ca104 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -1746,8 +1746,6 @@ static int vmci_transport_dgram_dequeue(struct kiocb *kiocb,
if (flags & MSG_OOB || flags & MSG_ERRQUEUE)
return -EOPNOTSUPP;
- msg->msg_namelen = 0;
-
/* Retrieve the head sk_buff from the socket's receive queue. */
err = 0;
skb = skb_recv_datagram(&vsk->sk, flags, noblock, &err);
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index 45a3ab5..7622789 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -1340,10 +1340,9 @@ static int x25_recvmsg(struct kiocb *iocb, struct socket *sock,
if (sx25) {
sx25->sx25_family = AF_X25;
sx25->sx25_addr = x25->dest_addr;
+ msg->msg_namelen = sizeof(*sx25);
}
- msg->msg_namelen = sizeof(struct sockaddr_x25);
-
x25_check_rbuf(sk);
rc = copied;
out_free_dgram:
--
1.8.3.2
next prev parent reply other threads:[~2013-12-19 11:55 UTC|newest]
Thread overview: 209+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 11:51 [3.11.y.z extended stable] Linux 3.11.10.2 stable review Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 001/208] GFS2: Fix ref count bug relating to atomic_open Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 002/208] aio: restore locking of ioctx list on removal Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 003/208] mmc: block: fix a bug of error handling in MMC driver Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 004/208] ipv6: fix headroom calculation in udp6_ufo_fragment Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 005/208] net/mlx4_en: Fixed crash when port type is changed Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 006/208] net: Fix "ip rule delete table 256" Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 007/208] ipv6: use rt6_get_dflt_router to get default router in rt6_route_rcv Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 008/208] ipv6: protect for_each_sk_fl_rcu in mem_check with rcu_read_lock_bh Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 009/208] random32: fix off-by-one in seeding requirement Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 010/208] bonding: don't permit to use ARP monitoring in 802.3ad mode Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 011/208] usbnet: fix status interrupt urb handling Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 012/208] 6lowpan: Uncompression of traffic class field was incorrect Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 013/208] tuntap: limit head length of skb allocated Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 014/208] macvtap: " Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 015/208] tcp: tsq: restore minimal amount of queueing Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 016/208] bonding: fix two race conditions in bond_store_updelay/downdelay Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 017/208] net-tcp: fix panic in tcp_fastopen_cache_set() Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 018/208] isdnloop: use strlcpy() instead of strcpy() Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 019/208] connector: improved unaligned access error fix Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 020/208] ipv4: fix possible seqlock deadlock Luis Henriques
2013-12-19 11:51 ` [PATCH 3.11 021/208] inet: prevent leakage of uninitialized memory to user in recv syscalls Luis Henriques
2013-12-19 11:52 ` Luis Henriques [this message]
2013-12-19 11:52 ` [PATCH 3.11 023/208] net: add BUG_ON if kernel advertises msg_namelen > sizeof(struct sockaddr_storage) Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 024/208] inet: fix addr_len/msg->msg_namelen assignment in recv_error and rxpmtu functions Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 025/208] net: clamp ->msg_namelen instead of returning an error Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 026/208] ipv6: fix leaking uninitialized port number of offender sockaddr Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 027/208] ip6_output: fragment outgoing reassembled skb properly Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 028/208] netfilter: push reasm skb through instead of original frag skbs Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 029/208] xfrm: Release dst if this dst is improper for vti tunnel Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 030/208] atm: idt77252: fix dev refcnt leak Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 031/208] tcp: don't update snd_nxt, when a socket is switched from repair mode Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 032/208] ipv4: fix race in concurrent ip_route_input_slow() Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 033/208] net: core: Always propagate flag changes to interfaces Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 034/208] bridge: flush br's address entry in fdb when remove the Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 035/208] packet: fix use after free race in send path when dev is released Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 036/208] af_packet: block BH in prb_shutdown_retire_blk_timer() Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 037/208] r8169: check ALDPS bit and disable it if enabled for the 8168g Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 038/208] net: 8139cp: fix a BUG_ON triggered by wrong bytes_compl Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 039/208] net: update consumers of MSG_MORE to recognize MSG_SENDPAGE_NOTLAST Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 040/208] team: fix master carrier set when user linkup is enabled Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 041/208] inet: fix possible seqlock deadlocks Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 042/208] ipv6: fix possible seqlock deadlock in ip6_finish_output2 Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 043/208] {pktgen, xfrm} Update IPv4 header total len and checksum after tranformation Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 044/208] ping: prevent NULL pointer dereference on write to msg_name Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 045/208] gro: Only verify TCP checksums for candidates Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 046/208] gro: Clean up tcpX_gro_receive checksum verification Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 047/208] sch_tbf: handle too small burst Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 048/208] via-velocity: fix netif_receive_skb use in irq disabled section Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 049/208] net: smc91: fix crash regression on the versatile Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 050/208] NFSv4: Update list of irrecoverable errors on DELEGRETURN Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 051/208] Update of blkg_stat and blkg_rwstat may happen in bh context. While u64_stats_fetch_retry is only preempt_disable on 32bit UP system. This is not enough to avoid preemption by bh and may read strange 64 bit value Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 052/208] time: Fix 1ns/tick drift w/ GENERIC_TIME_VSYSCALL_OLD Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 053/208] spi/pxa2xx: add new ACPI IDs Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 054/208] ASoC: wm8990: Mark the register map as dirty when powering down Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 055/208] ARM: mvebu: use the virtual CPU registers to access coherency registers Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 056/208] can: sja1000: fix {pre,post}_irq() handling and IRQ handler return value Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 057/208] can: c_can: don't call pm_runtime_get_sync() from interrupt context Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 058/208] irq: Enable all irqs unconditionally in irq_resume Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 059/208] ARM: OMAPFB: panel-sony-acx565akm: fix bad unlock balance Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 060/208] can: flexcan: use correct clock as base for bit rate calculation Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 061/208] xen/gnttab: leave lazy MMU mode in the case of a m2p override failure Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 062/208] ARM: OMAP2+: Disable POSTED mode for errata i103 and i767 Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 063/208] [SCSI] libsas: fix usage of ata_tf_to_fis Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 064/208] crypto: authenc - Find proper IV address in ablkcipher callback Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 065/208] crypto: s390 - Fix aes-xts parameter corruption Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 066/208] crypto: ccm - Fix handling of zero plaintext when computing mac Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 067/208] efivars, efi-pstore: Hold off deletion of sysfs entry until the scan is completed Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 068/208] [SCSI] Disable WRITE SAME for RAID and virtual host adapter drivers Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 069/208] ALSA: hda - Add mono speaker quirk for Dell Inspiron 5439 Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 070/208] efi-pstore: Make efi-pstore return a unique id Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 071/208] ALSA: hda - Fix silent output on ASUS W7J laptop Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 072/208] ARM: fix booting low-vectors machines Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 073/208] ARM: footbridge: fix VGA initialisation Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 074/208] parisc: fix mmap(MAP_FIXED|MAP_SHARED) to already mmapped address Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 075/208] [SCSI] hpsa: do not discard scsi status on aborted commands Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 076/208] ARM: footbridge: fix EBSA285 LEDs Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 077/208] [SCSI] hpsa: return 0 from driver probe function on success, not 1 Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 078/208] ALSA: hda - Fix bad EAPD setup for HP machines with AD1984A Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 079/208] ARM: at91: sama5d3: reduce TWI internal clock frequency Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 080/208] ALSA: hda - Another fixup for ASUS laptop with ALC660 codec Luis Henriques
2013-12-19 11:52 ` [PATCH 3.11 081/208] ALSA: hda - Use always amps for auto-mute on AD1986A codec Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 082/208] vfs: fix subtle use-after-free of pipe_inode_info Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 083/208] [SCSI] enclosure: fix WARN_ON in dual path device removing Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 084/208] ALSA: hda - Fix headset mic input after muted internal mic (Dell/Realtek) Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 085/208] powerpc/gpio: Fix the wrong GPIO input data on MPC8572/MPC8536 Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 086/208] [SCSI] bfa: Fix crash when symb name set for offline vport Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 087/208] ASoC: wm8731: fix dsp mode configuration Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 088/208] cpuidle: Check for dev before deregistering it Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 089/208] x86-64, build: Always pass in -mno-sse Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 090/208] ALSA: hda - Fix silent output on MacBook Air 2,1 Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 091/208] xfs: add capability check to free eofblocks ioctl Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 092/208] elevator: Fix a race in elevator switching and md device initialization Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 093/208] elevator: acquire q->sysfs_lock in elevator_change() Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 094/208] drm/radeon/audio: improve ACR calculation Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 095/208] drm/radeon/audio: correct ACR table Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 096/208] iommu/vt-d: Fixed interaction of VFIO_IOMMU_MAP_DMA with IOMMU address limits Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 097/208] ntp: Make periodic RTC update more reliable Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 098/208] HID: lg: fix Report Descriptor for Logitech MOMO Force (Black) Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 099/208] iommu: Remove stack trace from broken irq remapping warning Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 100/208] video: kyro: fix incorrect sizes when copying to userspace Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 101/208] HID: hid-elo: some systems cannot stomach work around Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 102/208] HID: usbhid: quirk for Synaptics Large Touchccreen Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 103/208] HID: usbhid: quirk for SiS Touchscreen Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 104/208] Input: allow deselecting serio drivers even without CONFIG_EXPERT Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 105/208] Input: mousedev - allow disabling " Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 106/208] iwlwifi: dvm: don't override mac80211's queue setting Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 107/208] tg3: avoid double-freeing of rx data memory Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 108/208] lib/genalloc.c: fix overflow of ending address of memory chunk Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 109/208] mei: me: add Lynx Point Wellsburg work station device id Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 110/208] mei: add 9 series PCH mei device ids Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 111/208] intel_pstate: fix no_turbo Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 112/208] ARM: mvebu: fix second and third PCIe unit of Armada XP mv78260 Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 113/208] ARM: mvebu: second PCIe unit of Armada XP mv78230 is only x1 capable Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 114/208] NFSv4 wait on recovery for async session errors Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 115/208] sched: Avoid throttle_cfs_rq() racing with period_timer stopping Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 116/208] nfs: fix do_div() warning by instead using sector_div() Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 117/208] ALSA: hda - A Dell headset detection quirk Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 118/208] ALSA: hda - Another " Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 119/208] ALSA: hda - One more " Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 120/208] dm delay: fix a possible deadlock due to shared workqueue Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 121/208] Revert "mac80211: allow disable power save in mesh" Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 122/208] mac80211: fix scheduled scan rtnl deadlock Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 123/208] mac80211: don't attempt to reorder multicast frames Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 124/208] USB: serial: fix race in generic write Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 125/208] usb: gadget: composite: reset delayed_status on reset_config Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 126/208] usb: musb: cancel work on removal Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 127/208] usb: musb: only cancel work if it is initialized Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 128/208] usb: dwc3: fix implementation of endpoint wedge Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 129/208] mwifiex: fix memory leak issue for ibss join Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 130/208] iwlwifi: mvm: check sta_id/drain values in debugfs Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 131/208] iwlwifi: pcie: fix interrupt coalescing for 7260 / 3160 Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 132/208] drm/i915: Fix pipe CSC post offset calculation Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 133/208] [media] af9035: add [0413:6a05] Leadtek WinFast DTV Dongle Dual Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 134/208] [media] bttv: don't setup the controls if there are no video devices Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 135/208] [media] saa7164: fix return value check in saa7164_initdev() Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 136/208] [media] tef6862/radio-tea5764: actually assign clamp result Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 137/208] [media] wm8775: fix broken audio routing Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 138/208] ath9k: Fix QuickDrop usage Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 139/208] ath9k: Fix XLNA bias strength Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 140/208] drm/radeon: fix typo in fetching mpll params Luis Henriques
2013-12-19 11:53 ` [PATCH 3.11 141/208] drm/radeon: program DCE2 audio dto just like DCE3 Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 142/208] USB: serial: option: blacklist interface 1 for Huawei E173s-6 Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 143/208] USB: option: support new huawei devices Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 144/208] USB: spcp8x5: correct handling of CS5 setting Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 145/208] USB: mos7840: " Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 146/208] USB: ftdi_sio: fixed handling of unsupported CSIZE setting Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 147/208] USB: pl2303: fixed handling of CS5 setting Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 148/208] [media] af9035: fix broken I2C and USB I/O Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 149/208] [media] af9033: fix broken I2C Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 150/208] [media] af9035: unlock on error in af9035_i2c_master_xfer() Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 151/208] ARM: highbank: handle soft poweroff and reset key events Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 152/208] USB: cdc-acm: Added support for the Lenovo RD02-D400 USB Modem Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 153/208] drm/radeon: fixup bad vram size on SI Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 154/208] drm/radeon: atombios hw i2c fixes Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 155/208] radeon/i2c: do not count reg index in number of i2c byte we are writing Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 156/208] drm/radeon/atom: fix bus probes when hw_i2c is set (v2) Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 157/208] usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 158/208] drivers/char/i8k.c: add Dell XPLS L421X Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 159/208] iommu/arm-smmu: use mutex instead of spinlock for locking page tables Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 160/208] arm64: mm: Fix PMD_SECT_PROT_NONE definition Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 161/208] PCI: Disable Bus Master only on kexec reboot Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 162/208] crypto: scatterwalk - Set the chain pointer indication bit Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 163/208] crypto: scatterwalk - Use sg_chain_ptr on chain entries Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 164/208] ARM: 7912/1: check stack pointer in get_wchan Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 165/208] ARM: 7913/1: fix framepointer check in unwind_frame Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 166/208] x86, build: Pass in additional -mno-mmx, -mno-sse options Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 167/208] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 168/208] ALSA: memalloc.h - fix wrong truncation of dma_addr_t Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 169/208] ALSA: compress: Fix 64bit ABI incompatibility Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 170/208] xfs: growfs overruns AGFL buffer on V4 filesystems Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 171/208] ALSA: hda - Mute all aamix inputs as default Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 172/208] dm snapshot: avoid snapshot space leak on crash Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 173/208] dm table: fail dm_table_create on dm_round_up overflow Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 174/208] dm space map metadata: return on failure in sm_metadata_new_block Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 175/208] dm thin: switch to read only mode if a mapping insert fails Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 176/208] dm thin: re-establish read-only state when switching to fail mode Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 177/208] dm thin: allow pool in read-only mode to transition to read-write mode Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 178/208] x86, build, icc: Remove uninitialized_var() from compiler-intel.h Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 179/208] net: allwinner: emac: Add missing free_irq Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 180/208] x86, efi: Don't use (U)EFI time services on 32 bit Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 181/208] dm bufio: initialize read-only module parameters Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 182/208] nfsd: when reusing an existing repcache entry, unhash it first Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 183/208] ALSA: hda - hdmi: Fix IEC958 ctl indexes for some simple HDMI devices Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 184/208] ALSA: hda - Add static DAC/pin mapping for AD1986A codec Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 185/208] hwmon: HIH-6130: Support I2C bus drivers without I2C_FUNC_SMBUS_QUICK Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 186/208] ARM: pxa: tosa: fix keys mapping Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 187/208] ARM: pxa: prevent PXA270 occasional reboot freezes Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 188/208] hwmon: (w83l786ng) Fix fan speed control mode setting and reporting Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 189/208] hwmon: (w83l768ng) Fix fan speed control range Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 190/208] hwmon: Prevent some divide by zeros in FAN_TO_REG() Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 191/208] btrfs: call mnt_drop_write after interrupted subvol deletion Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 192/208] Btrfs: fix access_ok() check in btrfs_ioctl_send() Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 193/208] futex: fix handling of read-only-mapped hugepages Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 194/208] KVM: Improve create VCPU parameter (CVE-2013-4587) Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 195/208] KVM: x86: Fix potential divide by 0 in lapic (CVE-2013-6367) Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 196/208] KVM: x86: Convert vapic synchronization to _cached functions (CVE-2013-6368) Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 197/208] KVM: x86: fix guest-initiated crash with x2apic (CVE-2013-6376) Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 198/208] selinux: handle TCP SYN-ACK packets correctly in selinux_ip_output() Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 199/208] selinux: handle TCP SYN-ACK packets correctly in selinux_ip_postroute() Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 200/208] drivers/rtc/rtc-at91rm9200.c: correct alarm over day/month wrap Luis Henriques
2013-12-19 11:54 ` [PATCH 3.11 201/208] dm array: fix a reference counting bug in shadow_ablock Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 202/208] igb: Fix for issue where values could be too high for udelay function Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 203/208] HID: kye: Add report fixup for Genius Manticore Keyboard Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 204/208] HID: kye: Fix missing break in kye_report_fixup() Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 205/208] intel_pstate: Fix type mismatch warning Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 206/208] MIPS: DMA: For BMIPS5000 cores flush region just like non-coherent R10000 Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 207/208] xfs: underflow bug in xfs_attrlist_by_handle() Luis Henriques
2013-12-19 11:55 ` [PATCH 3.11 208/208] ip6tnl: fix use after free of fb_tnl_dev Luis Henriques
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1387454106-19326-23-git-send-email-luis.henriques@canonical.com \
--to=luis.henriques@canonical.com \
--cc=davem@davemloft.net \
--cc=hannes@stressinduktion.org \
--cc=kernel-team@lists.ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®