From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796070448; b=yFAERGDZVwr8kK2AxIMLzdCbskR4mWZxaH91/FG+fk7baXIkdfXfE73l5RuNdBo69/K2 BpCB2D6LhBCKvvuxgifO7NhEyJj5Uyi4RCtIKGw7uNstcKoOdDY0cE+7gQ+hDrGJDTB5l 2EhZbDGX2gwArPoN+vIk6CoBAdZOCbH7MnVa5HD+PBAng9BVXEHyJUzMnTboWKCuvDPZ9 tJS46+RjCDuageJ0hdoBTOD4NiO7G9iTDTKd2KXq6sVcYr6O8SysNrxVZJmKsFoEYx7NG /79C4TYDspnl242na/SMp7zUNCxzOL74VL5YFQ3fuFCj3BTm40pYy9eK3DmlCXv6mdA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796070448; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Received:Received:Received:From:To:Cc:Subject:In-Reply-To: References:Date:Message-ID:User-Agent:MIME-Version:Content-Type: X-TM-AS-GCONF:X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Authority-Analysis:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=s38it3L1YTMnXDbJ2GyNbdyk5dYAwGeF0jvWRbFyGuo=; b=HYs0vfC7EsNuY4fc5OfAABgIu4vxLAiROrFo+cQqvBVXKLLXtfJuB2R4hnk45gzUD4b8 Z9dV7tZevywo80inCSyhElOnjNM/hKh5sYRcoQhPTNWhc/QI+ZVnzO1g8uOtwKqrH33hv XVwRQs+9g0E6WE/AC+qsAMvFmhd19eJ9HvCBiNgoffC+vshUMAR7l0zvrizUx0wNm+WSB PJ2SC4W3E/om4UHegXtYFXE8dXDyR/vpFF0QykMkeJ85gtew45MfwcWSYylVlScEQVNlF yF6E+R33KQ+9LHenqttTgqukZnXTSUw8tByhr7qGrkF76q8CZDCZtPY7t+/WN1/bYYQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=js2YFiEz; arc=none smtp.remote-ip=148.163.156.1 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1452606A31A; Mon, 30 Nov 2026 20:27:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F1452606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=js2YFiEz Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AUI4d9I3972097; Mon, 30 Nov 2026 20:27:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pp1; bh=s38it3L1YTMnXDbJ2GyNbdyk5dYAwG eF0jvWRbFyGuo=; b=js2YFiEzzSeJS0ar8HUXtH/o/Cv+mHv+Ph5tS8tW5B7DR4 vC4Cyei4lU41a7sDZVoH8aov8iK+soAhuxeNC38nzcRKhi+0Z9mjcKaAa2qtp9Z0 KLGxbNUsr2Wz05IBt+Q8ho/VmYF60O01cS1WeLgaBZLwaoX35NCnnSTOwkW+MMt7 6UvJWcFoXPQMV4qO5vq4ebQryZq5FMJ4FP/iaDQX81Eu7Fuynmv+ADF0PMIQGeaI bVM6ioo2m5v9lA1RLQDPdCBWdftfro3GHDKwMcCkS2hYaLbXamlLa40c7LdAyMoC bEA/VmRVpIM4ZjHRar9tQ0x02wnTVNprDsiWsmWg== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j7pf3st55-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 30 Nov 2026 20:27:26 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AUHofd51754705; Mon, 30 Nov 2026 20:27:26 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4j8a9jxedy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Nov 2026 20:27:26 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6AUKRPxr15598254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Nov 2026 20:27:25 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 06E2858054; Mon, 30 Nov 2026 20:27:25 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C848658050; Mon, 30 Nov 2026 20:27:24 +0000 (GMT) Received: from e (unknown [9.16.46.225]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTPS; Mon, 30 Nov 2026 20:27:24 +0000 (GMT) From: Dave Marquardt To: sashiko-reviews@lists.linux.dev Cc: linux-scsi@vger.kernel.org Subject: Re: [PATCH v19 04/13] scsi: ibmvfc: fix stale rc and IRQ mapping leak in ibmvfc_register_channel() In-Reply-To: References: <20261124-ibmvfc-fpin-support-v19-0-2aaffe5fe7d2@linux.ibm.com> <20261124-ibmvfc-fpin-support-v19-4-2aaffe5fe7d2@linux.ibm.com> Date: Mon, 30 Nov 2026 14:27:24 -0600 Message-ID: <87pkvmawur.fsf@linux.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDA4MCBTYWx0ZWRfX02tEKvgBq3mF UcLLQR0Bi7hDNMejgV8GB/cM4jN9YeoyHenhnyEEb4vnvYtckImMS/GE1CaHr9X9ldWWGGz85Mp 2rDOQxBVWXaU4S93PTIRb0IN0YRJ23M= X-Proofpoint-ORIG-GUID: d3pXyfNp2-Ydh7eIT-yUG5DVL7PbnR8I X-Proofpoint-GUID: d3pXyfNp2-Ydh7eIT-yUG5DVL7PbnR8I X-Authority-Analysis: v=2.4 cv=R6eWitRX c=1 sm=1 tr=0 ts=6b0ddc2f cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=iQ6ETzBq9ecOQQE5vZCe:22 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8 a=khJF4oZfQWcfrUCpZYEA:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDA4MCBTYWx0ZWRfXy0bVdRnChyBv 13Mtp1JX/xgRYd/z63n8Min+wV8oTMhu2wesym/LxOOSZbQ48Ld+1K9lzL2PrDDMmRSGebdgnL6 TfLDQkBDcUMMPUc6L6lbsHA3ORJ6XB1zjKjjSvOEtWSUu8gv22xxWG18XUDz5ycX6pwh1EgetOg x7QWJ7rdFa+Kw0ieK3gN5To4tz+FDyyXDnP/PItaZexgK6kqq/RuFnbSaQECpsA0P0qLi6fgJzK dYfA9/EIpFy22GY8Zs8sq87oUtzNr1E96xbDuuWUgOcAX/0K8ioLM7i5MKOCE71bnT8q5RXXSIP jS4GMzLReVnJkaKzZ1LLNhmgvY0vRSYT9WTYGUKScVZpKLj9Q23jHoH/dtLDDkplq178YhN+QGB 9n60i2r08QewFkXBXGLcbcRDcW8qye7jpJsUgS/9+9SqKuO9xvb1nNZ1tMtAFCIo8LOs9qyukKS wexs4bu/9ImyP5tzF8w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_05,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 spamscore=0 bulkscore=0 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611300080 sashiko-bot@kernel.org writes: > Thank you for your contribution! Sashiko AI review found 1 potential > issue to consider: > - [Low] scsi: ibmvfc: missing Fixes: trailer for > ibmvfc_register_channel() bug fix > -- > > commit 181fd7f6a2341ee658bfbec7bffd68ba8ad3084c > Author: Dave Marquardt > >> scsi: ibmvfc: fix stale rc and IRQ mapping leak in ibmvfc_register_channel() >> >> The default: case of the protocol switch in ibmvfc_register_channel() >> jumps to irq_failed without setting rc, leaving a stale value from >> h_reg_sub_crq() (0 or H_CLOSED) that the caller sees as success even >> though the sub-CRQ was just freed. The mapping created by >> irq_create_mapping() is also never disposed, leaving scrq->irq non-zero. >> >> Set rc = -EINVAL in the default: case. Introduce an irq_mapping_failed: >> label that calls irq_dispose_mapping() and clears scrq->irq before >> falling through to irq_failed, and jump to it from both the default: >> case and the request_irq() failure path, eliminating the duplicate >> inline dispose/clear in the latter. >> >> Signed-off-by: Dave Marquardt > > [Severity: Low] > Since this fixes the default branch of the protocol switch introduced in > eb85f1d76aac ("scsi: ibmvfc: Add protocol field to ibmvfc_channels"), > should this include: > > Fixes: eb85f1d76aac ("scsi: ibmvfc: Add protocol field to ibmvfc_channels") Yes, I'll add this for v20. -Dave