diff -druNp --no-dereference linux-libre-3.18.108-gnu/drivers/ata/libata-core.c linux-libre-3.18.109-gnu/drivers/ata/libata-core.c
--- linux-libre-3.18.108-gnu/drivers/ata/libata-core.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/drivers/ata/libata-core.c	2018-05-16 04:05:19.000000000 -0400
@@ -4244,6 +4244,9 @@ static const struct ata_blacklist_entry
 						ATA_HORKAGE_ZERO_AFTER_TRIM |
 						ATA_HORKAGE_NOLPM, },
 
+	/* Sandisk devices which are known to not handle LPM well */
+	{ "SanDisk SD7UB3Q*G1001",	NULL,	ATA_HORKAGE_NOLPM, },
+
 	/* devices that don't properly handle queued TRIM commands */
 	{ "Micron_M500_*",		NULL,	ATA_HORKAGE_NO_NCQ_TRIM |
 						ATA_HORKAGE_ZERO_AFTER_TRIM, },
diff -druNp --no-dereference linux-libre-3.18.108-gnu/drivers/infiniband/hw/mlx5/qp.c linux-libre-3.18.109-gnu/drivers/infiniband/hw/mlx5/qp.c
--- linux-libre-3.18.108-gnu/drivers/infiniband/hw/mlx5/qp.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/drivers/infiniband/hw/mlx5/qp.c	2018-05-16 04:05:19.000000000 -0400
@@ -174,7 +174,11 @@ static int set_rq_size(struct mlx5_ib_de
 	} else {
 		if (ucmd) {
 			qp->rq.wqe_cnt = ucmd->rq_wqe_count;
+			if (ucmd->rq_wqe_shift > BITS_PER_BYTE * sizeof(ucmd->rq_wqe_shift))
+				return -EINVAL;
 			qp->rq.wqe_shift = ucmd->rq_wqe_shift;
+			if ((1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) < qp->wq_sig)
+				return -EINVAL;
 			qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig;
 			qp->rq.max_post = qp->rq.wqe_cnt;
 		} else {
diff -druNp --no-dereference linux-libre-3.18.108-gnu/drivers/net/can/usb/kvaser_usb.c linux-libre-3.18.109-gnu/drivers/net/can/usb/kvaser_usb.c
--- linux-libre-3.18.108-gnu/drivers/net/can/usb/kvaser_usb.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/drivers/net/can/usb/kvaser_usb.c	2018-05-16 04:05:19.000000000 -0400
@@ -850,7 +850,7 @@ static void kvaser_usb_rx_can_msg(const
 
 	skb = alloc_can_skb(priv->netdev, &cf);
 	if (!skb) {
-		stats->tx_dropped++;
+		stats->rx_dropped++;
 		return;
 	}
 
diff -druNp --no-dereference linux-libre-3.18.108-gnu/drivers/net/usb/qmi_wwan.c linux-libre-3.18.109-gnu/drivers/net/usb/qmi_wwan.c
--- linux-libre-3.18.108-gnu/drivers/net/usb/qmi_wwan.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/drivers/net/usb/qmi_wwan.c	2018-05-16 04:05:19.000000000 -0400
@@ -673,6 +673,7 @@ static const struct usb_device_id produc
 	{QMI_FIXED_INTF(0x05c6, 0x9080, 8)},
 	{QMI_FIXED_INTF(0x05c6, 0x9083, 3)},
 	{QMI_FIXED_INTF(0x05c6, 0x9084, 4)},
+	{QMI_FIXED_INTF(0x05c6, 0x90b2, 3)},    /* ublox R410M */
 	{QMI_FIXED_INTF(0x05c6, 0x920d, 0)},
 	{QMI_FIXED_INTF(0x05c6, 0x920d, 5)},
 	{QMI_FIXED_INTF(0x0846, 0x68a2, 8)},
diff -druNp --no-dereference linux-libre-3.18.108-gnu/drivers/usb/musb/musb_host.c linux-libre-3.18.109-gnu/drivers/usb/musb/musb_host.c
--- linux-libre-3.18.108-gnu/drivers/usb/musb/musb_host.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/drivers/usb/musb/musb_host.c	2018-05-16 04:05:19.000000000 -0400
@@ -1002,7 +1002,9 @@ static void musb_bulk_nak_timeout(struct
 			/* set tx_reinit and schedule the next qh */
 			ep->tx_reinit = 1;
 		}
-		musb_start_urb(musb, is_in, next_qh);
+
+		if (next_qh)
+			musb_start_urb(musb, is_in, next_qh);
 	}
 }
 
diff -druNp --no-dereference linux-libre-3.18.108-gnu/drivers/usb/serial/visor.c linux-libre-3.18.109-gnu/drivers/usb/serial/visor.c
--- linux-libre-3.18.108-gnu/drivers/usb/serial/visor.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/drivers/usb/serial/visor.c	2018-05-16 04:05:19.000000000 -0400
@@ -338,47 +338,48 @@ static int palm_os_3_probe(struct usb_se
 		goto exit;
 	}
 
-	if (retval == sizeof(*connection_info)) {
-			connection_info = (struct visor_connection_info *)
-							transfer_buffer;
-
-		num_ports = le16_to_cpu(connection_info->num_ports);
-		for (i = 0; i < num_ports; ++i) {
-			switch (
-			   connection_info->connections[i].port_function_id) {
-			case VISOR_FUNCTION_GENERIC:
-				string = "Generic";
-				break;
-			case VISOR_FUNCTION_DEBUGGER:
-				string = "Debugger";
-				break;
-			case VISOR_FUNCTION_HOTSYNC:
-				string = "HotSync";
-				break;
-			case VISOR_FUNCTION_CONSOLE:
-				string = "Console";
-				break;
-			case VISOR_FUNCTION_REMOTE_FILE_SYS:
-				string = "Remote File System";
-				break;
-			default:
-				string = "unknown";
-				break;
-			}
-			dev_info(dev, "%s: port %d, is for %s use\n",
-				serial->type->description,
-				connection_info->connections[i].port, string);
-		}
+	if (retval != sizeof(*connection_info)) {
+		dev_err(dev, "Invalid connection information received from device\n");
+		retval = -ENODEV;
+		goto exit;
 	}
-	/*
-	* Handle devices that report invalid stuff here.
-	*/
+
+	connection_info = (struct visor_connection_info *)transfer_buffer;
+
+	num_ports = le16_to_cpu(connection_info->num_ports);
+
+	/* Handle devices that report invalid stuff here. */
 	if (num_ports == 0 || num_ports > 2) {
 		dev_warn(dev, "%s: No valid connect info available\n",
 			serial->type->description);
 		num_ports = 2;
 	}
 
+	for (i = 0; i < num_ports; ++i) {
+		switch (connection_info->connections[i].port_function_id) {
+		case VISOR_FUNCTION_GENERIC:
+			string = "Generic";
+			break;
+		case VISOR_FUNCTION_DEBUGGER:
+			string = "Debugger";
+			break;
+		case VISOR_FUNCTION_HOTSYNC:
+			string = "HotSync";
+			break;
+		case VISOR_FUNCTION_CONSOLE:
+			string = "Console";
+			break;
+		case VISOR_FUNCTION_REMOTE_FILE_SYS:
+			string = "Remote File System";
+			break;
+		default:
+			string = "unknown";
+			break;
+		}
+		dev_info(dev, "%s: port %d, is for %s use\n",
+			serial->type->description,
+			connection_info->connections[i].port, string);
+	}
 	dev_info(dev, "%s: Number of ports: %d\n", serial->type->description,
 		num_ports);
 
diff -druNp --no-dereference linux-libre-3.18.108-gnu/include/net/inet_timewait_sock.h linux-libre-3.18.109-gnu/include/net/inet_timewait_sock.h
--- linux-libre-3.18.108-gnu/include/net/inet_timewait_sock.h	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/include/net/inet_timewait_sock.h	2018-05-16 04:05:19.000000000 -0400
@@ -108,6 +108,7 @@ struct inet_timewait_sock {
 #define tw_family		__tw_common.skc_family
 #define tw_state		__tw_common.skc_state
 #define tw_reuse		__tw_common.skc_reuse
+#define tw_reuseport		__tw_common.skc_reuseport
 #define tw_ipv6only		__tw_common.skc_ipv6only
 #define tw_bound_dev_if		__tw_common.skc_bound_dev_if
 #define tw_node			__tw_common.skc_nulls_node
diff -druNp --no-dereference linux-libre-3.18.108-gnu/include/net/nexthop.h linux-libre-3.18.109-gnu/include/net/nexthop.h
--- linux-libre-3.18.108-gnu/include/net/nexthop.h	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/include/net/nexthop.h	2018-05-16 04:05:19.000000000 -0400
@@ -6,7 +6,7 @@
 
 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining)
 {
-	return remaining >= sizeof(*rtnh) &&
+	return remaining >= (int)sizeof(*rtnh) &&
 	       rtnh->rtnh_len >= sizeof(*rtnh) &&
 	       rtnh->rtnh_len <= remaining;
 }
diff -druNp --no-dereference linux-libre-3.18.108-gnu/kernel/events/callchain.c linux-libre-3.18.109-gnu/kernel/events/callchain.c
--- linux-libre-3.18.108-gnu/kernel/events/callchain.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/kernel/events/callchain.c	2018-05-16 04:05:19.000000000 -0400
@@ -107,14 +107,8 @@ int get_callchain_buffers(void)
 		goto exit;
 	}
 
-	if (count > 1) {
-		/* If the allocation failed, give up */
-		if (!callchain_cpus_entries)
-			err = -ENOMEM;
-		goto exit;
-	}
-
-	err = alloc_callchain_buffers();
+	if (count == 1)
+		err = alloc_callchain_buffers();
 exit:
 	if (err)
 		atomic_dec(&nr_callchain_events);
diff -druNp --no-dereference linux-libre-3.18.108-gnu/kernel/events/core.c linux-libre-3.18.109-gnu/kernel/events/core.c
--- linux-libre-3.18.108-gnu/kernel/events/core.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/kernel/events/core.c	2018-05-16 04:05:19.000000000 -0400
@@ -224,7 +224,7 @@ int perf_cpu_time_max_percent_handler(st
 				void __user *buffer, size_t *lenp,
 				loff_t *ppos)
 {
-	int ret = proc_dointvec(table, write, buffer, lenp, ppos);
+	int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
 
 	if (ret || !write)
 		return ret;
diff -druNp --no-dereference linux-libre-3.18.108-gnu/kernel/trace/trace_events_filter.c linux-libre-3.18.109-gnu/kernel/trace/trace_events_filter.c
--- linux-libre-3.18.108-gnu/kernel/trace/trace_events_filter.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/kernel/trace/trace_events_filter.c	2018-05-16 04:05:19.000000000 -0400
@@ -273,6 +273,9 @@ static int regex_match_full(char *str, s
 
 static int regex_match_front(char *str, struct regex *r, int len)
 {
+	if (len < r->len)
+		return 0;
+
 	if (strncmp(str, r->pattern, r->len) == 0)
 		return 1;
 	return 0;
diff -druNp --no-dereference linux-libre-3.18.108-gnu/kernel/trace/trace_uprobe.c linux-libre-3.18.109-gnu/kernel/trace/trace_uprobe.c
--- linux-libre-3.18.108-gnu/kernel/trace/trace_uprobe.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/kernel/trace/trace_uprobe.c	2018-05-16 04:05:19.000000000 -0400
@@ -149,6 +149,8 @@ static void FETCH_FUNC_NAME(memory, stri
 		return;
 
 	ret = strncpy_from_user(dst, src, maxlen);
+	if (ret == maxlen)
+		dst[--ret] = '\0';
 
 	if (ret < 0) {	/* Failed to fetch string */
 		((u8 *)get_rloc_data(dest))[0] = '\0';
diff -druNp --no-dereference linux-libre-3.18.108-gnu/Makefile linux-libre-3.18.109-gnu/Makefile
--- linux-libre-3.18.108-gnu/Makefile	2018-05-02 18:49:16.000000000 -0400
+++ linux-libre-3.18.109-gnu/Makefile	2018-05-16 09:46:49.000000000 -0400
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 18
-SUBLEVEL = 108
+SUBLEVEL = 109
 EXTRAVERSION =-gnu
 NAME = Diseased Newt
 
diff -druNp --no-dereference linux-libre-3.18.108-gnu/mm/percpu.c linux-libre-3.18.109-gnu/mm/percpu.c
--- linux-libre-3.18.108-gnu/mm/percpu.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/mm/percpu.c	2018-05-16 04:05:19.000000000 -0400
@@ -68,6 +68,7 @@
 #include <linux/vmalloc.h>
 #include <linux/workqueue.h>
 #include <linux/kmemleak.h>
+#include <linux/sched.h>
 
 #include <asm/cacheflush.h>
 #include <asm/sections.h>
diff -druNp --no-dereference linux-libre-3.18.108-gnu/net/core/dev_addr_lists.c linux-libre-3.18.109-gnu/net/core/dev_addr_lists.c
--- linux-libre-3.18.108-gnu/net/core/dev_addr_lists.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/net/core/dev_addr_lists.c	2018-05-16 04:05:19.000000000 -0400
@@ -57,8 +57,8 @@ static int __hw_addr_add_ex(struct netde
 		return -EINVAL;
 
 	list_for_each_entry(ha, &list->list, list) {
-		if (!memcmp(ha->addr, addr, addr_len) &&
-		    ha->type == addr_type) {
+		if (ha->type == addr_type &&
+		    !memcmp(ha->addr, addr, addr_len)) {
 			if (global) {
 				/* check if addr is already used as global */
 				if (ha->global_use)
diff -druNp --no-dereference linux-libre-3.18.108-gnu/net/core/skbuff.c linux-libre-3.18.109-gnu/net/core/skbuff.c
--- linux-libre-3.18.108-gnu/net/core/skbuff.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/net/core/skbuff.c	2018-05-16 04:05:19.000000000 -0400
@@ -779,6 +779,7 @@ static struct sk_buff *__skb_clone(struc
 	n->hdr_len = skb->nohdr ? skb_headroom(skb) : skb->hdr_len;
 	n->cloned = 1;
 	n->nohdr = 0;
+	n->peeked = 0;
 	n->destructor = NULL;
 	C(tail);
 	C(end);
diff -druNp --no-dereference linux-libre-3.18.108-gnu/net/ipv4/inet_timewait_sock.c linux-libre-3.18.109-gnu/net/ipv4/inet_timewait_sock.c
--- linux-libre-3.18.108-gnu/net/ipv4/inet_timewait_sock.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/net/ipv4/inet_timewait_sock.c	2018-05-16 04:05:19.000000000 -0400
@@ -191,6 +191,7 @@ struct inet_timewait_sock *inet_twsk_all
 		tw->tw_dport	    = inet->inet_dport;
 		tw->tw_family	    = sk->sk_family;
 		tw->tw_reuse	    = sk->sk_reuse;
+		tw->tw_reuseport    = sk->sk_reuseport;
 		tw->tw_hash	    = sk->sk_hash;
 		tw->tw_ipv6only	    = 0;
 		tw->tw_transparent  = inet->transparent;
diff -druNp --no-dereference linux-libre-3.18.108-gnu/net/ipv4/tcp.c linux-libre-3.18.109-gnu/net/ipv4/tcp.c
--- linux-libre-3.18.108-gnu/net/ipv4/tcp.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/net/ipv4/tcp.c	2018-05-16 04:05:19.000000000 -0400
@@ -2461,7 +2461,7 @@ static int do_tcp_setsockopt(struct sock
 	case TCP_REPAIR_QUEUE:
 		if (!tp->repair)
 			err = -EPERM;
-		else if (val < TCP_QUEUES_NR)
+		else if ((unsigned int)val < TCP_QUEUES_NR)
 			tp->repair_queue = val;
 		else
 			err = -EINVAL;
diff -druNp --no-dereference linux-libre-3.18.108-gnu/net/netlink/af_netlink.c linux-libre-3.18.109-gnu/net/netlink/af_netlink.c
--- linux-libre-3.18.108-gnu/net/netlink/af_netlink.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/net/netlink/af_netlink.c	2018-05-16 04:05:19.000000000 -0400
@@ -1641,6 +1641,8 @@ static int netlink_sendmsg(struct kiocb
 
 	if (msg->msg_namelen) {
 		err = -EINVAL;
+		if (msg->msg_namelen < sizeof(struct sockaddr_nl))
+			goto out;
 		if (addr->nl_family != AF_NETLINK)
 			goto out;
 		dst_portid = addr->nl_pid;
diff -druNp --no-dereference linux-libre-3.18.108-gnu/net/rfkill/rfkill-gpio.c linux-libre-3.18.109-gnu/net/rfkill/rfkill-gpio.c
--- linux-libre-3.18.108-gnu/net/rfkill/rfkill-gpio.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/net/rfkill/rfkill-gpio.c	2018-05-16 04:05:19.000000000 -0400
@@ -134,13 +134,18 @@ static int rfkill_gpio_probe(struct plat
 
 	ret = rfkill_register(rfkill->rfkill_dev);
 	if (ret < 0)
-		return ret;
+		goto err_destroy;
 
 	platform_set_drvdata(pdev, rfkill);
 
 	dev_info(&pdev->dev, "%s device registered.\n", rfkill->name);
 
 	return 0;
+
+err_destroy:
+	rfkill_destroy(rfkill->rfkill_dev);
+
+	return ret;
 }
 
 static int rfkill_gpio_remove(struct platform_device *pdev)
diff -druNp --no-dereference linux-libre-3.18.108-gnu/sound/core/pcm_compat.c linux-libre-3.18.109-gnu/sound/core/pcm_compat.c
--- linux-libre-3.18.108-gnu/sound/core/pcm_compat.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/sound/core/pcm_compat.c	2018-05-16 04:05:19.000000000 -0400
@@ -333,6 +333,8 @@ static int snd_pcm_ioctl_xfern_compat(st
 		return -ENOTTY;
 	if (substream->stream != dir)
 		return -EINVAL;
+	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN)
+		return -EBADFD;
 
 	if ((ch = substream->runtime->channels) > 128)
 		return -EINVAL;
diff -druNp --no-dereference linux-libre-3.18.108-gnu/sound/core/seq/seq_virmidi.c linux-libre-3.18.109-gnu/sound/core/seq/seq_virmidi.c
--- linux-libre-3.18.108-gnu/sound/core/seq/seq_virmidi.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/sound/core/seq/seq_virmidi.c	2018-05-16 04:05:19.000000000 -0400
@@ -174,12 +174,12 @@ static void snd_virmidi_output_trigger(s
 			}
 			return;
 		}
+		spin_lock_irqsave(&substream->runtime->lock, flags);
 		if (vmidi->event.type != SNDRV_SEQ_EVENT_NONE) {
 			if (snd_seq_kernel_client_dispatch(vmidi->client, &vmidi->event, in_atomic(), 0) < 0)
-				return;
+				goto out;
 			vmidi->event.type = SNDRV_SEQ_EVENT_NONE;
 		}
-		spin_lock_irqsave(&substream->runtime->lock, flags);
 		while (1) {
 			count = __snd_rawmidi_transmit_peek(substream, buf, sizeof(buf));
 			if (count <= 0)
diff -druNp --no-dereference linux-libre-3.18.108-gnu/sound/drivers/aloop.c linux-libre-3.18.109-gnu/sound/drivers/aloop.c
--- linux-libre-3.18.108-gnu/sound/drivers/aloop.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/sound/drivers/aloop.c	2018-05-16 04:05:19.000000000 -0400
@@ -297,6 +297,8 @@ static int loopback_trigger(struct snd_p
 		cable->pause |= stream;
 		loopback_timer_stop(dpcm);
 		spin_unlock(&cable->lock);
+		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
+			loopback_active_notify(dpcm);
 		break;
 	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
 	case SNDRV_PCM_TRIGGER_RESUME:
@@ -305,6 +307,8 @@ static int loopback_trigger(struct snd_p
 		cable->pause &= ~stream;
 		loopback_timer_start(dpcm);
 		spin_unlock(&cable->lock);
+		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
+			loopback_active_notify(dpcm);
 		break;
 	default:
 		return -EINVAL;
@@ -829,9 +833,11 @@ static int loopback_rate_shift_get(struc
 {
 	struct loopback *loopback = snd_kcontrol_chip(kcontrol);
 	
+	mutex_lock(&loopback->cable_lock);
 	ucontrol->value.integer.value[0] =
 		loopback->setup[kcontrol->id.subdevice]
 			       [kcontrol->id.device].rate_shift;
+	mutex_unlock(&loopback->cable_lock);
 	return 0;
 }
 
@@ -863,9 +869,11 @@ static int loopback_notify_get(struct sn
 {
 	struct loopback *loopback = snd_kcontrol_chip(kcontrol);
 	
+	mutex_lock(&loopback->cable_lock);
 	ucontrol->value.integer.value[0] =
 		loopback->setup[kcontrol->id.subdevice]
 			       [kcontrol->id.device].notify;
+	mutex_unlock(&loopback->cable_lock);
 	return 0;
 }
 
@@ -877,12 +885,14 @@ static int loopback_notify_put(struct sn
 	int change = 0;
 
 	val = ucontrol->value.integer.value[0] ? 1 : 0;
+	mutex_lock(&loopback->cable_lock);
 	if (val != loopback->setup[kcontrol->id.subdevice]
 				[kcontrol->id.device].notify) {
 		loopback->setup[kcontrol->id.subdevice]
 			[kcontrol->id.device].notify = val;
 		change = 1;
 	}
+	mutex_unlock(&loopback->cable_lock);
 	return change;
 }
 
@@ -890,13 +900,18 @@ static int loopback_active_get(struct sn
 			       struct snd_ctl_elem_value *ucontrol)
 {
 	struct loopback *loopback = snd_kcontrol_chip(kcontrol);
-	struct loopback_cable *cable = loopback->cables
-			[kcontrol->id.subdevice][kcontrol->id.device ^ 1];
+	struct loopback_cable *cable;
+
 	unsigned int val = 0;
 
-	if (cable != NULL)
-		val = (cable->running & (1 << SNDRV_PCM_STREAM_PLAYBACK)) ?
-									1 : 0;
+	mutex_lock(&loopback->cable_lock);
+	cable = loopback->cables[kcontrol->id.subdevice][kcontrol->id.device ^ 1];
+	if (cable != NULL) {
+		unsigned int running = cable->running ^ cable->pause;
+
+		val = (running & (1 << SNDRV_PCM_STREAM_PLAYBACK)) ? 1 : 0;
+	}
+	mutex_unlock(&loopback->cable_lock);
 	ucontrol->value.integer.value[0] = val;
 	return 0;
 }
@@ -939,9 +954,11 @@ static int loopback_rate_get(struct snd_
 {
 	struct loopback *loopback = snd_kcontrol_chip(kcontrol);
 	
+	mutex_lock(&loopback->cable_lock);
 	ucontrol->value.integer.value[0] =
 		loopback->setup[kcontrol->id.subdevice]
 			       [kcontrol->id.device].rate;
+	mutex_unlock(&loopback->cable_lock);
 	return 0;
 }
 
@@ -961,9 +978,11 @@ static int loopback_channels_get(struct
 {
 	struct loopback *loopback = snd_kcontrol_chip(kcontrol);
 	
+	mutex_lock(&loopback->cable_lock);
 	ucontrol->value.integer.value[0] =
 		loopback->setup[kcontrol->id.subdevice]
 			       [kcontrol->id.device].channels;
+	mutex_unlock(&loopback->cable_lock);
 	return 0;
 }
 
diff -druNp --no-dereference linux-libre-3.18.108-gnu/tools/perf/util/session.c linux-libre-3.18.109-gnu/tools/perf/util/session.c
--- linux-libre-3.18.108-gnu/tools/perf/util/session.c	2018-05-02 10:59:55.000000000 -0400
+++ linux-libre-3.18.109-gnu/tools/perf/util/session.c	2018-05-16 04:05:19.000000000 -0400
@@ -1073,6 +1073,7 @@ volatile int session_done;
 static int __perf_session__process_pipe_events(struct perf_session *session,
 					       struct perf_tool *tool)
 {
+	struct ordered_events *oe = &session->ordered_events;
 	int fd = perf_data_file__fd(session->file);
 	union perf_event *event;
 	uint32_t size, cur_size = 0;
