printk-add-comment-about-tricky-check-for-text-buffer-size.patch removed from -mm tree
Subject: [merged] printk-add-comment-about-tricky-check-for-text-buffer-size.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 04 Apr 2014 12:32:50 -0700
The patch titled
Subject: printk: add comment about tricky check for text buffer size
has been removed from the -mm tree. Its filename was
printk-add-comment-about-tricky-check-for-text-buffer-size.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Petr Mladek <[email protected]>
Subject: printk: add comment about tricky check for text buffer size
There is no check for potential "text_len" overflow. It is not needed because only valid level is detected. It took me some time to understand why. It would deserve a comment ;-)
---
kernel/printk/printk.c | 5 +++++ 1 file changed, 5 insertions(+)
kernel/printk/printk.c renamed from kernel/printk/printk.c~printk-add-comment-about-tricky-check-for-text-buffer-size +5 -0
@@ -1561,6 +1561,11 @@ asmlinkage int vprintk_emit(int facilitycase 'd' :/* KERN_DEFAULT */ lflags |=LOG_PREFIX ; } +/* +* No need to check length here because vscnprintf +* put '\0' at the end of the string. Only valid and +* newly printed level is detected. +*/ text_len -= end_of_header - text; text = (char *)end_of_header; }
_
Patches currently in -mm which might be from [email protected] are
origin.patch
linux-next.patch