- printk-add-interfaces-for-external-access-to-the-log-buffer-fix-2.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     printk-add-interfaces-for-external-access-to-the-log-buffer fix 2
has been removed from the -mm tree.  Its filename was
     printk-add-interfaces-for-external-access-to-the-log-buffer-fix-2.patch

This patch was dropped because it was folded into printk-add-interfaces-for-external-access-to-the-log-buffer.patch

------------------------------------------------------
Subject: printk-add-interfaces-for-external-access-to-the-log-buffer fix 2
From: Mike Frysinger <vapier@xxxxxxxxxx>

Key off of the log buffer rather than the kernel ring buffer as the
latter is constantly cleared by userspace daemons.  Also, make sure
we index into the buffer properly as pointed out by Tim Bird.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
Cc: Greg Ungerer <gerg@xxxxxxxxxxxx>
Cc: Paul Mundt <lethal@xxxxxxxxxxxx>
Cc: Robin Getz <rgetz@xxxxxxxxxxxxxxxxxxxx>
Cc: Russell King <rmk@xxxxxxxxxxxxxxxx>
Cc: Tim Bird <tim.bird@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/printk.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff -puN kernel/printk.c~printk-add-interfaces-for-external-access-to-the-log-buffer-fix-2 kernel/printk.c
--- a/kernel/printk.c~printk-add-interfaces-for-external-access-to-the-log-buffer-fix-2
+++ a/kernel/printk.c
@@ -224,7 +224,7 @@ static inline void boot_delay_msec(void)
  */
 int log_buf_get_len(void)
 {
-	return log_end - log_start;
+	return logged_chars;
 }
 
 /*
@@ -247,10 +247,9 @@ int log_buf_copy(char *dest, int idx, in
 		if (len > max)
 			len = max;
 		ret = len;
-		while (len-- > 0) {
-			*dest = LOG_BUF(idx++);
-			++dest;
-		}
+		idx += (log_end - max);
+		while (len-- > 0)
+			dest[len] = LOG_BUF(idx + len);
 	}
 
 	if (took_lock)
_

Patches currently in -mm which might be from vapier@xxxxxxxxxx are

origin.patch
printk-add-interfaces-for-external-access-to-the-log-buffer.patch
printk-add-interfaces-for-external-access-to-the-log-buffer-fix-2.patch
add-stack-checking-for-blackfin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux