[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141027185922.GX7996@ZenIV.linux.org.uk>
Date: Mon, 27 Oct 2014 18:59:22 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Daniel Thompson <daniel.thompson@...aro.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
patches@...aro.org, linaro-kernel@...ts.linaro.org,
John Stultz <john.stultz@...aro.org>,
Sumit Semwal <sumit.semwal@...aro.org>
Subject: Re: [PATCH v3.18-rc2] staging: android: logger: Fix log corruption
regression
On Mon, Oct 27, 2014 at 06:51:43PM +0000, Daniel Thompson wrote:
> Since commit cd678fce4280 ("switch logger to ->write_iter()"), any
> attempt to write to the log results in the log data being written over
> its own metadata, thus rendering the log unreadable.
>
> The problem was first detected when I ran an Android userspace on the
> v3.18-rc1 kernel. However the issue can also be observed with a
> non-Android userspace by using echo/cat to write to/from /dev/log_main .
>
> This patch resolves the problem by using a temporary to track the status
> of not-yet-committed writes to the log buffer.
>
> Signed-off-by: Daniel Thompson <daniel.thompson@...aro.org>
> Cc: Al Viro <viro@...iv.linux.org.uk>
Applied
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists