From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24306C3DA7A for ; Wed, 21 Dec 2022 06:36:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234105AbiLUGg2 (ORCPT ); Wed, 21 Dec 2022 01:36:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233806AbiLUGf6 (ORCPT ); Wed, 21 Dec 2022 01:35:58 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481291EED1 for ; Tue, 20 Dec 2022 22:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671604510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Oogjy+HZSATwQ8rGTEmVI9Wh5GRJb31ePjraWFpnkQk=; b=ItkBGxhKlfxK+/AZCy7li5PgV3LH3utcvQRDyNeg5/sBncx5lmQL6kshPURTksycFyTfsM UnSYXUChSGlmo8rZ+QqZbKoxcgo56JZobq/ASnTpYryIPbzv8zkia8J2eGAiOYn/jSxBhv snXqS+CEVrt/gnxwpLGLtaGsCk+kZSY= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-98-NUTi_btcODOMgz4XGXN6Fg-1; Wed, 21 Dec 2022 01:35:08 -0500 X-MC-Unique: NUTi_btcODOMgz4XGXN6Fg-1 Received: by mail-qk1-f200.google.com with SMTP id h13-20020a05620a244d00b006fb713618b8so10914873qkn.0 for ; Tue, 20 Dec 2022 22:35:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Oogjy+HZSATwQ8rGTEmVI9Wh5GRJb31ePjraWFpnkQk=; b=1+UrVkMDJ94viWzI6HbNWBh1flQDxotDMoGoiV61GSnT1DK2L0Nqsa/I5o/2pwT5RL NP9zsvuxC4YEPLzj2Mqd8P/DHFsgXR40XVQEVII/yNRIisHNZa/USl9dlgYq4jm06SDs urQJ97QJNptHaMas9YaGFBmtuCpqCrGnW4d7hPn0zgpWHmmcuts6k3VVMY/rFqf96dkh Rxhh01j9f5bcCoJ/Wv5cPl7nvpZCFqxfshHDLO1ZzbslD7tF1rXKk8YR2cnI1n26upRr DMQz9/RmjBcTwu5IhPsvGo3cGiksHqwex2TQE3RuBoOat9hs6XK+sXmriPYQ6Iwf7di4 hhbw== X-Gm-Message-State: AFqh2kqx/yuL+5wVGaggKm9qjGV+kGGPJ9wrWwaejB/aOllkVY0/QYAP oaooYX/EZizus+FsAS3I3h1UQ6nH1Nl2vsbmFWDLXNH+i9cm5ge1BxV8jFyHuwhbBnQMG2R7dJs 4pOSP1qGnUaFXtD2P X-Received: by 2002:ac8:5e8f:0:b0:3a6:a292:286c with SMTP id r15-20020ac85e8f000000b003a6a292286cmr634086qtx.18.1671604507913; Tue, 20 Dec 2022 22:35:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXvLb3tolXBEGGnqe6rCD+KVURXzM+dzc3FfO7RoLpOTxOFn0WRR3dQpaeRRHkQJy4ymraACkQ== X-Received: by 2002:ac8:5e8f:0:b0:3a6:a292:286c with SMTP id r15-20020ac85e8f000000b003a6a292286cmr634076qtx.18.1671604507655; Tue, 20 Dec 2022 22:35:07 -0800 (PST) Received: from redhat.com ([37.19.199.117]) by smtp.gmail.com with ESMTPSA id h9-20020ac81389000000b003a530a32f67sm8639661qtj.65.2022.12.20.22.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 22:35:07 -0800 (PST) Date: Wed, 21 Dec 2022 01:35:02 -0500 From: "Michael S. Tsirkin" To: Jason Wang Cc: Cindy Lu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] vhost_vdpa: fix the compile issue in commit 881ac7d2314f Message-ID: <20221221013359-mutt-send-email-mst@kernel.org> References: <20221220140205.795115-1-lulu@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Dec 21, 2022 at 11:23:09AM +0800, Jason Wang wrote: > On Tue, Dec 20, 2022 at 10:02 PM Cindy Lu wrote: > > > > The input of vhost_vdpa_iotlb_unmap() was changed in 881ac7d2314f, > > But some function was not changed while calling this function. > > Add this change > > > > Cc: stable@vger.kernel.org > > Fixes: 881ac7d2314f ("vhost_vdpa: fix the crash in unmap a large memory") > > Is this commit merged into Linus tree? > > Btw, Michael, I'd expect there's a respin of the patch so maybe Cindy > can squash the fix into the new version? > > Thanks Thanks, I fixed it myself already. Why do you want a respin? That will mean trouble as the fixed patch is now being tested. > > Reported-by: kernel test robot > > Signed-off-by: Cindy Lu > > --- > > drivers/vhost/vdpa.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c > > index 46ce35bea705..ec32f785dfde 100644 > > --- a/drivers/vhost/vdpa.c > > +++ b/drivers/vhost/vdpa.c > > @@ -66,8 +66,8 @@ static DEFINE_IDA(vhost_vdpa_ida); > > static dev_t vhost_vdpa_major; > > > > static void vhost_vdpa_iotlb_unmap(struct vhost_vdpa *v, > > - struct vhost_iotlb *iotlb, > > - u64 start, u64 last); > > + struct vhost_iotlb *iotlb, u64 start, > > + u64 last, u32 asid); > > > > static inline u32 iotlb_to_asid(struct vhost_iotlb *iotlb) > > { > > @@ -139,7 +139,7 @@ static int vhost_vdpa_remove_as(struct vhost_vdpa *v, u32 asid) > > return -EINVAL; > > > > hlist_del(&as->hash_link); > > - vhost_vdpa_iotlb_unmap(v, &as->iotlb, 0ULL, 0ULL - 1); > > + vhost_vdpa_iotlb_unmap(v, &as->iotlb, 0ULL, 0ULL - 1, asid); > > kfree(as); > > > > return 0; > > -- > > 2.34.3 > >