]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Sep 2012 21:04:53 +0000 (14:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Sep 2012 21:04:53 +0000 (14:04 -0700)
added patches:
squashfs-fix-mount-time-sanity-check-for-corrupted-superblock.patch

queue-3.0/series
queue-3.0/squashfs-fix-mount-time-sanity-check-for-corrupted-superblock.patch [new file with mode: 0644]

index 7bea516221b1526113fda174d55feb8e71778126..23446de05c98249060c50ec7055a5e2fbc05ce69 100644 (file)
@@ -116,3 +116,4 @@ media-avoid-sysfs-oops-when-an-rc_dev-s-raw-device-is-absent.patch
 pch_uart-fix-missing-break-for-16-byte-fifo.patch
 pch_uart-fix-rx-error-interrupt-setting-issue.patch
 pch_uart-fix-parity-setting-issue.patch
+squashfs-fix-mount-time-sanity-check-for-corrupted-superblock.patch
diff --git a/queue-3.0/squashfs-fix-mount-time-sanity-check-for-corrupted-superblock.patch b/queue-3.0/squashfs-fix-mount-time-sanity-check-for-corrupted-superblock.patch
new file mode 100644 (file)
index 0000000..d68929e
--- /dev/null
@@ -0,0 +1,35 @@
+From cc37f75a9ffbbfcb1c3297534f293c8284e3c5a6 Mon Sep 17 00:00:00 2001
+From: Phillip Lougher <phillip@squashfs.org.uk>
+Date: Mon, 2 Jan 2012 17:47:14 +0000
+Subject: Squashfs: fix mount time sanity check for corrupted superblock
+
+From: Phillip Lougher <phillip@squashfs.org.uk>
+
+commit cc37f75a9ffbbfcb1c3297534f293c8284e3c5a6 upstream.
+
+A Squashfs filesystem containing nothing but an empty directory,
+although unusual and ultimately pointless, is still valid.
+
+The directory_table >= next_table sanity check rejects these
+filesystems as invalid because the directory_table is empty and
+equal to next_table.
+
+Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
+Cc: Geert Uytterhoeven <geert@linux-m68k.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/squashfs/super.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/fs/squashfs/super.c
++++ b/fs/squashfs/super.c
+@@ -290,7 +290,7 @@ handle_fragments:
+ check_directory_table:
+       /* Sanity check directory_table */
+-      if (msblk->directory_table >= next_table) {
++      if (msblk->directory_table > next_table) {
+               err = -EINVAL;
+               goto failed_mount;
+       }