]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2012 17:12:36 +0000 (10:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2012 17:12:36 +0000 (10:12 -0700)
added patches:
udf-fix-retun-value-on-error-path-in-udf_load_logicalvol.patch

queue-3.0/series
queue-3.0/udf-fix-retun-value-on-error-path-in-udf_load_logicalvol.patch [new file with mode: 0644]

index faba33a5cb0a7e690ef94035af65700f606df052..9051129cadabc2c172cd7e20b13e22811cc55c9c 100644 (file)
@@ -32,3 +32,4 @@ jbd-fix-assertion-failure-in-commit-code-due-to-lacking-transaction-credits.patc
 x86-random-architectural-inlines-to-get-random-integers-with-rdrand.patch
 x86-random-verify-rdrand-functionality-and-allow-it-to-be-disabled.patch
 tpm-propagate-error-from-tpm_transmit-to-fix-a-timeout-hang.patch
+udf-fix-retun-value-on-error-path-in-udf_load_logicalvol.patch
diff --git a/queue-3.0/udf-fix-retun-value-on-error-path-in-udf_load_logicalvol.patch b/queue-3.0/udf-fix-retun-value-on-error-path-in-udf_load_logicalvol.patch
new file mode 100644 (file)
index 0000000..af38f7d
--- /dev/null
@@ -0,0 +1,42 @@
+From 68766a2edcd5cd744262a70a2f67a320ac944760 Mon Sep 17 00:00:00 2001
+From: Nikola Pajkovsky <npajkovs@redhat.com>
+Date: Wed, 15 Aug 2012 00:38:08 +0200
+Subject: udf: fix retun value on error path in udf_load_logicalvol
+
+From: Nikola Pajkovsky <npajkovs@redhat.com>
+
+commit 68766a2edcd5cd744262a70a2f67a320ac944760 upstream.
+
+In case we detect a problem and bail out, we fail to set "ret" to a
+nonzero value, and udf_load_logicalvol will mistakenly report success.
+
+Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
+Signed-off-by: Jan Kara <jack@suse.cz>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/udf/super.c |    5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/fs/udf/super.c
++++ b/fs/udf/super.c
+@@ -1316,6 +1316,7 @@ static int udf_load_logicalvol(struct su
+               udf_error(sb, __func__, "error loading logical volume descriptor: "
+                       "Partition table too long (%u > %lu)\n", table_len,
+                       sb->s_blocksize - sizeof(*lvd));
++              ret = 1;
+               goto out_bh;
+       }
+@@ -1360,8 +1361,10 @@ static int udf_load_logicalvol(struct su
+                                               UDF_ID_SPARABLE,
+                                               strlen(UDF_ID_SPARABLE))) {
+                               if (udf_load_sparable_map(sb, map,
+-                                  (struct sparablePartitionMap *)gpm) < 0)
++                                  (struct sparablePartitionMap *)gpm) < 0) {
++                                      ret = 1;
+                                       goto out_bh;
++                              }
+                       } else if (!strncmp(upm2->partIdent.ident,
+                                               UDF_ID_METADATA,
+                                               strlen(UDF_ID_METADATA))) {