qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Riku Voipio <riku.voipio@iki.fi>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 0/3] More netlink fixes
Date: Tue, 21 Jun 2016 20:48:51 +0200	[thread overview]
Message-ID: <46690f64-b889-17c2-a135-1737593ea9fe@vivier.eu> (raw)
In-Reply-To: <CAFEAcA87QQoF3Tss-F6VLb_VNwHdFnze+X91iKDOs2mr+Ae94A@mail.gmail.com>



Le 21/06/2016 à 19:55, Peter Maydell a écrit :
> On 21 June 2016 at 18:51, Laurent Vivier <laurent@vivier.eu> wrote:
>> This series allows to run "apt-get update" or "dnf update"
>>
>> Access to internet is hanging because glibc checks the netlink
>> sequence number when it scans for the local IP addresses,
>> and this number is corrupted. This is fixed by patch 2.
>>
>> Once we have fixed this, passwd is not working anymore (audit netlink),
>> because data are not translated while using recvfrom(). This is fixed by
>> patch 3. Patch 1 is a pre-requesite for patch 3.
>>
>> I've tested "apt-get update" and "passwd" with qemu-s390x (big-endian/64bit)
>> ,qemu-m68k (big-endian/32bit, qemu-ppc64le (little-endian/64bit) on x86_64
>> (little-endian/64bit).
> 
> Are these fixes for regressions? "apt-get update" has worked
> for me for ages.

Yes.

When netlink is not available, glibc doesn't use it and "apt-get
update", "wget", "dnf update", ... work fine.

But when netlink is available, glibc uses it and we meet this bug: they
hang.

But it happens only if endianness differs between host and guest.

Laurent

      reply	other threads:[~2016-06-21 18:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21 17:51 [Qemu-devel] [PATCH 0/3] More netlink fixes Laurent Vivier
2016-06-21 17:51 ` [Qemu-devel] [PATCH 1/3] linux-user: fd_trans_*_data() returns the length Laurent Vivier
2016-06-28 16:50   ` Laurent Vivier
2016-06-30  7:52     ` Riku Voipio
2016-06-30 10:44       ` Laurent Vivier
2016-07-07 11:38       ` Laurent Vivier
2016-06-21 17:51 ` [Qemu-devel] [PATCH 2/3] linux-user: fix netlink memory corruption Laurent Vivier
2016-06-21 17:51 ` [Qemu-devel] [PATCH 3/3] linux-user: add fd_trans helper in do_recvfrom() Laurent Vivier
2016-06-21 17:55 ` [Qemu-devel] [PATCH 0/3] More netlink fixes Peter Maydell
2016-06-21 18:48   ` Laurent Vivier [this message]

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=46690f64-b889-17c2-a135-1737593ea9fe@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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).