1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Elena Reshetova <elena.reshetova@intel.com>
3 Date: Mon, 4 Sep 2017 13:11:56 +0300
4 Subject: [PATCH] udf: prevent speculative execution
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
14 Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
15 Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
16 Signed-off-by: Andy Whitcroft <apw@canonical.com>
17 Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
18 (cherry picked from commit f575840dd363aa80a14faacddf90b95db1185e2c)
19 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 fs/udf/misc.c | 6 ++++++
22 1 file changed, 6 insertions(+)
24 diff --git a/fs/udf/misc.c b/fs/udf/misc.c
25 index 3949c4bec3a3..4bd10b2e8540 100644
28 @@ -104,6 +104,8 @@ struct genericFormat *udf_add_extendedattr(struct inode *inode, uint32_t size,
31 le32_to_cpu(eahd->appAttrLocation);
34 memmove(&ea[offset - aal + size],
35 &ea[aal], offset - aal);
37 @@ -114,6 +116,8 @@ struct genericFormat *udf_add_extendedattr(struct inode *inode, uint32_t size,
40 le32_to_cpu(eahd->impAttrLocation);
43 memmove(&ea[offset - ial + size],
44 &ea[ial], offset - ial);
46 @@ -125,6 +129,8 @@ struct genericFormat *udf_add_extendedattr(struct inode *inode, uint32_t size,
49 le32_to_cpu(eahd->appAttrLocation);
52 memmove(&ea[offset - aal + size],
53 &ea[aal], offset - aal);