lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20120710172838.06f3fff7ab03d91898d18f51@canb.auug.org.au>
Date:	Tue, 10 Jul 2012 17:28:38 +1000
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
	Joe Perches <joe@...ches.com>, Kay Sievers <kay@...y.org>,
	Greg KH <greg@...ah.com>
Subject: linux-next: manual merge of the akpm tree with the
 driver-core.current tree

Hi Andrew,

Today's linux-next merge of the akpm tree got a conflict in
kernel/printk.c between commit 5becfb1df5ac ("kmsg: merge continuation
records while printing") from the driver-core.current tree and commit
"printk: only look for prefix levels in kernel messages" from the akpm
tree.

I fixed it up (see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au

diff --cc kernel/printk.c
index 104a4ee,04983fc..0000000
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@@ -1496,24 -1453,27 +1495,27 @@@ asmlinkage int vprintk_emit(int facilit
  	/* mark and strip a trailing newline */
  	if (text_len && text[text_len-1] == '\n') {
  		text_len--;
 -		newline = true;
 +		lflags |= LOG_NEWLINE;
  	}
  
- 	/* strip syslog prefix and extract log level or control flags */
- 	kern_level = printk_get_level(text);
- 	if (kern_level) {
- 		const char *end_of_header = printk_skip_level(text);
- 		switch (kern_level) {
- 		case '0' ... '7':
- 			if (level == -1)
- 				level = kern_level - '0';
- 		case 'd':	/* KERN_DEFAULT */
- 			lflags |= LOG_PREFIX;
- 		case 'c':	/* KERN_CONT */
- 			break;
+ 	/* strip kernel syslog prefix and extract log level or control flags */
+ 	if (facility == 0) {
+ 		int kern_level = printk_get_level(text);
+ 
+ 		if (kern_level) {
+ 			const char *end_of_header = printk_skip_level(text);
+ 			switch (kern_level) {
+ 			case '0' ... '7':
+ 				if (level == -1)
+ 					level = kern_level - '0';
+ 			case 'd':	/* KERN_DEFAULT */
 -				prefix = true;
++				lflags |= LOG_PREFIX;
+ 			case 'c':	/* KERN_CONT */
+ 				break;
+ 			}
+ 			text_len -= end_of_header - text;
+ 			text = (char *)end_of_header;
  		}
- 		text_len -= end_of_header - text;
- 		text = (char *)end_of_header;
  	}
  
  	if (level == -1)

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ