Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp108032pxb; Tue, 2 Feb 2021 00:03:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPc2LfXwVW+cpSqA6nxAo76mWdlNCwHeOXjUmAU7CyPUiErSHXTFg7LEZ/7rx/0RCII9A5 X-Received: by 2002:aa7:de10:: with SMTP id h16mr22706732edv.385.1612252993387; Tue, 02 Feb 2021 00:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612252993; cv=none; d=google.com; s=arc-20160816; b=cepCjAgfnCFobTOR1PaxVr99Or35+BhAdDOtlnKTHmh84cgeC1d8qUvtRAvC/p4Ge3 eeYTCFQNL8+T0JkS5hy+uMXrhTd6e5T9tywyTKdW/0xblIenS8ErF5VZ2m/7uVuVJ5zx Of0m1M+mbQ7oKfl9/xbKrvpsknDg0unnEYfeViJ50h+5p2DjysRHFZAeFrEmtnuY7b4V 9EiMfxuFv+0abBIW7N1rnjR4xSGoQHJMqbSyySsqpe1OECww+r1vqJ/Hwn9OuxsgoM+4 SWZV5J1xDLHNJzfBcrKdz0scPWRv4Hl8yO4Zbl/qRHFMKQYfz+sszv1xuKdo8rv7g6sM NYzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Qr/EBv5x90hPAyplhITInR4O7nt+NV3Z854L2GClqxI=; b=pux+e/W3kWnJynTmAoH6HX9ozaUr5bukVGLBvK5GShyYOJfza5ICGhs71AJ85AyjAj WN09dp2rzRzpLJbEYnzHj5zczit1rATOg2luao5qtGkixoliTQeAt9KW7uROAw7C99dF S3XqLjNOuqqGSJs4lU9O22Xk5TXPKds3qcCSnZxyaGRHDbakguM7N1yPZqVhv0XcSwoI gsEIhfrBw74xrTwjq62eEJbh7wZYkoVf7Mqd+FnLKMRItJQsO4egicbx4pdyT061mbu1 h+xnNs2uxjNONoydvPiGDgxBFAxwzphOyJaWsMSifNalI87y83cVsxxV57dtThaJKAqt hZhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AqscvCrY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si13126726edu.203.2021.02.02.00.02.43; Tue, 02 Feb 2021 00:03:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AqscvCrY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbhBBIAs (ORCPT + 99 others); Tue, 2 Feb 2021 03:00:48 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:46881 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhBBIAo (ORCPT ); Tue, 2 Feb 2021 03:00:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612252758; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qr/EBv5x90hPAyplhITInR4O7nt+NV3Z854L2GClqxI=; b=AqscvCrYBVs+PlN4DXTxvYZ36Y8FRS3GKptilyoVFH4i8Sww+eXwq0zp5UxiMHMa3qSEvZ AC9d96y7mV72kmUXOTpxBf1BIabfUNM5Zrm0pXGwROs7JqMN9SQkcm8fas0D6R60bxEpIE 3kYQkcuGYy2P4x4pY9Euc+/cqa9ZpkY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-9-OZpaACF5OKmSbUNVcVUenA-1; Tue, 02 Feb 2021 02:59:13 -0500 X-MC-Unique: OZpaACF5OKmSbUNVcVUenA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 48DB01800D50; Tue, 2 Feb 2021 07:59:11 +0000 (UTC) Received: from gondolin (ovpn-113-169.ams2.redhat.com [10.36.113.169]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A6C21975E; Tue, 2 Feb 2021 07:59:02 +0000 (UTC) Date: Tue, 2 Feb 2021 08:58:59 +0100 From: Cornelia Huck To: Alex Williamson Cc: Matthew Rosato , Max Gurtovoy , jgg@nvidia.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, liranl@nvidia.com, oren@nvidia.com, tzahio@nvidia.com, leonro@nvidia.com, yarong@nvidia.com, aviadye@nvidia.com, shahafs@nvidia.com, artemp@nvidia.com, kwankhede@nvidia.com, ACurrid@nvidia.com, gmataev@nvidia.com, cjia@nvidia.com, yishaih@nvidia.com, aik@ozlabs.ru Subject: Re: [PATCH 6/9] vfio-pci/zdev: fix possible segmentation fault issue Message-ID: <20210202085859.12c09b6d.cohuck@redhat.com> In-Reply-To: <20210201134757.375c91bf@omen.home.shazbot.org> References: <20210201162828.5938-1-mgurtovoy@nvidia.com> <20210201162828.5938-7-mgurtovoy@nvidia.com> <20210201175214.0dc3ba14.cohuck@redhat.com> <139adb14-f75a-25ef-06da-e87729c2ccf2@linux.ibm.com> <20210201134757.375c91bf@omen.home.shazbot.org> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Feb 2021 13:47:57 -0700 Alex Williamson wrote: > On Mon, 1 Feb 2021 12:08:45 -0500 > Matthew Rosato wrote: > > > On 2/1/21 11:52 AM, Cornelia Huck wrote: > > > On Mon, 1 Feb 2021 16:28:25 +0000 > > > Max Gurtovoy wrote: > > > > > >> In case allocation fails, we must behave correctly and exit with error. > > >> > > >> Signed-off-by: Max Gurtovoy > > > > > > Fixes: e6b817d4b821 ("vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO") > > > > > > Reviewed-by: Cornelia Huck > > > > > > I think this should go in independently of this series. > > > > > Agreed, makes sense to me -- thanks for finding. > > > > Reviewed-by: Matthew Rosato > > I can grab this one, and 5/9. Connie do you want to toss an R-b at > 5/9? Thanks, > > Alex Yes, makes sense to grab these two. R-b added.