All of lore.kernel.org
 help / color / mirror / Atom feed
* [added to the 4.1 stable tree] af_iucv: Validate socket address length in iucv_sock_bind()
@ 2016-03-02 20:23 Sasha Levin
  2016-03-02 20:23 ` [added to the 4.1 stable tree] net: dp83640: Fix tx timestamp overflow handling Sasha Levin
                   ` (32 more replies)
  0 siblings, 33 replies; 37+ messages in thread
From: Sasha Levin @ 2016-03-02 20:23 UTC (permalink / raw)
  To: stable, stable-commits; +Cc: Ursula Braun, David S. Miller, Sasha Levin

From: Ursula Braun <ursula.braun@de.ibm.com>

This patch has been added to the 4.1 stable tree. If you have any
objections, please let us know.

===============

[ Upstream commit 52a82e23b9f2a9e1d429c5207f8575784290d008 ]

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Evgeny Cherkashin <Eugene.Crosser@ru.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
 net/iucv/af_iucv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index 6daa52a..123f6f9 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -709,6 +709,9 @@ static int iucv_sock_bind(struct socket *sock, struct sockaddr *addr,
 	if (!addr || addr->sa_family != AF_IUCV)
 		return -EINVAL;
 
+	if (addr_len < sizeof(struct sockaddr_iucv))
+		return -EINVAL;
+
 	lock_sock(sk);
 	if (sk->sk_state != IUCV_OPEN) {
 		err = -EBADFD;
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2016-03-03 18:08 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 20:23 [added to the 4.1 stable tree] af_iucv: Validate socket address length in iucv_sock_bind() Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] net: dp83640: Fix tx timestamp overflow handling Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] tcp: fix NULL deref in tcp_v4_send_ack() Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] af_unix: fix struct pid memory leak Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] pptp: fix illegal memory access caused by multiple bind()s Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] sctp: allow setting SCTP_SACK_IMMEDIATELY by the application Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] tipc: fix connection abort during subscription cancel Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] switchdev: Require RTNL mutex to be held when sending FDB notifications Sasha Levin
2016-03-03  9:35   ` Ido Schimmel
2016-03-03 17:03     ` David Miller
2016-03-03 17:52       ` Ido Schimmel
2016-03-02 20:23 ` [added to the 4.1 stable tree] tcp: beware of alignments in tcp_get_info() Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] ipv6: enforce flowi6_oif usage in ip6_dst_lookup_tail() Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] ipv6/udp: use sticky pktinfo egress ifindex on connect() Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] net/ipv6: add sysctl option accept_ra_min_hop_limit Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] ipv6: addrconf: Fix recursive spin lock call Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] ipv6: fix a lockdep splat Sasha Levin
2016-03-02 20:23 ` [added to the 4.1 stable tree] unix: correctly track in-flight fds in sending process user_struct Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] net:Add sysctl_max_skb_frags Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] tg3: Fix for tg3 transmit queue 0 timed out when too many gso_segs Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] sctp: translate network order to host order when users get a hmacid Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] flow_dissector: Fix unaligned access in __skb_flow_dissector when used by eth_get_headlen Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] net: Copy inner L3 and L4 headers as unaligned on GRE TEB Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] bpf: fix branch offset adjustment on backjumps after patching ctx expansion Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] bonding: Fix ARP monitor validation Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] ipv4: fix memory leaks in ip_cmsg_send() callers Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] af_unix: Guard against other == sk in unix_dgram_sendmsg Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] qmi_wwan: add "4G LTE usb-modem U901" Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] net/mlx4_en: Count HW buffer overrun only once Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] net/mlx4_en: Choose time-stamping shift value according to HW frequency Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] net/mlx4_en: Avoid changing dev->features directly in run-time Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] l2tp: Fix error creating L2TP tunnels Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] pppoe: fix reference counting in PPPoE proxy Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] route: check and remove route cache when we get route Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] rtnl: RTM_GETNETCONF: fix wrong return value Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] unix_diag: fix incorrect sign extension in unix_lookup_by_ino Sasha Levin
2016-03-02 20:24 ` [added to the 4.1 stable tree] sctp: Fix port hash table size computation Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.