From patchwork Tue Sep 26 21:45:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 145378 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2629817vqu; Wed, 27 Sep 2023 06:28:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZmmgOIS7tvRI/bBachkALJYHkMEWZ+Bd/aNNC2+6UIHk3qV0VFCbnoqmUmqRKThvvtO42 X-Received: by 2002:a17:903:244d:b0:1c3:dafa:b1e9 with SMTP id l13-20020a170903244d00b001c3dafab1e9mr2215372pls.10.1695821323675; Wed, 27 Sep 2023 06:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695821323; cv=none; d=google.com; s=arc-20160816; b=JVOl9byjUJuENbKZVHNWy+lBNpq974fdmfcRyOvjrieXBYHoV3HvWG/gG3XNGcvRzv iorh+y7fKMBzMdNAlGQ1ggHbNdA3GkgvbKW3WRdKIdEDk0QMTaPEwJNuUJeeJvlEFs12 TWSwCx6sdq/uI3n6+RD46d33wwRHCEBi9OD8z689GUQtfH38VD732twChO1bJJt9+swy /ZSBYpYd4bzgpZlHnClsIr1UEFFORjkGh/T/fsE/MVI2999qxnAsR7EicVjOv5gy0LwP QiHH8MwS6E/SsJjeJCyg/AcXkmSZ/SqXKI6dEegb7fBzuovCKFPRagee8bAzNYisBT15 8Amg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=3J9j9m+j6P1P4M2qp9sCi0IOwoWpws4ikB1Cmd0FSNs=; fh=wfvpqkYgOBmZsoOD6Dt+9MHJ5ud5wa3G8/uzeQSQvkg=; b=VkCl7wvJE5aCdL4Y/WYpU1KRESY+oveK39aSB0rsX0cans181Hp4EQ1Un927YD6IYe QVwwRpnJmliCKhwvOW+na7cpc4EXQ/Z9ZFlrqylA6O09DQzmEHhlkg00+/3tmZ8IolXf GfWy8UIVdOBtC8r4QhFw5SWrX9Psyaj3ai98GJUvD/7HEHswu2xIgW/eWbMR1nz96/FG Bdqz/UtxoVI+SuPy4R/7WiOXqYbhdx3LMKfc3gJbMuZpuz/SFOwJ8Eh+8GA4xBR6mj68 EoFxXfDE2/S3Ewp8QvgR7iARfFm3qq6e52+rnMTGi8/c7cs6DIYWD8YBs/7jKv24DAkC G8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iBl30xI1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n13-20020a170903110d00b001c5da8b630fsi16434711plh.421.2023.09.27.06.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 06:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iBl30xI1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B26B380B132E; Tue, 26 Sep 2023 16:16:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjIZXQi (ORCPT + 28 others); Tue, 26 Sep 2023 19:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbjIZXOh (ORCPT ); Tue, 26 Sep 2023 19:14:37 -0400 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 732FBAD10 for ; Tue, 26 Sep 2023 15:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695766572; 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; bh=3J9j9m+j6P1P4M2qp9sCi0IOwoWpws4ikB1Cmd0FSNs=; b=iBl30xI1E8s6c2I6Wv/KwWy6TgLgoyzCpoxDgbkdc8QUW7Np/5IG4ItplvloL8KlLTTbI3 ys5UL66OjXeeNDYEVMTT9h825AmupEzJu8dDD0gcBe9o0JdopczXk4sFWgOoAu+o4UNY02 yyQAvrZGTi7zHb474qqM6hBRhxfFRVo= Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-68-wYkS_ZHBPh25eLCdIBvwfQ-1; Tue, 26 Sep 2023 17:45:43 -0400 X-MC-Unique: wYkS_ZHBPh25eLCdIBvwfQ-1 Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-3512ab05a5dso94151515ab.0 for ; Tue, 26 Sep 2023 14:45:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695764743; x=1696369543; h=content-transfer-encoding:mime-version:organization:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3J9j9m+j6P1P4M2qp9sCi0IOwoWpws4ikB1Cmd0FSNs=; b=KT6/LwVvMJXeo4IUQqquAbwN9JCeshkRRJqUUjBzoao+gLcpN+iu82jTpyHXFDkZSf Na50o6mS7NmgA0dfL+2n/04PCswCB+vhl8Mw9a8XeQy/AX5szHv+X/ahWMcA0CVLu+j/ Nr+58zVbCJB9z+kDdP+GGm/cnZp52/cDREFXvIvTPSL/BjqVnrB7nEg0RKGCFGzeu6Oo HVR2afRbPQMIsU4IBBioQieACZ8N+04DHKmLhPuQ0+u06bA22ullc6isMPZ8dwE6CokO 7xAlfMReUJfMKBebcPpG7KJiBqSPSkWZggrgMRxwO9ev4ijJax8Ezx5gkPKrpQzDMKPg zkGQ== X-Gm-Message-State: AOJu0Yxth0BRs67ESE8l/M2dSFYxk9tPJx44oDwS50nVlKCdN4lg5U3T CUtN9+EFGzhsNfyYP7YpJ28Vt2rVgXrd0M/MsVzsJaANporSUd6eZLk5Ld8R80Hy+EsoLHrjwJU govxI7QLw0ky7X2QoFk7HVnka X-Received: by 2002:a05:6e02:df3:b0:351:4b68:ec3a with SMTP id m19-20020a056e020df300b003514b68ec3amr150389ilj.9.1695764742890; Tue, 26 Sep 2023 14:45:42 -0700 (PDT) X-Received: by 2002:a05:6e02:df3:b0:351:4b68:ec3a with SMTP id m19-20020a056e020df300b003514b68ec3amr150378ilj.9.1695764742641; Tue, 26 Sep 2023 14:45:42 -0700 (PDT) Received: from redhat.com ([38.15.60.12]) by smtp.gmail.com with ESMTPSA id 1-20020a92c641000000b00351500b12c3sm852221ill.21.2023.09.26.14.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 14:45:41 -0700 (PDT) Date: Tue, 26 Sep 2023 15:45:38 -0600 From: Alex Williamson To: Linus Torvalds Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" Subject: [GIT PULL] VFIO fix for v6.6-rc4 Message-ID: <20230926154538.20a5b2c4.alex.williamson@redhat.com> Organization: Red Hat MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 16:16:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778197540327936602 X-GMAIL-MSGID: 1778197540327936602 Hi Linus, The following changes since commit ce9ecca0238b140b88f43859b211c9fdfd8e5b70: Linux 6.6-rc2 (2023-09-17 14:40:24 -0700) are available in the Git repository at: https://github.com/awilliam/linux-vfio.git tags/vfio-v6.6-rc4 for you to fetch changes up to c777b11d34e0f47dbbc4b018ef65ad030f2b283a: vfio/mdev: Fix a null-ptr-deref bug for mdev_unregister_parent() (2023-09-22 12:48:04 -0600) ---------------------------------------------------------------- VFIO fixes for v6.6-rc4 - The new PDS vfio-pci variant driver only supports SR-IOV VF devices and incorrectly made a direct reference to the physfn field of the pci_dev. Fix this both by making the Kconfig depend on IOV support as well as using the correct wrapper for this access. (Shixiong Ou) - Resolve an error path issue where on unwind of the mdev registration the created kset is not unregistered and the wrong error code is returned. (Jinjie Ruan) ---------------------------------------------------------------- Jinjie Ruan (1): vfio/mdev: Fix a null-ptr-deref bug for mdev_unregister_parent() Shixiong Ou (2): vfio/pds: Add missing PCI_IOV depends vfio/pds: Use proper PF device access helper drivers/vfio/mdev/mdev_sysfs.c | 3 ++- drivers/vfio/pci/pds/Kconfig | 2 +- drivers/vfio/pci/pds/vfio_dev.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-)