]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2015 00:47:01 +0000 (16:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2015 00:47:01 +0000 (16:47 -0800)
added patches:
ext4-ignore-journal-checksum-on-remount-don-t-fail.patch
media-rc-send-sync-space-information-on-the-lirc.patch

queue-3.18/ext4-ignore-journal-checksum-on-remount-don-t-fail.patch [new file with mode: 0644]
queue-3.18/media-rc-send-sync-space-information-on-the-lirc.patch [new file with mode: 0644]
queue-3.18/series

diff --git a/queue-3.18/ext4-ignore-journal-checksum-on-remount-don-t-fail.patch b/queue-3.18/ext4-ignore-journal-checksum-on-remount-don-t-fail.patch
new file mode 100644 (file)
index 0000000..db873bd
--- /dev/null
@@ -0,0 +1,48 @@
+From 2d5b86e048780c5efa7f7d9708815555919e7b05 Mon Sep 17 00:00:00 2001
+From: Eric Sandeen <sandeen@redhat.com>
+Date: Thu, 12 Feb 2015 23:07:37 -0500
+Subject: ext4: ignore journal checksum on remount; don't fail
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Eric Sandeen <sandeen@redhat.com>
+
+commit 2d5b86e048780c5efa7f7d9708815555919e7b05 upstream.
+
+As of v3.18, ext4 started rejecting a remount which changes the
+journal_checksum option.
+
+Prior to that, it was simply ignored; the problem here is that
+if someone has this in their fstab for the root fs, now the box
+fails to boot properly, because remount of root with the new options
+will fail, and the box proceeds with a readonly root.
+
+I think it is a little nicer behavior to accept the option, but
+warn that it's being ignored, rather than failing the mount,
+but that might be a subjective matter...
+
+Reported-by: Cónräd <conradsand.arma@gmail.com>
+Signed-off-by: Eric Sandeen <sandeen@redhat.com>
+Signed-off-by: Theodore Ts'o <tytso@mit.edu>
+Cc: Josh Boyer <jwboyer@fedoraproject.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/ext4/super.c |    5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+--- a/fs/ext4/super.c
++++ b/fs/ext4/super.c
+@@ -4849,9 +4849,8 @@ static int ext4_remount(struct super_blo
+       if ((old_opts.s_mount_opt & EXT4_MOUNT_JOURNAL_CHECKSUM) ^
+           test_opt(sb, JOURNAL_CHECKSUM)) {
+               ext4_msg(sb, KERN_ERR, "changing journal_checksum "
+-                       "during remount not supported");
+-              err = -EINVAL;
+-              goto restore_opts;
++                       "during remount not supported; ignoring");
++              sbi->s_mount_opt ^= EXT4_MOUNT_JOURNAL_CHECKSUM;
+       }
+       if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
diff --git a/queue-3.18/media-rc-send-sync-space-information-on-the-lirc.patch b/queue-3.18/media-rc-send-sync-space-information-on-the-lirc.patch
new file mode 100644 (file)
index 0000000..fee7494
--- /dev/null
@@ -0,0 +1,49 @@
+From a8f29e89f2b54fbf2c52be341f149bc195b63a8b Mon Sep 17 00:00:00 2001
+From: Austin Lund <austin.lund@gmail.com>
+Date: Thu, 24 Jul 2014 07:40:20 -0300
+Subject: [media] media/rc: Send sync space information on the lirc
+ device
+
+From: Austin Lund <austin.lund@gmail.com>
+
+commit a8f29e89f2b54fbf2c52be341f149bc195b63a8b upstream.
+
+Userspace expects to see a long space before the first pulse is sent on
+the lirc device.  Currently, if a long time has passed and a new packet
+is started, the lirc codec just returns and doesn't send anything.  This
+makes lircd ignore many perfectly valid signals unless they are sent in
+quick sucession.  When a reset event is delivered, we cannot know
+anything about the duration of the space.  But it should be safe to
+assume it has been a long time and we just set the duration to maximum.
+
+Signed-off-by: Austin Lund <austin.lund@gmail.com>
+Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/media/rc/ir-lirc-codec.c |   12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+--- a/drivers/media/rc/ir-lirc-codec.c
++++ b/drivers/media/rc/ir-lirc-codec.c
+@@ -42,11 +42,17 @@ static int ir_lirc_decode(struct rc_dev
+               return -EINVAL;
+       /* Packet start */
+-      if (ev.reset)
+-              return 0;
++      if (ev.reset) {
++              /* Userspace expects a long space event before the start of
++               * the signal to use as a sync.  This may be done with repeat
++               * packets and normal samples.  But if a reset has been sent
++               * then we assume that a long time has passed, so we send a
++               * space with the maximum time value. */
++              sample = LIRC_SPACE(LIRC_VALUE_MASK);
++              IR_dprintk(2, "delivering reset sync space to lirc_dev\n");
+       /* Carrier reports */
+-      if (ev.carrier_report) {
++      } else if (ev.carrier_report) {
+               sample = LIRC_FREQUENCY(ev.carrier);
+               IR_dprintk(2, "carrier report (freq: %d)\n", sample);
index 324c6e64c14677bf3a615b67980e15f5052ee11a..2cc80acf9527cc98c466bfdae36b5c2482351a9c 100644 (file)
@@ -16,3 +16,5 @@ ppp-deflate-never-return-len-larger-than-output-buffer.patch
 net-sctp-fix-passing-wrong-parameter-header-to-param_type2af-in-sctp_process_param.patch
 hyperv-fix-the-error-processing-in-netvsc_send.patch
 net-sched-fix-panic-in-rate-estimators.patch
+ext4-ignore-journal-checksum-on-remount-don-t-fail.patch
+media-rc-send-sync-space-information-on-the-lirc.patch