From patchwork Wed Nov 6 13:39:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Massimiliano Pellizzer X-Patchwork-Id: 2007556 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=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (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 4Xk5tq2mWWz1xyM for ; Thu, 7 Nov 2024 00:40:33 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1t8gGg-0000BB-DZ; Wed, 06 Nov 2024 13:40:18 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1t8gGe-0000B2-GY for kernel-team@lists.ubuntu.com; Wed, 06 Nov 2024 13:40:16 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (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 49E5F3F135 for ; Wed, 6 Nov 2024 13:40:16 +0000 (UTC) Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a9ad6d781acso154772166b.2 for ; Wed, 06 Nov 2024 05:40:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730900415; x=1731505215; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gf9YqStFlZONupyDNnqOorpopXeo7CODCgfD/rAG+HA=; b=PSFQlqwVPEXXrutmEV8kUlO+lN8DZtq9hqWoPCPTkw/mZpu9pljTudWEsS6kvEXoau KDziwPzuNo3Jr1gxWeFx3cBp8481fqH2Cf/7D6oFBtRA1ErD3PQrSvu1j454ZC6yG/fZ RPXZXurL1DQwq8x+kEkY/bnS1T69M1jo5uRvENc9/Qgr87jqYCiVttvw3OhWbVxqV0pK lnBz4a6nmpdd68rRUsjKnSE24gaq/mRiNlccRDYnZSe1E+cY9mNj+OeB7228wWgvjgZD BSimrYc+Nsd0n9l1Q3t47t8fq+VqutE20SWfJ39eddXZvhlNm/puc70xmFgKmB6dDVGD QHlw== X-Gm-Message-State: AOJu0YzbFbGM0/kQTBQw3uLbkYZDW9+/bkit7ikVqbw44Xof6/3ByYm2 b7Ps99oyOnwwypappCEM9WPZ1lxbKtiHwjSc1oN1aPsb6DeUHnG92pKpbV0nTBh9KSi0EAV6ZdR EpaZHNWikppV7DTUES/PVNjTFag+HBmd0Y8lzb6An+tX7hLvaxXnXjVIo6G6P6smcTzk0puPUf9 3R5pb79UKWxQ== X-Received: by 2002:a17:907:9407:b0:a9a:4d1:c628 with SMTP id a640c23a62f3a-a9de6166babmr4147348666b.45.1730900415460; Wed, 06 Nov 2024 05:40:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaY75NXs/jKDLPrNUSJiMbSa3QtVPkxUv8yF3RplBp2uh1qsunvmXEd+A4eQViE56VWS/s/A== X-Received: by 2002:a17:907:9407:b0:a9a:4d1:c628 with SMTP id a640c23a62f3a-a9de6166babmr4147345966b.45.1730900415043; Wed, 06 Nov 2024 05:40:15 -0800 (PST) Received: from localhost.localdomain (net-93-66-99-170.cust.vodafonedsl.it. [93.66.99.170]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb17cec92sm280789166b.114.2024.11.06.05.40.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 05:40:14 -0800 (PST) From: Massimiliano Pellizzer To: kernel-team@lists.ubuntu.com Subject: [SRU][F][PATCH 0/1] CVE-2024-36952 Date: Wed, 6 Nov 2024 14:39:53 +0100 Message-ID: <20241106133955.35489-1-massimiliano.pellizzer@canonical.com> X-Mailer: git-send-email 2.43.0 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" [Impact] scsi: lpfc: Move NPIV's transport unregistration to after resource clean up There are cases after NPIV deletion where the fabric switch still believes the NPIV is logged into the fabric. This occurs when a vport is unregistered before the Remove All DA_ID CT and LOGO ELS are sent to the fabric. Currently fc_remove_host(), which calls dev_loss_tmo for all D_IDs including the fabric D_ID, removes the last ndlp reference and frees the ndlp rport object. This sometimes causes the race condition where the final DA_ID and LOGO are skipped from being sent to the fabric switch. Fix by moving the fc_remove_host() and scsi_remove_host() calls after DA_ID and LOGO are sent. [Fix] Noble: Fixed through stable updates (eab2dce13aebd) Jammy: Fixed Focal: Backported from linux-5.15.y Bionic: Sent to ESM ML Xenial: Sent to ESM ML [Test Case] Compile tested only. [Where problems could occur] The fix affectrs the driver/scsi/lpfc subsystem. A bug in the patch could introduce issues during virtual port removal, leading to leftover references in the subsystem. Users might see kernel warnings, experience crashes, olr notice delays and disconnections in storage access, particularly under heavy SAN workloads. Justin Tee (1): scsi: lpfc: Move NPIV's transport unregistration to after resource clean up drivers/scsi/lpfc/lpfc_vport.c | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) Acked-by: Jian Hui Lee