28.01.2014 16:03, Pavel Machek ÐÐÑÐÑ:Hi!Wasn't this already applied?
Was this solved somehow?OK, sorry, after a year of rot of my patch in bugzilla, I'veHow is this different from the unpatched kernel????
In the unpatched kernel, if you happen on reader side
to enable icanon while n_tty received all but VEOF (is this
possible at all?),
then the buffer will be flushed, and the remaining VEOF
will get you a nice EOF.
So, in the unpatched kernel you get EOF because the buffer
gets wiped.
Testcase output from 3.12 w/o patch:
completely forgot the pre-conditions, which is that the
buffer is not discarded, just not pushed.
Consider the total brute-force approach; a shadow read_flags that
distinguishes a real EOF receive from the fake EOF push initiated
by the patch.