Re: Bug 44211 - /proc/kmsg does not (always) block for 1-byte reads

2012-07-08 Thread Kay Sievers
On Sun, Jul 8, 2012 at 2:59 PM, Alan Cox wrote: >> The patch will not fix the underlying problem, but just make it behave >> more like it was and allow partial message reads. This is a years old >> problem, the net is full of bugreports of stuff going wrong with >> running dd bs=1 on /proc/kmsg. I

Re: Bug 44211 - /proc/kmsg does not (always) block for 1-byte reads

2012-07-08 Thread Alan Cox
> The patch will not fix the underlying problem, but just make it behave > more like it was and allow partial message reads. This is a years old > problem, the net is full of bugreports of stuff going wrong with > running dd bs=1 on /proc/kmsg. It is a really stupid idea, and can not > work for man

Re: Bug 44211 - /proc/kmsg does not (always) block for 1-byte reads

2012-07-08 Thread Kay Sievers
On Fri, Jul 6, 2012 at 7:55 PM, Greg KH wrote: > On Fri, Jul 06, 2012 at 08:45:44PM +0300, Jukka Ollila wrote: >> Hello, >> >> A few days ago I filed a kernel regression report concerning a change >> in /proc/kmsg behaviour with short reads: >> >> https://bugzilla.kernel.org/show_bug.cgi?id=44211

Re: Bug 44211 - /proc/kmsg does not (always) block for 1-byte reads

2012-07-06 Thread Jukka Ollila
On Fri, Jul 6, 2012 at 8:55 PM, Greg KH wrote: > On Fri, Jul 06, 2012 at 08:45:44PM +0300, Jukka Ollila wrote: >> A few days ago I filed a kernel regression report concerning a change >> in /proc/kmsg behaviour with short reads: >> >> https://bugzilla.kernel.org/show_bug.cgi?id=44211 > I think we

Re: Bug 44211 - /proc/kmsg does not (always) block for 1-byte reads

2012-07-06 Thread Greg KH
On Fri, Jul 06, 2012 at 08:45:44PM +0300, Jukka Ollila wrote: > Hello, > > A few days ago I filed a kernel regression report concerning a change > in /proc/kmsg behaviour with short reads: > > https://bugzilla.kernel.org/show_bug.cgi?id=44211 > > The comments suggest that this is probably intent

Bug 44211 - /proc/kmsg does not (always) block for 1-byte reads

2012-07-06 Thread Jukka Ollila
Hello, A few days ago I filed a kernel regression report concerning a change in /proc/kmsg behaviour with short reads: https://bugzilla.kernel.org/show_bug.cgi?id=44211 The comments suggest that this is probably intentional, but that it would be best make sure that the current semantics wrt shor