From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 05/10] systemd: backport patch to fix reading journal backwards
Date: Thu, 5 Feb 2015 10:39:43 -0800 [thread overview]
Message-ID: <1423161588-6867-6-git-send-email-sgw@linux.intel.com> (raw)
In-Reply-To: <1423161588-6867-1-git-send-email-sgw@linux.intel.com>
From: Jonathan Liu <net147@gmail.com>
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
...-Fix-navigating-backwards-missing-entries.patch | 34 ++++++++++++++++++++++
meta/recipes-core/systemd/systemd_211.bb | 1 +
2 files changed, 35 insertions(+)
create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-Fix-navigating-backwards-missing-entries.patch
diff --git a/meta/recipes-core/systemd/systemd/0001-journal-Fix-navigating-backwards-missing-entries.patch b/meta/recipes-core/systemd/systemd/0001-journal-Fix-navigating-backwards-missing-entries.patch
new file mode 100644
index 0000000..621a0da
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0001-journal-Fix-navigating-backwards-missing-entries.patch
@@ -0,0 +1,34 @@
+From 2173cbf847fc53ca24950e77958c902edecfc207 Mon Sep 17 00:00:00 2001
+From: Olivier Brunel <jjk@jjacky.com>
+Date: Fri, 5 Dec 2014 16:06:45 +0100
+Subject: [PATCH] journal: Fix navigating backwards missing entries
+
+With DIRECTION_UP (i.e. navigating backwards) in generic_array_bisect() when the
+needle was found as the last item in the array, it wasn't actually processed as
+match, resulting in entries being missed.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=86855
+
+Upstream-Status: Backport
+
+Signed-off-by: Jonathan Liu <net147@gmail.com>
+---
+ src/journal/journal-file.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
+index 7858435..c5d2d19 100644
+--- a/src/journal/journal-file.c
++++ b/src/journal/journal-file.c
+@@ -1657,7 +1657,7 @@ static int generic_array_bisect(
+ }
+ }
+
+- if (k > n) {
++ if (k >= n) {
+ if (direction == DIRECTION_UP) {
+ i = n;
+ subtract_one = true;
+--
+2.1.3
+
diff --git a/meta/recipes-core/systemd/systemd_211.bb b/meta/recipes-core/systemd/systemd_211.bb
index 44b1965..567c323 100644
--- a/meta/recipes-core/systemd/systemd_211.bb
+++ b/meta/recipes-core/systemd/systemd_211.bb
@@ -32,6 +32,7 @@ SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;branch=master;protocol=
file://uclibc-sysinfo_h.patch \
file://uclibc-get-physmem.patch \
file://sd-bus-don-t-use-assert_return-to-check-for-disconne.patch \
+ file://0001-journal-Fix-navigating-backwards-missing-entries.patch \
\
file://touchscreen.rules \
file://00-create-volatile.conf \
--
2.1.0
next prev parent reply other threads:[~2015-02-05 18:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 18:39 [PATCH 00/10][daisy] Patches for Daisy Saul Wold
2015-02-05 18:39 ` [PATCH 01/10] cpio: fix bug CVE-2014-9112 for cpio-2.11 Saul Wold
2015-02-05 18:39 ` [PATCH 02/10] cpio: fix bug CVE-2014-9112 for cpio-2.8 Saul Wold
2015-02-05 18:39 ` [PATCH 03/10] resolvconf: add fixes for busybox and make it work Saul Wold
2015-02-05 18:39 ` [PATCH 04/10] openssh: move setting LD to allow for correct override Saul Wold
2015-02-05 18:39 ` Saul Wold [this message]
2015-02-05 18:39 ` [PATCH 06/10] python: Disables SSLv3 Saul Wold
2015-02-05 18:39 ` [PATCH 07/10] update-rc.d: Allow to use different initscripts provider Saul Wold
2015-02-05 18:39 ` [PATCH 08/10] file: CVE-2014-9620 and CVE-2014-9621 Saul Wold
2015-02-05 18:39 ` [PATCH 09/10] bind: fix for CVE-2014-8500 Saul Wold
2015-02-05 18:39 ` [PATCH 10/10] btrfs: create an empty file to build the fs in Saul Wold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423161588-6867-6-git-send-email-sgw@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox