Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3415403rdb; Thu, 16 Nov 2023 08:55:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHq01gBYxazppm+i/qJGlQewNL7gEUyfSsGFhc5bGvwbeFkDVJSeSf/1vQ9C4TLBmQVlIm4 X-Received: by 2002:a17:90a:738f:b0:280:29df:747e with SMTP id j15-20020a17090a738f00b0028029df747emr3365933pjg.1.1700153733452; Thu, 16 Nov 2023 08:55:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700153733; cv=pass; d=google.com; s=arc-20160816; b=oqX/RkW8N1NILxnvTAFAL51Lq2OTvKV4CP/oyoB9W3dAk2aNG/+T4p7UsWccN+Pdpt bJ4CgvJGbm67NmhTLWPeSeGLyTo/i54LgmRVEJq/e3WV4si7FuvqJIptjYExowhxf5RE OQm3e+A9swhqUd1bCDE8Q1eUU/zaYngp/fZlBw4iZbqmws3/rqdMwducxtydQajGl8BL aZHZesD9CTJPsHdjmgll6txdI5WKp82AXPYJrPys3TzhudUT8D+GuMyI9HyYYNvoxj8p pjOo6RzSpAVXczMUFbEz4jlpy3XpTyMpBw1E5G7Ogv2Njaa9R9H4jFsf7XWZ9i3U1Ny/ fbgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=cp+O2dekGq764onf+M56iM63w0u35NWi0UkfafLWXLg=; fh=x1+Olls3EYNWgqETpD9ZVeno/9pTEeqknrf+dYzxXBY=; b=beW9+aOjrXMhRRz60DmqK9X7wkHRrQsZkVzVoXgeRxnuWkJyNPoxJUwTOi8GhOfwbf zl013o1KOmqTowhFbIMYm85/QFNJFlszuxtNTk1/yC2HaOJzKX+jzwPj9AVlZ26JR3bo +sGylnk3Ako0vrdbxNPgzNR+J8ed0osnlNiYNNvTm6qD9sXkSefeRtIQQ6KfUOB+VB1C r86eEepYHuIkHljWSbu4Z0DsTqaRlcHRW814XxPp54iFa8bp6VvZYnnRN0xGs4qckA3n rVRTZzVRqvRh2jmyPdqSuqRD0WSAY6n4ACBh/Ntc8fwqO6Rlr2crLle1G1m4Bh2MpD1P Xl4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=XVwxqaJW; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="sF0DN/49"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 14-20020a630b0e000000b005bd3ca6c394si12305407pgl.43.2023.11.16.08.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 08:55:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=XVwxqaJW; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="sF0DN/49"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 81EC5816ECFF; Thu, 16 Nov 2023 08:55:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345211AbjKPQzD (ORCPT + 99 others); Thu, 16 Nov 2023 11:55:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbjKPQzB (ORCPT ); Thu, 16 Nov 2023 11:55:01 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966B219D; Thu, 16 Nov 2023 08:54:58 -0800 (PST) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AGGYTe0029924; Thu, 16 Nov 2023 16:54:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=cp+O2dekGq764onf+M56iM63w0u35NWi0UkfafLWXLg=; b=XVwxqaJWvIJoRxrhzM2Okm/McIeNkso1nyPGG8tMSUdZ8uQ2+AimbAurOjvKTzR0lKDX fybe8W6MzGg/IOr8y+6J30JPhhZwSFaom8wZu8cytoPYe4TQwcEc/QpH0cKFOWrBy2b1 mfnJS2dccP19kfrwFtv4SEyQFKLRN8L0I+mdjQxPu7CQ1Dnj2/uBhzCUjx25wZgK77HI e4fMeh6Sa/G/NBeKMglZ+mkTI2IhQXYrNoOZPWyIWexAfrQhMg4kMg4CVCG0kDUoxevC ABTMtBnfZn23ZTn0mhfuyCZN9m7xq/OthMTG8gpC0NiDW6goRdQ9y2gdvuLzRjYJ89Jl iA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ua2n3kd5e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2023 16:54:41 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3AGGFqm3024563; Thu, 16 Nov 2023 16:54:41 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uaxq34vty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2023 16:54:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6aiokamR3v4CgDo5J/wniCdWV+ZMSPNd9c/xPN0fMozHjsr2oYeIouaVAQx09igbsKILFDvj2aN5ytaIoUZ7r2fOjbgsZ0YUxWW72c4LqhDJw0za86/V5iBRRoGxREhuaP89AYFZ1Y/P/I0kdacfSxDf0ceiAXQnnLC8VYQSZwhUowmctGrXOrkxYen1Hg21pDADdts2g3nVqa/25dAIjPZZ1nwGgOjs+4Dd1X9zaGDJutbrJ2oYetLbHwNhSKZbd3dwM2WgnaA1yZuHFFAhsIs9LW5XHj0TJSKUKUUsuAacPQ6b0yMPs5d9knH4wcvl9cTFnaf/ZFvrvK2bQv/Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cp+O2dekGq764onf+M56iM63w0u35NWi0UkfafLWXLg=; b=SWq1TxrbRDljggbMnXZ8qnU1Fc6PZePsR0xCQ62r5RBZPJutOW8RHSymfjs8+j0KVKnjoW9ItPGfTVApWaeDDtkkPXXcis5yiCeIJm7EN/uR7sXg+fyjEUd0bfnMGPRJJN2mTlaKj24PwiVpEYfO+eX+5VbG10bL50v9bW5dLvfz5MrO2Wro97gUSOYYNtotZgt4XGwuamX7c2J8iMW1jYYLkNDdfSYE9KcHs9Rs9FUoG7Ljj1Bplec/RGPT3ZYzTQpGMFtQZJqWHac1/wSaUgGw8GV9IzkjSEK8QhDqWAdX8SIU+7R44ZZ4TW/lDo5MLHRnbO2zDBDEMYaLv0tnbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cp+O2dekGq764onf+M56iM63w0u35NWi0UkfafLWXLg=; b=sF0DN/49k2C2vH7ZlGRNd2nLwnQx2Zp9mym5uJ+ksgyQ7yMQphjaJWqXqLs4fCyxlXx2wmjDafiFmXcUj96nEzZlaaBeK7I6+PQvFqw3IvkkQC6qvtD05btLV8iA8BP8QCGRS2LMBZ7Z8BxEUikCyb0Quv5oXFvkKaFcyYphC+s= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by BN0PR10MB4855.namprd10.prod.outlook.com (2603:10b6:408:122::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21; Thu, 16 Nov 2023 16:54:38 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::102a:f31:30c6:3187]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::102a:f31:30c6:3187%4]) with mapi id 15.20.7002.021; Thu, 16 Nov 2023 16:54:38 +0000 Message-ID: Date: Thu, 16 Nov 2023 16:54:35 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] scsi: libsas: Fix set zero-address when device-type != NO_DEVICE To: yangxingui , yanaijie@huawei.com, jejb@linux.ibm.com, martin.petersen@oracle.com, damien.lemoal@opensource.wdc.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, prime.zeng@hisilicon.com, kangfenglong@huawei.com, chenxiang66@hisilicon.com References: <20231116035241.13730-1-yangxingui@huawei.com> <9cc196d7-0c4f-ef09-53b8-362d5eb599a6@huawei.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <9cc196d7-0c4f-ef09-53b8-362d5eb599a6@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0077.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2bd::8) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|BN0PR10MB4855:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fb2317c-93b1-411c-b4aa-08dbe6c4b860 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RzCHwsXaA2LiwWQ5j57L4eLUvZY9TD4skVjZDnJHkpqQQ1wgk1oLYG5gLwd89QzlojAvKb7YMQ+pxDQJJld68nxpj+BqTwtU+p+0+rUFcro3u7O+GGe023rwIu3DV5RvkjXDObvWLAg41YBN03B86ZM5Yfu+xZwYcHe/ECkHtXNhnetYWF8meIWGxg97OOhQQRHCgVUWEJcwdtvcCS60Gdzzdx3F3rRqqn1VmTOAX7LmG8BViLTCVnVsdg7zu+MAtKPAOw+NfmO+F6JEc4r0giOA4ldB6amNV98sX7wwJJN/8uYrr4LRkuA32iVTJbbm2sE3zvesrY4XH4QfR/FjWlGn1KJTVPNPQr8YcmmEl3/KXEV9azwUj/59SSWCWAzEmiSzPmiAI/ADFtECCMmWHR5BFls3kIat+6GzLF3cCkhSGkJ5EGbDp9SwTF3wx7CE5qEkeRND8qNwIYAh1ad1hlmSfdyqS5Dt1WaL27z3Rah/E81Y5UuBTma/Zt/csXF0LeHsJLO1AehnAS4ZFrn7ROkNDDSeYCKWaEPE+wriiyTOKpY39siiw+pKB3O4Xi+/Xyok9GG6F3SUIbp+JDzxjx2WIN/nwUL5mD9wL5w2LqTL65mmjNB3p/rsOZmrkrYu7gCmlmLSJw3igx8iLyOTSg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(346002)(136003)(396003)(366004)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(36756003)(31686004)(31696002)(86362001)(6486002)(478600001)(66946007)(66556008)(6512007)(6666004)(66476007)(316002)(36916002)(6506007)(53546011)(4326008)(8676002)(8936002)(2616005)(26005)(2906002)(83380400001)(7416002)(5660300002)(41300700001)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V3pyNGg3K2k4ZTV1K0c0aDg3NklkUVd5SHc0SUlPd1dEd0xYQkh4d21rTDdB?= =?utf-8?B?ZnNUcnkvT0pxWndMMW1LR2gvRGFySGdhNmhEMDNCbVVZWEJodkJKdE9yMWFz?= =?utf-8?B?SWVCemhVZEJsYlJ3U09udlBMcXBLWHVId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dCOE13NEc0YVFaWldnWWhPdlA4RzgxWGFSc1AzeVBFMFpua1VPTmRqcW5I?= =?utf-8?B?VjZIRmNUVllNakxudVRocTZVRURhL3ZCMDd5TitjVTFUd0JYczV5bjRFR1d3?= =?utf-8?B?alRsTzVKOVVEYUZ0amFkcFpDMjMxWTdNWEhBcmdocUwvZ0ZXdy91TTJ4aXNy?= =?utf-8?Q?/elfD00u+zMk1WaasqJxgebg/?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 5CR9N25UsXkBOEFc/V6SFVbf6X6pi+lFUkUBWutaZ680EuGOFj9sGgtkKKK0IXhAM2M4PnxLg2ZCCqd0fipfVYDqV559VmE0j8mRZ9vIgAG9zxJ7Jex3un0lzyGrAX99N3VdOG6aInpeFGgX3W004WpkicZoxG0BU5D1zySXkMt183u+R9Af/uxY7mne+kxspB7t8qhGlf//p+S/hu7J5WhT84zfT+s2IWKk3qtcGmUMQG66LlgWlatf8MehmcJvtXu0wKAI+nRDArHnem4RhM4Pq9qjYLGXxZfkcY/APYb7qGlqCxMvg/K3zLqdlJZKZajlMo2Vr1frlFmEsFZlQlEnPyR2cfzt75FxQUxmvoYiwNDoWTQ1Uml9OKH7cBMAkE6UxurzkLABTSjJs/8pFDUs/JWKRS4l0xN7iS2idBKm/Wsyri3zaAastmMun37gR9x+PROzca9CLKyVH/GbG/KPUvh/Frxomxij5ePnIrrv7WjUUSnJ5vZ1L3lFaGem6TXeRVYfivXQHyTk58+M1Y7VIJcpQwoB/Ux3t9dhtCl+FVwSqn3jAhgnlhA4ta/O2dq/0O5atsjHsK24+SPfBKja3RwkcWxNh7NNIw8TO5F8YQkyyQuKMv42e52nxLyo368L5YBBiM80Y82qwashThmIBzcnxdLSJWC5/sepp79grYJtghj7RYVQ1iYiuoLyGk8yQPTETqta+rk1jVntcqh9QczJma6l0DHvUF0kd2cdswFc3NPkNXqRyRChSb8vdQGr7ZdxhgXVfToEt+BW5RXPrAK3KdICKKt2YMhvveXoD0xrnYJIEEz/lzJ9qRmCw+O6XpGW5U+nugf18MDNxqS2NCsXQoUofhXYgCGCLA/hj8/t+GB2rknWzRx/56tV7sPmPJl+ob6RgFUOYWJjFAoxa6yg4aHlSlInOB0glOM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fb2317c-93b1-411c-b4aa-08dbe6c4b860 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2023 16:54:38.6537 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1Umc8235L5RWdC+WZ/3lM/XI0fbczxDplyViuhWYJ2Br+9Z0UIL9OBQ4w3Mw6gdNo6c8ENMTPoQ/mVpvIb3fJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4855 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_17,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311160132 X-Proofpoint-GUID: waPfHWJrtuFUNSNj7vZJH52ECt9t7Ws3 X-Proofpoint-ORIG-GUID: waPfHWJrtuFUNSNj7vZJH52ECt9t7Ws3 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 08:55:21 -0800 (PST) On 16/11/2023 13:45, yangxingui wrote: >> I think that patch title can be improved, but I would need to know >> more about the problem before suggesting an improvement. > How about "Fix port add phy failed" ? >> >>> Firstly, when ex_phy is added to the parent port, ex_phy->port is not >>> set. >> >> That seems correct, but why mention this now? >> >>> As a result, sas_port_delete_phy() won't be called in >>> sas_unregister_devs_sas_addr(), and although ex_phy's sas_address is >>> zero, >>> it is not deleted from the parent port's phy_list. >> >> I am not sure why you mention this now either. You seem to be >> describing how the problem occurs without actually mentioning what the >> problem is. >>ohn >>> >>> Secondly, phy->attached_sas_addr will be set to a zero-address when >>> phy->linkrate < SAS_LINK_RATE_1_5_GBPS and device-type != NO_DEVICE >>> during >>> device registration, such as stp. It will create a new port and all >>> other >>> ex_phys whose addresses are zero will be added to the new port in >>> sas_ex_get_linkrate(), and it may trigger BUG() as follows: >> >> I think that it would be better to first mention this crash, i.e. the >> problem, how you recreate it, and then describe how and why it >> happens, and then tell us how you will fix it > How about follows: > > The following processes trigger a BUG(). A new port port-7:7:0 that > created by a new zero-address sata device tries to add phy-7:7:19 had > the same zero-address, but phy-7:7:19 is already part of another port. I would like to know how to recreate, which gives a lot more context and helps me understand what the problem is. Thanks, John