diff -druNp --no-dereference linux-libre-4.4.100-gnu/arch/arm64/kernel/traps.c linux-libre-4.4.102-gnu/arch/arm64/kernel/traps.c
--- linux-libre-4.4.100-gnu/arch/arm64/kernel/traps.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/arch/arm64/kernel/traps.c	2017-11-24 05:26:29.000000000 -0500
@@ -64,8 +64,7 @@ static void dump_mem(const char *lvl, co
 
 	/*
 	 * We need to switch to kernel mode so that we can use __get_user
-	 * to safely read from kernel space.  Note that we now dump the
-	 * code first, just in case the backtrace kills us.
+	 * to safely read from kernel space.
 	 */
 	fs = get_fs();
 	set_fs(KERNEL_DS);
@@ -111,21 +110,12 @@ static void dump_backtrace_entry(unsigne
 	print_ip_sym(where);
 }
 
-static void dump_instr(const char *lvl, struct pt_regs *regs)
+static void __dump_instr(const char *lvl, struct pt_regs *regs)
 {
 	unsigned long addr = instruction_pointer(regs);
-	mm_segment_t fs;
 	char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str;
 	int i;
 
-	/*
-	 * We need to switch to kernel mode so that we can use __get_user
-	 * to safely read from kernel space.  Note that we now dump the
-	 * code first, just in case the backtrace kills us.
-	 */
-	fs = get_fs();
-	set_fs(KERNEL_DS);
-
 	for (i = -4; i < 1; i++) {
 		unsigned int val, bad;
 
@@ -139,8 +129,18 @@ static void dump_instr(const char *lvl,
 		}
 	}
 	printk("%sCode: %s\n", lvl, str);
+}
 
-	set_fs(fs);
+static void dump_instr(const char *lvl, struct pt_regs *regs)
+{
+	if (!user_mode(regs)) {
+		mm_segment_t fs = get_fs();
+		set_fs(KERNEL_DS);
+		__dump_instr(lvl, regs);
+		set_fs(fs);
+	} else {
+		__dump_instr(lvl, regs);
+	}
 }
 
 static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
diff -druNp --no-dereference linux-libre-4.4.100-gnu/drivers/char/ipmi/ipmi_msghandler.c linux-libre-4.4.102-gnu/drivers/char/ipmi/ipmi_msghandler.c
--- linux-libre-4.4.100-gnu/drivers/char/ipmi/ipmi_msghandler.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/drivers/char/ipmi/ipmi_msghandler.c	2017-11-24 05:26:29.000000000 -0500
@@ -4029,7 +4029,8 @@ smi_from_recv_msg(ipmi_smi_t intf, struc
 }
 
 static void check_msg_timeout(ipmi_smi_t intf, struct seq_table *ent,
-			      struct list_head *timeouts, long timeout_period,
+			      struct list_head *timeouts,
+			      unsigned long timeout_period,
 			      int slot, unsigned long *flags,
 			      unsigned int *waiting_msgs)
 {
@@ -4042,8 +4043,8 @@ static void check_msg_timeout(ipmi_smi_t
 	if (!ent->inuse)
 		return;
 
-	ent->timeout -= timeout_period;
-	if (ent->timeout > 0) {
+	if (timeout_period < ent->timeout) {
+		ent->timeout -= timeout_period;
 		(*waiting_msgs)++;
 		return;
 	}
@@ -4109,7 +4110,8 @@ static void check_msg_timeout(ipmi_smi_t
 	}
 }
 
-static unsigned int ipmi_timeout_handler(ipmi_smi_t intf, long timeout_period)
+static unsigned int ipmi_timeout_handler(ipmi_smi_t intf,
+					 unsigned long timeout_period)
 {
 	struct list_head     timeouts;
 	struct ipmi_recv_msg *msg, *msg2;
diff -druNp --no-dereference linux-libre-4.4.100-gnu/drivers/net/bonding/bond_main.c linux-libre-4.4.102-gnu/drivers/net/bonding/bond_main.c
--- linux-libre-4.4.100-gnu/drivers/net/bonding/bond_main.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/drivers/net/bonding/bond_main.c	2017-11-24 05:26:29.000000000 -0500
@@ -3166,7 +3166,7 @@ u32 bond_xmit_hash(struct bonding *bond,
 	hash ^= (hash >> 16);
 	hash ^= (hash >> 8);
 
-	return hash;
+	return hash >> 1;
 }
 
 /*-------------------------- Device entry points ----------------------------*/
diff -druNp --no-dereference linux-libre-4.4.100-gnu/drivers/net/ethernet/fealnx.c linux-libre-4.4.102-gnu/drivers/net/ethernet/fealnx.c
--- linux-libre-4.4.100-gnu/drivers/net/ethernet/fealnx.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/drivers/net/ethernet/fealnx.c	2017-11-24 05:26:29.000000000 -0500
@@ -257,8 +257,8 @@ enum rx_desc_status_bits {
 	RXFSD = 0x00000800,	/* first descriptor */
 	RXLSD = 0x00000400,	/* last descriptor */
 	ErrorSummary = 0x80,	/* error summary */
-	RUNT = 0x40,		/* runt packet received */
-	LONG = 0x20,		/* long packet received */
+	RUNTPKT = 0x40,		/* runt packet received */
+	LONGPKT = 0x20,		/* long packet received */
 	FAE = 0x10,		/* frame align error */
 	CRC = 0x08,		/* crc error */
 	RXER = 0x04,		/* receive error */
@@ -1633,7 +1633,7 @@ static int netdev_rx(struct net_device *
 					       dev->name, rx_status);
 
 				dev->stats.rx_errors++;	/* end of a packet. */
-				if (rx_status & (LONG | RUNT))
+				if (rx_status & (LONGPKT | RUNTPKT))
 					dev->stats.rx_length_errors++;
 				if (rx_status & RXER)
 					dev->stats.rx_frame_errors++;
diff -druNp --no-dereference linux-libre-4.4.100-gnu/drivers/nvme/host/pci.c linux-libre-4.4.102-gnu/drivers/nvme/host/pci.c
--- linux-libre-4.4.100-gnu/drivers/nvme/host/pci.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/drivers/nvme/host/pci.c	2017-11-24 05:26:29.000000000 -0500
@@ -350,8 +350,8 @@ static void async_completion(struct nvme
 	struct async_cmd_info *cmdinfo = ctx;
 	cmdinfo->result = le32_to_cpup(&cqe->result);
 	cmdinfo->status = le16_to_cpup(&cqe->status) >> 1;
-	queue_kthread_work(cmdinfo->worker, &cmdinfo->work);
 	blk_mq_free_request(cmdinfo->req);
+	queue_kthread_work(cmdinfo->worker, &cmdinfo->work);
 }
 
 static inline struct nvme_cmd_info *get_cmd_from_tag(struct nvme_queue *nvmeq,
diff -druNp --no-dereference linux-libre-4.4.100-gnu/drivers/tty/serial/omap-serial.c linux-libre-4.4.102-gnu/drivers/tty/serial/omap-serial.c
--- linux-libre-4.4.100-gnu/drivers/tty/serial/omap-serial.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/drivers/tty/serial/omap-serial.c	2017-11-24 05:26:29.000000000 -0500
@@ -693,7 +693,7 @@ static void serial_omap_set_mctrl(struct
 	if ((mctrl & TIOCM_RTS) && (port->status & UPSTAT_AUTORTS))
 		up->efr |= UART_EFR_RTS;
 	else
-		up->efr &= UART_EFR_RTS;
+		up->efr &= ~UART_EFR_RTS;
 	serial_out(up, UART_EFR, up->efr);
 	serial_out(up, UART_LCR, lcr);
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/fs/coda/upcall.c linux-libre-4.4.102-gnu/fs/coda/upcall.c
--- linux-libre-4.4.100-gnu/fs/coda/upcall.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/fs/coda/upcall.c	2017-11-24 05:26:29.000000000 -0500
@@ -446,8 +446,7 @@ int venus_fsync(struct super_block *sb,
 	UPARG(CODA_FSYNC);
 
 	inp->coda_fsync.VFid = *fid;
-	error = coda_upcall(coda_vcp(sb), sizeof(union inputArgs),
-			    &outsize, inp);
+	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
 
 	CODA_FREE(inp, insize);
 	return error;
diff -druNp --no-dereference linux-libre-4.4.100-gnu/fs/ocfs2/file.c linux-libre-4.4.102-gnu/fs/ocfs2/file.c
--- linux-libre-4.4.100-gnu/fs/ocfs2/file.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/fs/ocfs2/file.c	2017-11-24 05:26:29.000000000 -0500
@@ -1166,6 +1166,13 @@ int ocfs2_setattr(struct dentry *dentry,
 	}
 	size_change = S_ISREG(inode->i_mode) && attr->ia_valid & ATTR_SIZE;
 	if (size_change) {
+		/*
+		 * Here we should wait dio to finish before inode lock
+		 * to avoid a deadlock between ocfs2_setattr() and
+		 * ocfs2_dio_end_io_write()
+		 */
+		inode_dio_wait(inode);
+
 		status = ocfs2_rw_lock(inode, 1);
 		if (status < 0) {
 			mlog_errno(status);
@@ -1186,8 +1193,6 @@ int ocfs2_setattr(struct dentry *dentry,
 		if (status)
 			goto bail_unlock;
 
-		inode_dio_wait(inode);
-
 		if (i_size_read(inode) >= attr->ia_size) {
 			if (ocfs2_should_order_data(inode)) {
 				status = ocfs2_begin_ordered_truncate(inode,
diff -druNp --no-dereference linux-libre-4.4.100-gnu/include/linux/mmzone.h linux-libre-4.4.102-gnu/include/linux/mmzone.h
--- linux-libre-4.4.100-gnu/include/linux/mmzone.h	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/include/linux/mmzone.h	2017-11-24 05:26:29.000000000 -0500
@@ -688,7 +688,8 @@ typedef struct pglist_data {
 	 * is the first PFN that needs to be initialised.
 	 */
 	unsigned long first_deferred_pfn;
-	unsigned long static_init_size;
+	/* Number of non-deferred pages */
+	unsigned long static_init_pgcnt;
 #endif /* CONFIG_DEFERRED_STRUCT_PAGE_INIT */
 } pg_data_t;
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/include/linux/page_idle.h linux-libre-4.4.102-gnu/include/linux/page_idle.h
--- linux-libre-4.4.100-gnu/include/linux/page_idle.h	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/include/linux/page_idle.h	2017-11-24 05:26:29.000000000 -0500
@@ -46,33 +46,62 @@ extern struct page_ext_operations page_i
 
 static inline bool page_is_young(struct page *page)
 {
-	return test_bit(PAGE_EXT_YOUNG, &lookup_page_ext(page)->flags);
+	struct page_ext *page_ext = lookup_page_ext(page);
+
+	if (unlikely(!page_ext))
+		return false;
+
+	return test_bit(PAGE_EXT_YOUNG, &page_ext->flags);
 }
 
 static inline void set_page_young(struct page *page)
 {
-	set_bit(PAGE_EXT_YOUNG, &lookup_page_ext(page)->flags);
+	struct page_ext *page_ext = lookup_page_ext(page);
+
+	if (unlikely(!page_ext))
+		return;
+
+	set_bit(PAGE_EXT_YOUNG, &page_ext->flags);
 }
 
 static inline bool test_and_clear_page_young(struct page *page)
 {
-	return test_and_clear_bit(PAGE_EXT_YOUNG,
-				  &lookup_page_ext(page)->flags);
+	struct page_ext *page_ext = lookup_page_ext(page);
+
+	if (unlikely(!page_ext))
+		return false;
+
+	return test_and_clear_bit(PAGE_EXT_YOUNG, &page_ext->flags);
 }
 
 static inline bool page_is_idle(struct page *page)
 {
-	return test_bit(PAGE_EXT_IDLE, &lookup_page_ext(page)->flags);
+	struct page_ext *page_ext = lookup_page_ext(page);
+
+	if (unlikely(!page_ext))
+		return false;
+
+	return test_bit(PAGE_EXT_IDLE, &page_ext->flags);
 }
 
 static inline void set_page_idle(struct page *page)
 {
-	set_bit(PAGE_EXT_IDLE, &lookup_page_ext(page)->flags);
+	struct page_ext *page_ext = lookup_page_ext(page);
+
+	if (unlikely(!page_ext))
+		return;
+
+	set_bit(PAGE_EXT_IDLE, &page_ext->flags);
 }
 
 static inline void clear_page_idle(struct page *page)
 {
-	clear_bit(PAGE_EXT_IDLE, &lookup_page_ext(page)->flags);
+	struct page_ext *page_ext = lookup_page_ext(page);
+
+	if (unlikely(!page_ext))
+		return;
+
+	clear_bit(PAGE_EXT_IDLE, &page_ext->flags);
 }
 #endif /* CONFIG_64BIT */
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/include/linux/skbuff.h linux-libre-4.4.102-gnu/include/linux/skbuff.h
--- linux-libre-4.4.100-gnu/include/linux/skbuff.h	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/include/linux/skbuff.h	2017-11-24 05:26:29.000000000 -0500
@@ -3400,6 +3400,13 @@ static inline void nf_reset_trace(struct
 #endif
 }
 
+static inline void ipvs_reset(struct sk_buff *skb)
+{
+#if IS_ENABLED(CONFIG_IP_VS)
+	skb->ipvs_property = 0;
+#endif
+}
+
 /* Note: This doesn't put any conntrack and bridge info in dst. */
 static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src,
 			     bool copy)
diff -druNp --no-dereference linux-libre-4.4.100-gnu/Makefile linux-libre-4.4.102-gnu/Makefile
--- linux-libre-4.4.100-gnu/Makefile	2017-11-21 09:22:21.000000000 -0500
+++ linux-libre-4.4.102-gnu/Makefile	2017-11-24 07:33:15.000000000 -0500
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 100
+SUBLEVEL = 102
 EXTRAVERSION = -gnu
 NAME = Blurry Fish Butt
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/mm/debug-pagealloc.c linux-libre-4.4.102-gnu/mm/debug-pagealloc.c
--- linux-libre-4.4.100-gnu/mm/debug-pagealloc.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/mm/debug-pagealloc.c	2017-11-24 05:26:29.000000000 -0500
@@ -34,6 +34,8 @@ static inline void set_page_poison(struc
 	struct page_ext *page_ext;
 
 	page_ext = lookup_page_ext(page);
+	if (!page_ext)
+		return;
 	__set_bit(PAGE_EXT_DEBUG_POISON, &page_ext->flags);
 }
 
@@ -42,6 +44,8 @@ static inline void clear_page_poison(str
 	struct page_ext *page_ext;
 
 	page_ext = lookup_page_ext(page);
+	if (!page_ext)
+		return;
 	__clear_bit(PAGE_EXT_DEBUG_POISON, &page_ext->flags);
 }
 
@@ -50,6 +54,8 @@ static inline bool page_poison(struct pa
 	struct page_ext *page_ext;
 
 	page_ext = lookup_page_ext(page);
+	if (!page_ext)
+		return false;
 	return test_bit(PAGE_EXT_DEBUG_POISON, &page_ext->flags);
 }
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/mm/page_alloc.c linux-libre-4.4.102-gnu/mm/page_alloc.c
--- linux-libre-4.4.100-gnu/mm/page_alloc.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/mm/page_alloc.c	2017-11-24 05:26:29.000000000 -0500
@@ -267,28 +267,37 @@ EXPORT_SYMBOL(nr_online_nodes);
 int page_group_by_mobility_disabled __read_mostly;
 
 #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT
+
+/*
+ * Determine how many pages need to be initialized durig early boot
+ * (non-deferred initialization).
+ * The value of first_deferred_pfn will be set later, once non-deferred pages
+ * are initialized, but for now set it ULONG_MAX.
+ */
 static inline void reset_deferred_meminit(pg_data_t *pgdat)
 {
-	unsigned long max_initialise;
-	unsigned long reserved_lowmem;
+	phys_addr_t start_addr, end_addr;
+	unsigned long max_pgcnt;
+	unsigned long reserved;
 
 	/*
 	 * Initialise at least 2G of a node but also take into account that
 	 * two large system hashes that can take up 1GB for 0.25TB/node.
 	 */
-	max_initialise = max(2UL << (30 - PAGE_SHIFT),
-		(pgdat->node_spanned_pages >> 8));
+	max_pgcnt = max(2UL << (30 - PAGE_SHIFT),
+			(pgdat->node_spanned_pages >> 8));
 
 	/*
 	 * Compensate the all the memblock reservations (e.g. crash kernel)
 	 * from the initial estimation to make sure we will initialize enough
 	 * memory to boot.
 	 */
-	reserved_lowmem = memblock_reserved_memory_within(pgdat->node_start_pfn,
-			pgdat->node_start_pfn + max_initialise);
-	max_initialise += reserved_lowmem;
+	start_addr = PFN_PHYS(pgdat->node_start_pfn);
+	end_addr = PFN_PHYS(pgdat->node_start_pfn + max_pgcnt);
+	reserved = memblock_reserved_memory_within(start_addr, end_addr);
+	max_pgcnt += PHYS_PFN(reserved);
 
-	pgdat->static_init_size = min(max_initialise, pgdat->node_spanned_pages);
+	pgdat->static_init_pgcnt = min(max_pgcnt, pgdat->node_spanned_pages);
 	pgdat->first_deferred_pfn = ULONG_MAX;
 }
 
@@ -324,7 +333,7 @@ static inline bool update_defer_init(pg_
 		return true;
 	/* Initialise at least 2G of the highest zone */
 	(*nr_initialised)++;
-	if ((*nr_initialised > pgdat->static_init_size) &&
+	if ((*nr_initialised > pgdat->static_init_pgcnt) &&
 	    (pfn & (PAGES_PER_SECTION - 1)) == 0) {
 		pgdat->first_deferred_pfn = pfn;
 		return false;
@@ -560,6 +569,9 @@ static inline void set_page_guard(struct
 		return;
 
 	page_ext = lookup_page_ext(page);
+	if (unlikely(!page_ext))
+		return;
+
 	__set_bit(PAGE_EXT_DEBUG_GUARD, &page_ext->flags);
 
 	INIT_LIST_HEAD(&page->lru);
@@ -577,6 +589,9 @@ static inline void clear_page_guard(stru
 		return;
 
 	page_ext = lookup_page_ext(page);
+	if (unlikely(!page_ext))
+		return;
+
 	__clear_bit(PAGE_EXT_DEBUG_GUARD, &page_ext->flags);
 
 	set_page_private(page, 0);
diff -druNp --no-dereference linux-libre-4.4.100-gnu/mm/page_ext.c linux-libre-4.4.102-gnu/mm/page_ext.c
--- linux-libre-4.4.100-gnu/mm/page_ext.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/mm/page_ext.c	2017-11-24 05:26:29.000000000 -0500
@@ -106,7 +106,6 @@ struct page_ext *lookup_page_ext(struct
 	struct page_ext *base;
 
 	base = NODE_DATA(page_to_nid(page))->node_page_ext;
-#ifdef CONFIG_DEBUG_VM
 	/*
 	 * The sanity checks the page allocator does upon freeing a
 	 * page can reach here before the page_ext arrays are
@@ -115,7 +114,6 @@ struct page_ext *lookup_page_ext(struct
 	 */
 	if (unlikely(!base))
 		return NULL;
-#endif
 	offset = pfn - round_down(node_start_pfn(page_to_nid(page)),
 					MAX_ORDER_NR_PAGES);
 	return base + offset;
@@ -180,7 +178,6 @@ struct page_ext *lookup_page_ext(struct
 {
 	unsigned long pfn = page_to_pfn(page);
 	struct mem_section *section = __pfn_to_section(pfn);
-#ifdef CONFIG_DEBUG_VM
 	/*
 	 * The sanity checks the page allocator does upon freeing a
 	 * page can reach here before the page_ext arrays are
@@ -189,7 +186,6 @@ struct page_ext *lookup_page_ext(struct
 	 */
 	if (!section->page_ext)
 		return NULL;
-#endif
 	return section->page_ext + pfn;
 }
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/mm/page_owner.c linux-libre-4.4.102-gnu/mm/page_owner.c
--- linux-libre-4.4.100-gnu/mm/page_owner.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/mm/page_owner.c	2017-11-24 05:26:29.000000000 -0500
@@ -53,6 +53,8 @@ void __reset_page_owner(struct page *pag
 
 	for (i = 0; i < (1 << order); i++) {
 		page_ext = lookup_page_ext(page + i);
+		if (unlikely(!page_ext))
+			continue;
 		__clear_bit(PAGE_EXT_OWNER, &page_ext->flags);
 	}
 }
@@ -60,6 +62,7 @@ void __reset_page_owner(struct page *pag
 void __set_page_owner(struct page *page, unsigned int order, gfp_t gfp_mask)
 {
 	struct page_ext *page_ext = lookup_page_ext(page);
+
 	struct stack_trace trace = {
 		.nr_entries = 0,
 		.max_entries = ARRAY_SIZE(page_ext->trace_entries),
@@ -67,6 +70,9 @@ void __set_page_owner(struct page *page,
 		.skip = 3,
 	};
 
+	if (unlikely(!page_ext))
+		return;
+
 	save_stack_trace(&trace);
 
 	page_ext->order = order;
@@ -79,6 +85,12 @@ void __set_page_owner(struct page *page,
 gfp_t __get_page_owner_gfp(struct page *page)
 {
 	struct page_ext *page_ext = lookup_page_ext(page);
+	if (unlikely(!page_ext))
+		/*
+		 * The caller just returns 0 if no valid gfp
+		 * So return 0 here too.
+		 */
+		return 0;
 
 	return page_ext->gfp_mask;
 }
@@ -194,6 +206,8 @@ read_page_owner(struct file *file, char
 		}
 
 		page_ext = lookup_page_ext(page);
+		if (unlikely(!page_ext))
+			continue;
 
 		/*
 		 * Some pages could be missed by concurrent allocation or free,
@@ -257,6 +271,8 @@ static void init_pages_in_zone(pg_data_t
 				continue;
 
 			page_ext = lookup_page_ext(page);
+			if (unlikely(!page_ext))
+				continue;
 
 			/* Maybe overraping zone */
 			if (test_bit(PAGE_EXT_OWNER, &page_ext->flags))
diff -druNp --no-dereference linux-libre-4.4.100-gnu/mm/pagewalk.c linux-libre-4.4.102-gnu/mm/pagewalk.c
--- linux-libre-4.4.100-gnu/mm/pagewalk.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/mm/pagewalk.c	2017-11-24 05:26:29.000000000 -0500
@@ -142,8 +142,12 @@ static int walk_hugetlb_range(unsigned l
 	do {
 		next = hugetlb_entry_end(h, addr, end);
 		pte = huge_pte_offset(walk->mm, addr & hmask);
-		if (pte && walk->hugetlb_entry)
+
+		if (pte)
 			err = walk->hugetlb_entry(pte, hmask, addr, next, walk);
+		else if (walk->pte_hole)
+			err = walk->pte_hole(addr, next, walk);
+
 		if (err)
 			break;
 	} while (addr = next, addr != end);
diff -druNp --no-dereference linux-libre-4.4.100-gnu/mm/vmstat.c linux-libre-4.4.102-gnu/mm/vmstat.c
--- linux-libre-4.4.100-gnu/mm/vmstat.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/mm/vmstat.c	2017-11-24 05:26:29.000000000 -0500
@@ -1091,6 +1091,8 @@ static void pagetypeinfo_showmixedcount_
 				continue;
 
 			page_ext = lookup_page_ext(page);
+			if (unlikely(!page_ext))
+				continue;
 
 			if (!test_bit(PAGE_EXT_OWNER, &page_ext->flags))
 				continue;
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/8021q/vlan.c linux-libre-4.4.102-gnu/net/8021q/vlan.c
--- linux-libre-4.4.100-gnu/net/8021q/vlan.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/8021q/vlan.c	2017-11-24 05:26:29.000000000 -0500
@@ -376,6 +376,9 @@ static int vlan_device_event(struct noti
 			dev->name);
 		vlan_vid_add(dev, htons(ETH_P_8021Q), 0);
 	}
+	if (event == NETDEV_DOWN &&
+	    (dev->features & NETIF_F_HW_VLAN_CTAG_FILTER))
+		vlan_vid_del(dev, htons(ETH_P_8021Q), 0);
 
 	vlan_info = rtnl_dereference(dev->vlan_info);
 	if (!vlan_info)
@@ -423,9 +426,6 @@ static int vlan_device_event(struct noti
 		struct net_device *tmp;
 		LIST_HEAD(close_list);
 
-		if (dev->features & NETIF_F_HW_VLAN_CTAG_FILTER)
-			vlan_vid_del(dev, htons(ETH_P_8021Q), 0);
-
 		/* Put all VLANs for this dev in the down state too.  */
 		vlan_group_for_each_dev(grp, i, vlandev) {
 			flgs = vlandev->flags;
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/core/skbuff.c linux-libre-4.4.102-gnu/net/core/skbuff.c
--- linux-libre-4.4.100-gnu/net/core/skbuff.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/core/skbuff.c	2017-11-24 05:26:29.000000000 -0500
@@ -4229,6 +4229,7 @@ void skb_scrub_packet(struct sk_buff *sk
 	if (!xnet)
 		return;
 
+	ipvs_reset(skb);
 	skb_orphan(skb);
 	skb->mark = 0;
 }
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/ipv4/tcp_output.c linux-libre-4.4.102-gnu/net/ipv4/tcp_output.c
--- linux-libre-4.4.100-gnu/net/ipv4/tcp_output.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/ipv4/tcp_output.c	2017-11-24 05:26:29.000000000 -0500
@@ -3018,13 +3018,8 @@ struct sk_buff *tcp_make_synack(const st
 	tcp_ecn_make_synack(req, th);
 	th->source = htons(ireq->ir_num);
 	th->dest = ireq->ir_rmt_port;
-	/* Setting of flags are superfluous here for callers (and ECE is
-	 * not even correctly set)
-	 */
-	tcp_init_nondata_skb(skb, tcp_rsk(req)->snt_isn,
-			     TCPHDR_SYN | TCPHDR_ACK);
-
-	th->seq = htonl(TCP_SKB_CB(skb)->seq);
+	skb->ip_summed = CHECKSUM_PARTIAL;
+	th->seq = htonl(tcp_rsk(req)->snt_isn);
 	/* XXX data is queued and acked as is. No buffer/window check */
 	th->ack_seq = htonl(tcp_rsk(req)->rcv_nxt);
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/netlink/af_netlink.c linux-libre-4.4.102-gnu/net/netlink/af_netlink.c
--- linux-libre-4.4.100-gnu/net/netlink/af_netlink.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/netlink/af_netlink.c	2017-11-24 05:26:29.000000000 -0500
@@ -2077,7 +2077,7 @@ static int netlink_dump(struct sock *sk)
 	struct sk_buff *skb = NULL;
 	struct nlmsghdr *nlh;
 	struct module *module;
-	int len, err = -ENOBUFS;
+	int err = -ENOBUFS;
 	int alloc_min_size;
 	int alloc_size;
 
@@ -2125,9 +2125,11 @@ static int netlink_dump(struct sock *sk)
 	skb_reserve(skb, skb_tailroom(skb) - alloc_size);
 	netlink_skb_set_owner_r(skb, sk);
 
-	len = cb->dump(skb, cb);
+	if (nlk->dump_done_errno > 0)
+		nlk->dump_done_errno = cb->dump(skb, cb);
 
-	if (len > 0) {
+	if (nlk->dump_done_errno > 0 ||
+	    skb_tailroom(skb) < nlmsg_total_size(sizeof(nlk->dump_done_errno))) {
 		mutex_unlock(nlk->cb_mutex);
 
 		if (sk_filter(sk, skb))
@@ -2137,13 +2139,15 @@ static int netlink_dump(struct sock *sk)
 		return 0;
 	}
 
-	nlh = nlmsg_put_answer(skb, cb, NLMSG_DONE, sizeof(len), NLM_F_MULTI);
-	if (!nlh)
+	nlh = nlmsg_put_answer(skb, cb, NLMSG_DONE,
+			       sizeof(nlk->dump_done_errno), NLM_F_MULTI);
+	if (WARN_ON(!nlh))
 		goto errout_skb;
 
 	nl_dump_check_consistent(cb, nlh);
 
-	memcpy(nlmsg_data(nlh), &len, sizeof(len));
+	memcpy(nlmsg_data(nlh), &nlk->dump_done_errno,
+	       sizeof(nlk->dump_done_errno));
 
 	if (sk_filter(sk, skb))
 		kfree_skb(skb);
@@ -2208,6 +2212,7 @@ int __netlink_dump_start(struct sock *ss
 	cb->skb = skb;
 
 	nlk->cb_running = true;
+	nlk->dump_done_errno = INT_MAX;
 
 	mutex_unlock(nlk->cb_mutex);
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/netlink/af_netlink.h linux-libre-4.4.102-gnu/net/netlink/af_netlink.h
--- linux-libre-4.4.100-gnu/net/netlink/af_netlink.h	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/netlink/af_netlink.h	2017-11-24 05:26:29.000000000 -0500
@@ -38,6 +38,7 @@ struct netlink_sock {
 	wait_queue_head_t	wait;
 	bool			bound;
 	bool			cb_running;
+	int			dump_done_errno;
 	struct netlink_callback	cb;
 	struct mutex		*cb_mutex;
 	struct mutex		cb_def_mutex;
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/sctp/ipv6.c linux-libre-4.4.102-gnu/net/sctp/ipv6.c
--- linux-libre-4.4.100-gnu/net/sctp/ipv6.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/sctp/ipv6.c	2017-11-24 05:26:29.000000000 -0500
@@ -806,6 +806,8 @@ static void sctp_inet6_skb_msgname(struc
 		if (ipv6_addr_type(&addr->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL) {
 			struct sctp_ulpevent *ev = sctp_skb2event(skb);
 			addr->v6.sin6_scope_id = ev->iif;
+		} else {
+			addr->v6.sin6_scope_id = 0;
 		}
 	}
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/net/sctp/socket.c linux-libre-4.4.102-gnu/net/sctp/socket.c
--- linux-libre-4.4.100-gnu/net/sctp/socket.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/net/sctp/socket.c	2017-11-24 05:26:29.000000000 -0500
@@ -4457,6 +4457,10 @@ int sctp_do_peeloff(struct sock *sk, sct
 	if (!net_eq(current->nsproxy->net_ns, sock_net(sk)))
 		return -EINVAL;
 
+	/* Do not peel off from one netns to another one. */
+	if (!net_eq(current->nsproxy->net_ns, sock_net(sk)))
+		return -EINVAL;
+
 	if (!asoc)
 		return -EINVAL;
 
diff -druNp --no-dereference linux-libre-4.4.100-gnu/security/integrity/ima/ima_appraise.c linux-libre-4.4.102-gnu/security/integrity/ima/ima_appraise.c
--- linux-libre-4.4.100-gnu/security/integrity/ima/ima_appraise.c	2017-11-21 03:21:23.000000000 -0500
+++ linux-libre-4.4.102-gnu/security/integrity/ima/ima_appraise.c	2017-11-24 05:26:29.000000000 -0500
@@ -297,6 +297,9 @@ void ima_update_xattr(struct integrity_i
 	if (iint->flags & IMA_DIGSIG)
 		return;
 
+	if (iint->ima_file_status != INTEGRITY_PASS)
+		return;
+
 	rc = ima_collect_measurement(iint, file, NULL, NULL);
 	if (rc < 0)
 		return;
