From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796121995; b=jeMtdGu+7dstxHw1IecFtYV+tdk+tlQBatFaZz6nbRjM+NTgQXAk4/EBGNZ0+3vA7bk8 9a4hss9VGiAlNAbJfeTrNP5jyBynTeDGy+ResvNR1h4BhritYN/UHDSWBpMjgE+KQiPm1 ZJHrdeDrozblLFIskMDFKLTExFQwvxjunIgOWvZdbRAikg56G+wdWocGrZX1SJmjMvpnx Auq8CxZ5FcMs6D+bjyVjP/FTYVj37DNMs7sWGOecIRLomaTmIxlMQI2US/zwFWcOxwu/T srQdYmxM6/oscYmhi7zfjXPoNbu/b4i2G7Hyah+uL/Ul07ON9JwS376pVUcIU9ALQ/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121995; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Received:Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-TM-AS-GCONF: X-Proofpoint-Reinject:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=Wz40dgVqE60QnsPJzg8Sj/o0gSjORdeuyFI/mj/NqHU=; b=lXBcDI2PYvdmVx91tEombo7gSe2UZJYWJzlnRDTtJL0sVJv8kgZO+qtXIseM6AKJpunF QJ1Jm9N6MC1Dn1pn3GRmYW9+MJ6NY+8f50ducUUSzVTGJgFmBh0CzYk/biGG2vVXbCcVT kLczW5FjUQJXhVdrTb5iXyogmOYM5srRTkwm+QwlT3g7B6++u1Hgz4lvYA6kdKBl3QMvD u0sfwA4PhqYB/JpUnTePoHJS5Uwlwhsv23JE1dXubfykUZ/ADxf5cG7043aqCAXIqKeNQ Nir0LGteb6X41nElSOBAd1zeg9Jt1dRzUAWeOiJj+Tm/nVHPrtDPoegZ7JYS80A//Mg== 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=adFrFvZU; arc=none smtp.remote-ip=148.163.158.5 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 631E6606A31A; Tue, 1 Dec 2026 10:46:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 631E6606A31A 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=adFrFvZU Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1AYxW3317140; Tue, 1 Dec 2026 10:46:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=Wz40dg VqE60QnsPJzg8Sj/o0gSjORdeuyFI/mj/NqHU=; b=adFrFvZUdoMRiGw/8zzflZ D6H+BPW+gVJPOtsGPhkEpzF8uB+9x4L8/x6SBL8NplY98uOSSlQorJINDgrSOKrj D6qBAHMZLW9/7/GGxaZjCDSTndsms+z3tngw9e8HN7GMpAWKudtHib3nMT/T+EH9 faxOUXIDmbHY46ogtZlH1rw5Wm7W/G3zjxYRTTB7YyPXEKcMLt3v9XSV4hjs/mkC 8GmmZkoyDkjH1C8+IJuk0YVXFBCruBMlLCbaQbFS2xTg8MrTtv562kLuZWWPoBXw JEKVzJhnx0+bhf2JSeQ86svqeyF91hD57fvssNQXV1v66vN+Rxt5wM0mLaH/fC5A == Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j7nchks40-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 10:46:26 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1AYMV31352399; Tue, 1 Dec 2026 10:46:25 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4j9ujng7te-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 10:46:25 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6B1AjWGU21234412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 1 Dec 2026 10:45:32 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41A285805F; Tue, 1 Dec 2026 10:46:24 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1608158045; Tue, 1 Dec 2026 10:46:18 +0000 (GMT) Received: from [9.123.8.233] (unknown [9.123.8.233]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Tue, 1 Dec 2026 10:46:17 +0000 (GMT) Message-ID: Date: Tue, 1 Dec 2026 16:16:16 +0530 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3 0/3] net/smc: fix clcsock lifetime vs asynchronous paths To: netdev-bot+sinfo@kernel.org Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, alibuda@linux.alibaba.com, dust.li@linux.alibaba.com, sidraya@linux.ibm.com, hidayath@linux.ibm.com, pasic@linux.ibm.com, horms@kernel.org, tonylu@linux.alibaba.com, guwen@linux.alibaba.com, netdev@vger.kernel.org, linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org References: <20261201075815.2159547-1-mjambigi@linux.ibm.com> <179611230702.3305.15475764568238710454@kernel.org> Content-Language: en-US From: Mahanta Jambigi In-Reply-To: <179611230702.3305.15475764568238710454@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA0MiBTYWx0ZWRfXyG6cOCUs30mV TJZpz8X5EmeEa2AiWlElJGgD4ThLA7L3OgICXRoZRiPUebDT8wptO8WmKFtEOOWFwRXGA+nPJje DbDRf3rxSl+TY7IPRhNvpPtKxqAOLpf+mSOhcvAD8OOzxZIrVUqL3Tt9bjwJJrpxuM9ZXUIsU9O qY2xm8j4qXvGWvIkksldLRLFb5+j7+xOkeoiM6qXSDWWp5TVqqHTVYZvdOEMpGRigw8yTVg8mJI FjKVaA0Lz+/7G8xCVGmOku3ORQn8XKJPtCDTnD0EO5qSrw1oJudoVGbDQ/6JnBIWCVcWxP3R8St BVOZms7p3NMc2Fh6MzWOWNU4FzuDH+WxB62Efu7ECJnkBSmh0QUNhd4N3qYkDuWfqrp5+8Ft5Xh H5ZjDmYmrbQF+vSQwVSgGKxOO3ldciT1jEN4xJWX0P+3E0P3EM8bWMUNuXVgNA36uL2sWFV5P6x QnsRIfhz5ermfLpTdoQ== X-Authority-Analysis: v=2.4 cv=Tt5zFzXh c=1 sm=1 tr=0 ts=6b0ea583 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=VwQbUJbxAAAA:8 a=N7htZhYNAq84whNH_hsA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-ORIG-GUID: Boa2FhCce6drPAVcBC1s92PXH1fLWqzC X-Proofpoint-GUID: 9OZL-8eiHwb07_EyKLRdo7_Cly9i732T X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA0MiBTYWx0ZWRfX8dtt1fSMqIj9 8chH3UZOxYykyJuXRL14oAYIkuB+gdjWrtne15u/5QkggatPa3ssPdaNw3toDSQ03JL1FgpXklC eBz0gwW0JCTBhCojOV18fZeUPG4SVNE= 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-12-01_02,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 spamscore=0 bulkscore=0 clxscore=1015 adultscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010042 On 01/12/26 1:35 pm, netdev-bot+sinfo@kernel.org wrote: > Hi! > > This is an automated message. This series looks like a fix, but its > commit messages seem to be missing some information: > > - Whether the issue was actually triggered, or is only theoretical > (e.g. found by LLM and not proven at runtime). If it was triggered > please include the symptoms, like the stack trace or kernel messages. Not triggered; there is no stack trace or kernel message to include. The series comes from a code walk of the clcsock lifetime, which the cover letter states: "This is hardening found by code walk, not a fix for a reported regression". The window is structural rather than speculative: smc_close_active_abort() and smc_close_passive_work() release the clcsock from asynchronous contexts while an fd to the SMC socket can still be open, so a task that uses that fd - getsockopt(), a socket diag dump - can operate on a released socket. Reproducing it needs the asynchronous close to land between the system call's entry and its use of smc->clcsock, which is why it was found by inspection rather than from a report. Patch 1 frees the clcsock only once no file can reference it, patch 2 removes the lock that convention made necessary, and patch 3 records the invariant.