From 5d1212457ad2bf120db14feb223b302687fbed01 Mon Sep 17 00:00:00 2001
From: Andy Whitcroft <apw@canonical.com>
Date: Tue, 20 Feb 2018 13:53:52 +0000
Subject: [PATCH 034/131] Revert "UBUNTU: SAUCE: fs: prevent speculative
 execution"

CVE-2017-5753 (revert embargoed)
CVE-2017-5715 (revert embargoed)

This reverts commit 506014d031bce5afffd7dbb0a4cd93395968c7e4.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 include/linux/fdtable.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h
index 9a1f8255bcd0..085197bd8812 100644
--- a/include/linux/fdtable.h
+++ b/include/linux/fdtable.h
@@ -79,10 +79,8 @@ static inline struct file * fcheck_files(struct files_struct *files, unsigned in
 	struct file * file = NULL;
 	struct fdtable *fdt = files_fdtable(files);
 
-	if (fd < fdt->max_fds) {
-		gmb();
+	if (fd < fdt->max_fds)
 		file = rcu_dereference_check_fdtable(files, fdt->fd[fd]);
-	}
 	return file;
 }
 
-- 
2.15.1

