[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPpAL=z9GZKTDETJVEpq1aop8q1Rgn7VaXbV_S4_y-nsVfzpxQ@mail.gmail.com>
Date: Tue, 30 Sep 2025 00:00:18 +0800
From: Lei Yang <leiyang@...hat.com>
To: Jason Wang <jasowang@...hat.com>
Cc: "Michael S. Tsirkin" <mst@...hat.com>, linux-kernel@...r.kernel.org,
zhang jiao <zhangjiao2@...s.chinamobile.com>, Eugenio Pérez <eperezma@...hat.com>,
kvm@...r.kernel.org, virtualization@...ts.linux.dev, netdev@...r.kernel.org
Subject: Re: [PATCH] vhost: vringh: Fix copy_to_iter return value check
Tested this patch with virtio-net regression tests, everything works fine.
Tested-by: Lei Yang <leiyang@...hat.com>
On Wed, Sep 24, 2025 at 8:54 AM Jason Wang <jasowang@...hat.com> wrote:
>
> On Wed, Sep 24, 2025 at 5:48 AM Michael S. Tsirkin <mst@...hat.com> wrote:
> >
> > The return value of copy_to_iter can't be negative, check whether the
> > copied length is equal to the requested length instead of checking for
> > negative values.
> >
> > Cc: zhang jiao <zhangjiao2@...s.chinamobile.com>
> > Link: https://lore.kernel.org/all/20250910091739.2999-1-zhangjiao2@cmss.chinamobile.com
> > Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
> > ---
> >
> >
>
> Acked-by: Jason Wang <jasowang@...hat.com>
>
> Thanks
>
>
Powered by blists - more mailing lists