From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758196Ab3LXCuj (ORCPT ); Mon, 23 Dec 2013 21:50:39 -0500 Received: from mail4.hitachi.co.jp ([133.145.228.5]:59364 "EHLO mail4.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753802Ab3LXCui (ORCPT ); Mon, 23 Dec 2013 21:50:38 -0500 X-AuditID: 85900ec0-d1d29b9000001514-53-52b8f67b9464 Message-ID: <52B8F678.2090604@hitachi.com> Date: Tue, 24 Dec 2013 11:50:32 +0900 From: Yoshihiro YUNOMAE User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:13.0) Gecko/20120604 Thunderbird/13.0 MIME-Version: 1.0 To: Kay Sievers Cc: LKML , Eiichi Tsukata , Frederic Weisbecker , Tejun Heo , yrl.pp-manager.tt@hitachi.com, Masami Hiramatsu , Joe Perches , Andrew Morton , Hidehiro Kawai Subject: Re: Re: [PATCH 0/2] [BUGFIX] printk: Fix message continuation breakage involved with structured printk References: <20131220094134.24233.2969.stgit@yunodevel> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kay, Thank you for replying me. (2013/12/20 20:29), Kay Sievers wrote: > On Fri, Dec 20, 2013 at 10:41 AM, Yoshihiro YUNOMAE > wrote: > >> This patch set fixes message continuation breakage involved with structured >> printk. A SCSI driver may output two continuation error messages like >> scmd_printk("foo"); >> printf("bar\n"); > > Which is the absolutely wrong thing to do. Structured logging and racy > printk continuation must never be mixed. Userspace needs to be sure > that dictionary entries are not subject to racy continuation hackery, > and that these mwssages atomic, whole and intact. I see. As you say, user tools need to support messages output in multiple lines for SMP environments even if this patch set is introduced. > Please do not mix the both and do not apply these patches. OK, I'll make important messages with KERN_CONT or no-prefix printk() output those in single line. Thanks, Yoshihiro YUNOMAE -- Yoshihiro YUNOMAE Software Platform Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: yoshihiro.yunomae.ez@hitachi.com