Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp573948iob; Fri, 13 May 2022 07:59:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysEMjAVIaeEtfu+uyy89ni/Jh1+sa5bHBmrQEHM32vOi9LdHxt6BXWVx+0hD6sWwt+raui X-Received: by 2002:a17:907:a40f:b0:6f4:d2af:b720 with SMTP id sg15-20020a170907a40f00b006f4d2afb720mr4484337ejc.305.1652453951141; Fri, 13 May 2022 07:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652453951; cv=none; d=google.com; s=arc-20160816; b=aMjh/AiUWix7SyFrNB17C+z5L6UssUQ844g8OWg2CLv7ESNYAGthh+O6KH4MzxzdBE w4Vz6k0rVDnKsn7QoFhL56h6jDXCh5eZSrzYWnv10+LGQRhlxefH7vYQ8wlIHcpO3cAl RmClFfkD6uGe7J3vXLkIKRhGH5AnvZ2OOUW4lEMfqxmVIKY6DVsOJPM1zvTER/ZKHfx3 ak+UpV1p6j3Ec65s1r8MgqzDB88ADGxZjE38NsAZuXssXPTxXAq6FUTBYnWoyO9PApO3 T7oBt5LvnMUrtQKUEDUzLM9J6WrnOshF/MhT26rqzrVJPStIOoGIo6+ayyXw5hE/0mnJ EgWA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rL9q1a1EeCnS72sAyvjARKItZ8kxxTTeGVdvVhBpEkQ=; b=UgzOHyM29xz0q57HiPZ8rHUbnIQ+BbisNBAHqAvBi75R+L0v5VfbxUhVK51kbL64YN Oafq5JMeONTO5mzzAPNEUG4Sz90v1zFjwpgCvi66GmuSJ7z5ceCw/ecGGITREEdPgFiQ WWmMc5fIWBRFmCjcY7BcBAA8l2XUd4SaD8r/+hhUK8YQl/SC++WWycGr18xlnv2Les+2 Im99TW16EL12mz8xzd/5iumJKZzaCdDbIUXxOvlLfyOpuNY44oKlSySrT8txgtduZeCA iJPJy6sLZjknQ16s82CfbJN9rBHDNiMGqZRPrhGhgbXifoqqeH3ieOz3H52tun0AqDHU dZ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I84mYgaq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp39-20020a1709071b2700b006e888f4512esi2207171ejc.982.2022.05.13.07.58.45; Fri, 13 May 2022 07:59:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I84mYgaq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348780AbiEKWc1 (ORCPT + 99 others); Wed, 11 May 2022 18:32:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235676AbiEKWcZ (ORCPT ); Wed, 11 May 2022 18:32:25 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CD3D62A18; Wed, 11 May 2022 15:32:24 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id k27so4180020edk.4; Wed, 11 May 2022 15:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rL9q1a1EeCnS72sAyvjARKItZ8kxxTTeGVdvVhBpEkQ=; b=I84mYgaqMn3/HHXjspIHPNSz0fiSYhIrS1/hW5nAV5jByjcVzW2lpGByw9DBQ5GZKS bnOiwe4MoO33cHXCl3IYfh3ZgRgNpN56PR+P+Qx8DlNdk/b1EESeOWh9FOLUiKCbZ7aD xk3X6N4IXfOPAx9VxECn1jP4sVOj/ufTMycGkboHetx+fCzW41bBYLOhGaeGtFtnLwO2 H1evJSAa1QwgKEFuOgkox/tw32lmZSt4cbWpY6vna74Rt3VDZaUsKSm0AJ2vyhAZY7cB w7mb0Otpzs7rcFMEU/VkS2ytYkqZj0vTfqzTs9MNOxjlTyO97hH3i3LydDm66iUibq/k fD4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rL9q1a1EeCnS72sAyvjARKItZ8kxxTTeGVdvVhBpEkQ=; b=wyFUz+S+dKsVdsFlZp2p4b/IVVs1GgkRYrXfF+Je7nIDBAkXjwosHFhIZG83H+TP/O FaEZIE2ptKt7aCHf/L9z9UH8CROW5WYjFTVOSsgP9PyR9cpHJ+eR7eBhP+T76FqRMMTz RCoc4lk+0JIaDSt5S7RVFQ4y4Z+wBvhNmQ/4SqasVk5GURNyaHVVteRC/Xj3nHPWxyih GBCbHqk6D7p3FQae1fPYKPFA4H6Pu2n56EXaBIajznZOncTdwcYSxlFWJmDtFmHOK/k2 Q6yOwjzNNogDyLhx3wAP65CJtHSi5uFM/yWi7FgLWdwFSGNbRawr3/qoP+AnTYtTsYGk Aqtw== X-Gm-Message-State: AOAM531ZLclms8c4Zjs3JXDTUlvr0SHL8IVCrEA5+uCO5JQYEsFjcxMM 19rahYhiOOPxmS2CpBkuewAkYmuwmGU= X-Received: by 2002:aa7:c0c4:0:b0:425:c776:6f17 with SMTP id j4-20020aa7c0c4000000b00425c7766f17mr31121586edp.131.1652308342427; Wed, 11 May 2022 15:32:22 -0700 (PDT) Received: from anparri.mshome.net (host-79-30-69-23.retail.telecomitalia.it. [79.30.69.23]) by smtp.gmail.com with ESMTPSA id f1-20020a1709064dc100b006fa84a0af2asm1468456ejw.16.2022.05.11.15.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 15:32:21 -0700 (PDT) From: "Andrea Parri (Microsoft)" To: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Michael Kelley , Lorenzo Pieralisi , Rob Herring , Krzysztof Wilczynski , Bjorn Helgaas Cc: linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, "Andrea Parri (Microsoft)" Subject: [PATCH v2 0/2] PCI: hv: Hardening changes Date: Thu, 12 May 2022 00:32:05 +0200 Message-Id: <20220511223207.3386-1-parri.andrea@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1[1]: - Add validation in q_resource_requirements() Patch #2 depends on changes in hyperv-next. (Acknowledging that hyperv is entering EOM, for review.) Thanks, Andrea [1] https://lkml.kernel.org/r/20220504125039.2598-1-parri.andrea@gmail.com Andrea Parri (Microsoft) (2): PCI: hv: Add validation for untrusted Hyper-V values PCI: hv: Fix synchronization between channel callback and hv_pci_bus_exit() drivers/pci/controller/pci-hyperv.c | 59 +++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 16 deletions(-) -- 2.25.1