From patchwork Thu Oct 27 14:58:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 1695448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=RKPQLUkH; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MypkB3qsmz20S2 for ; Fri, 28 Oct 2022 01:59:45 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oo4M5-0004fN-1G; Thu, 27 Oct 2022 14:59:37 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oo4M0-0004er-C4 for kernel-team@lists.ubuntu.com; Thu, 27 Oct 2022 14:59:32 +0000 Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 2E311423FF for ; Thu, 27 Oct 2022 14:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1666882772; bh=Iim15zkXn+MYs7HzZTA9ccoNEP9I4Q2BfjvVTzv7v74=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RKPQLUkHYJiDNu7T1Ul2TT3kJmDoA6ev590pvQnhh5aKcNJtfuX+Wg2kwHfdgsiiO do2DT67HS016ckLLbRJxdeGBPo/iaehREM7xbjj64YYzbdgP1uefYLE/Ua7yagQR6O qksBATGZKDu10exF/6w0nGkC0zXq4GkAqjDZCR+9ekfgbGQT4U5PgzXJGiGFxKdTF+ qcGRO7MTmsYE98Si29RlesmhydKRqzMzWflLfulRhERmom9Or0KRWuQczrzm8ZIV1n fcJm4xsxJ405x5To0AdSsldQwygLZJy/UlLc9nIxpUNmoeTVhjTtQ2wIczGjpYWPiC QnYdYM1MUeZPA== Received: by mail-pf1-f197.google.com with SMTP id v1-20020aa78081000000b005636d8a1947so1010429pff.0 for ; Thu, 27 Oct 2022 07:59:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Iim15zkXn+MYs7HzZTA9ccoNEP9I4Q2BfjvVTzv7v74=; b=3gbFnXZy7ZYShl/bkGpe5U6wxn4/QNZS0buDxtMgv1fJIcBEQVsMO9OWjWIRKZleEz Pabyxzd5Y7INe2BI3lgEPWfb0VAgMIS76oBGIkwej/xd9kghgIPK51FAAkMfrDvSVZmQ Lgywu+O2724nvCtCtIwUPcwNuNvIABVEPpX8vuBhBbTUbg3RSU5g3GDHfzNDh7p8me4I IF/1x6IU7+0Gn3YwTc9+3BwowrG9yW1u6INtMn6ZH0EHdixOn3HeL7rGc0I470kY5RHJ 96xOpeeYrIX3DaMmZ0nb74epmLfSqCnq0cJ6V9BYMgwalivBgW4lDCDV4a1blSjGWG/o ZI4Q== X-Gm-Message-State: ACrzQf3Alb1qeA4BMwuyWqzsvT7ieLnh36JzyUddSuv9H8LPiGRKj1cY T2jPgzqFpTrOJpuKigFBgec+vjLWZEH8Yyk/cgJchgTz1vLOBILhosW2Iu5N70g2H7krsDpmAXM 9+8UKzSnyfoxNqWc/WBiTOwz6ufTaYO2KzRn5YQ5Nng== X-Received: by 2002:a17:90a:b00d:b0:212:f91d:88c7 with SMTP id x13-20020a17090ab00d00b00212f91d88c7mr10796830pjq.112.1666882770642; Thu, 27 Oct 2022 07:59:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7VC5c0XVQty03ahWqOhfCArqRLTLpfzIaBhtmqo1LB5TV3QggNFw6c9yMC1axD/PvptX4vRg== X-Received: by 2002:a17:90a:b00d:b0:212:f91d:88c7 with SMTP id x13-20020a17090ab00d00b00212f91d88c7mr10796817pjq.112.1666882770421; Thu, 27 Oct 2022 07:59:30 -0700 (PDT) Received: from localhost.localdomain ([69.163.84.166]) by smtp.gmail.com with ESMTPSA id b3-20020a170902650300b00186a6b63525sm1298841plk.120.2022.10.27.07.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 07:59:30 -0700 (PDT) From: Tim Gardner To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/3][f/j/k linux-azure] Azure: hv_netvsc: Fix race between VF offering and VF association message from host Date: Thu, 27 Oct 2022 08:58:47 -0600 Message-Id: <20221027145850.41806-1-tim.gardner@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1994974 SRU Justification [Impact] During vm boot, there might be possibility that vf registration call comes before the vf association from host to vm. And this might break netvsc vf path, this is in order to prevent the same block vf registration until vf bind message comes from host. [Test Plan] Microsoft tested [Where things could go wrong] The 5.4 backport patch could hang waiting for a VF addition to complete. [Other Info] SF: #00347129 Acked-by: Bartlomiej Zolnierkiewicz