From: Andrey Korolyov <andrey@xdel.ru>
To: Kirill Batuzov <batuzovk@ispras.ru>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Serial: possible hang during intensive interaction over the console
Date: Thu, 4 Sep 2014 14:00:21 +0400 [thread overview]
Message-ID: <CABYiri8FpOO7Q-StbH7TSMZm4yuWHrYctxDD4miqNLzzRwPnsA@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1409041332360.6072@bulbul.intra.ispras.ru>
On Thu, Sep 4, 2014 at 1:46 PM, Kirill Batuzov <batuzovk@ispras.ru> wrote:
> On Wed, 3 Sep 2014, Andrey Korolyov wrote:
>
>> Given 2.1 and isa-serial output, set as ttyS0 for the guest VM with
>> 9600 baud rate.
>>
>> The test case is quite simple - display as much data as possible over
>> serial console and do not hang the system. While qemu-1.1 works
>> perfectly, with complaining for lost interrupts (known bug for used
>> guest kernel), 2.1 just hangs after some seconds, eating up all
>> available cpu quota.
>>
>> Test case is 'while true; dmesg; done' in serial console. I`d like to
>> ask to consider this bug as very serious as VM going completely
>> unresponsive in matter of tens of seconds and there are a lot of side
>> attacks to produce enough number of printk() to the ttyS0 with serial
>> console being set up and default settings for almost any distro in
>> such a way that message suppression would not work and VM can be DoSed
>> by an unprivileged user.
>>
>>
>
> I tried to reproduce the described behaviour with aboriginal linux and
> QEMU 2.1.0 but without luck.
>
> The configurations I tried:
>
> qemu-system-i386 -cpu pentium3 -no-reboot -kernel bzImage -hda hda.sqf \
> -append "root=/dev/hda rw init=/sbin/init.sh panic=1 console=ttyS0 HOST=i686"
>
> qemu-system-i386 -cpu pentium3 -no-reboot -kernel bzImage -hda hda.sqf \
> -append "root=/dev/hda rw init=/bin/ash panic=1 console=ttyS0,9600 HOST=i686"
>
> With all output the system did not hang. In particular I alway could
> switch to QEMU monitor and stop the VM from there.
>
> Can you give an exact QEMU command line which leads to the bug?
>
> --
> Kirill
Thanks, the launch string can be borrowed from attach here:
http://lists.nongnu.org/archive/html/qemu-devel/2014-09/msg00482.html,
the same VM is going under test.
By hang I mean stopping ability to send icmp replies, it is like a
kind of a watermark for issues I count serious after. Just tested
again, the ceiling is not exactly representing all available cpu quota
*every* time but is rounded by seemingly random count of cores from 3.
to 9 in mine series of tests, with quota limit of 12. VM became
unresponsive in matter of seconds, consumption raising by 'clicking'
core count for about a half of minute, stabilizing then. Guest args
are console=tty0 console=ttyS0,9600n8.
next prev parent reply other threads:[~2014-09-04 10:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 10:35 [Qemu-devel] Serial: possible hang during intensive interaction over the console Andrey Korolyov
2014-09-04 9:46 ` Kirill Batuzov
2014-09-04 10:00 ` Andrey Korolyov [this message]
2014-09-04 13:33 ` Kirill Batuzov
2014-09-04 16:03 ` Andrey Korolyov
2014-09-05 17:45 ` Andrey Korolyov
2014-09-09 15:28 ` Kirill Batuzov
2014-09-09 15:44 ` Andrey Korolyov
2014-12-11 14:56 ` Paolo Bonzini
2014-12-11 15:06 ` Peter Maydell
2014-12-11 19:35 ` Paolo Bonzini
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=CABYiri8FpOO7Q-StbH7TSMZm4yuWHrYctxDD4miqNLzzRwPnsA@mail.gmail.com \
--to=andrey@xdel.ru \
--cc=batuzovk@ispras.ru \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).