From: Matthieu CASTET <matthieu.castet@parrot.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Egmont Koblinger <egmont@gmail.com>, Alan Cox <alan@redhat.com>
Subject: re : PROBLEM: Data corruption when pasting large data to terminal
Date: Tue, 21 Feb 2012 14:37:27 +0100 [thread overview]
Message-ID: <4F439E17.8090507@parrot.com> (raw)
Hi,
> - I couldn't reproduce with cat-like applications, I have a feeling
> perhaps the bug only occurs in raw terminal mode, but I'm really not
> sure about this.
We saw in our case a possible data corruption in the tty layer :
in n_tty the n_tty_receive_buf can drop characters if it can't copy all of them
in the tty circular buffer.
A fix should be to remove tty->receive_room and make n_tty_receive_buf return
the number of bytes copied.
A patch to correct this was done in b1c43f82c5aa265442f82dba31ce985ebb7aa71c,
but it was reverted because it was buggy.
May be you should check that this is not your problem.
Matthieu
reply other threads:[~2012-02-21 13:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F439E17.8090507@parrot.com \
--to=matthieu.castet@parrot.com \
--cc=alan@redhat.com \
--cc=egmont@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox