All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ryosuke Iwahashi" <ryosuke@ikotaslabs.com>
Cc: virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH net] vsock: avoid narrowing the receive queue length to int
Date: Fri, 04 Dec 2026 16:58:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-250250@kernel.org> (raw)
In-Reply-To: <CAN2NGG68dKx9L5sezmDhBNizJVAMGUPEnY0S78---NLRa-frUA@mail.gmail.com>

> For virtio stream sockets, vsock_connectible_has_data() returns the
> number of queued bytes as an s64. If the receive queue grows beyond
> INT_MAX, vsock_connectible_wait_data() can narrow that count to a
> negative int. Its callers then report an error even though data is
> available.
> 
> Both callers only test whether the return value is positive. Return
> one when data is available, preserving the zero and error cases.
> 
> Fixes: b3f7fd54881b ("af_vsock: separate wait data loop")
> Signed-off-by: Ryosuke Iwahashi <ryosuke@ikotaslabs.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/CAN2NGG68dKx9L5sezmDhBNizJVAMGUPEnY0S78---NLRa-frUA@mail.gmail.com?part=1

  parent reply	other threads:[~2026-12-04 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 16:35 [PATCH net] vsock: avoid narrowing the receive queue length to int Ryosuke Iwahashi
2026-12-04 16:37 ` netdev-bot+sinfo
2026-12-04 16:39   ` Ryosuke Iwahashi
2026-12-04 16:58 ` sashiko-bot [this message]
2026-12-05 16:37 ` netdev-bot+sashiko
2026-12-05 20:17   ` Ryosuke Iwahashi

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=sashiko-outbox-250250@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=mst@redhat.com \
    --cc=ryosuke@ikotaslabs.com \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=virtualization@lists.linux.dev \
    /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.