All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Schuermann <leon@is.currently.online>
To: Ming Lei <ming.lei@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	josef@toxicpanda.com, axboe@kernel.dk,
	linux-block@vger.kernel.org, nbd@other.debian.org,
	eblake@redhat.com, Vincent Chen <vincent.chen@sifive.com>
Subject: Re: Kernel NBD client waits on wrong cookie, aborts connection
Date: Fri, 18 Oct 2024 10:40:32 -0400	[thread overview]
Message-ID: <87bjzh4gpr.fsf@silicon.host.schuermann.io> (raw)
In-Reply-To: <Zw8i6-DVDsLk3sq9@fedora>

Thanks for CCing me on this thread. Indeed this seems to be the exact
same issue that I (and Vincent Chen) reported in the other thread [1].

Ming Lei <ming.lei@redhat.com> writes:
> diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
> index 2cafcf11ee8b..3cc14fc76546 100644

I can confirm that this patch fixes these issues.

Prior to this patch, I managed to reproduce both the "Unexpected reply"
and "Double reply" bugs reliably via a TCP/IP connection between two
AMD64 VMs on different hosts, two aarch64 VMs, and an aarch64 Raspberry
Pi 5 SBC connecting to an NBD server on another host.

With this patch, at least in the AMD64 VM setup, it survived an
hour-long stress test using the `stress-ng` command from [1]. Also,
sending a SIGINT to a process actively using the disk often manifested
this bug. I could not reproduce this faulty behavior with this patch.

I'm still working on backporting this to and compiling the v6.6
Raspberry Pi vendor kernel and will report my observations there. I'll
also try Ming's v2 from [2].

Thanks!

-Leon

[1]: https://lore.kernel.org/linux-block/87jzea4w2n.fsf@silicon.host.schuermann.io/
[2]: https://lore.kernel.org/linux-block/20241018140831.3064135-1-ming.lei@redhat.com/

  parent reply	other threads:[~2024-10-18 14:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 10:21 Kernel NBD client waits on wrong cookie, aborts connection Kevin Wolf
2024-10-15 12:01 ` Ming Lei
2024-10-15 12:11   ` Ming Lei
2024-10-15 12:15     ` Ming Lei
2024-10-15 12:59       ` Ming Lei
2024-10-15 16:06         ` Kevin Wolf
2024-10-16  2:20           ` Ming Lei
2024-10-16 17:00             ` Kevin Wolf
2024-10-17  1:16               ` Ming Lei
2024-10-17  2:52                 ` Ming Lei
2024-10-18 14:40             ` Leon Schuermann [this message]
2024-10-21 17:54             ` UNSUBSCRIBE Simon Fernandez

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=87bjzh4gpr.fsf@silicon.host.schuermann.io \
    --to=leon@is.currently.online \
    --cc=axboe@kernel.dk \
    --cc=eblake@redhat.com \
    --cc=josef@toxicpanda.com \
    --cc=kwolf@redhat.com \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=nbd@other.debian.org \
    --cc=vincent.chen@sifive.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.