Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp150598pxb; Tue, 21 Sep 2021 21:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyDbET7OebcZepKSENkSlEw9r6lS3K/aqLr7gPqssrrgpZMzuKvsZOwWYHbsTcGh9bgLe0 X-Received: by 2002:a50:be82:: with SMTP id b2mr19856085edk.56.1632286244147; Tue, 21 Sep 2021 21:50:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632286244; cv=pass; d=google.com; s=arc-20160816; b=q7BMoLbAvKwr4IjcHkU4oYi+FYrob5ov43ZkGglwcFJ11V/8WZ6LnMMLgAOqUir9K0 WZanIt+S+jQfXfrnWvsT600FXQGpr4jE07MaZHT8/f0NRtn3JlhxzsOsInYO5x1h0h/n qD0rY539hQncfJcHwpqbH0Pp9nQMSHFe/KOYDY8uXBD6iZPHbCrx0zQBTY+BcKgWLDbo yWgjE4uVv4mLjA8tLMLuWEMpdHQuBOyp5Al0KYktfjE6n/g4q41x9i43umyUkGKTKVGW 3m4QD3RcAPy1avSKVlWw5JwqwH6AvoXRSL11RQO9tLGqMK8yzMoSnl/V9szHivrn6C/D hLmg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=xhfgUZYz2N8VCdX8opUEvwlVESVwia74mEiF6bYL6oY=; b=vtLtYLdtmIbjjpRRAQEkunVsdrRxlLLBvFFvnJjU7ldtU9ReKd3ASPiJ6+roHft6w8 1qUAYTIsEq1Q2QdG0leLONV0DIZzyb4JZ4+c43thrGvGWrY/P0yJErgX9KTf+TearbTn 2bBuIqRlqWP4qzO+Gj0XByq/Xs1j0pXIzPW6AtsNVXkad806iWfV4rtArwMtOSyfV1mk SlshDc/pIQZs30w93qjum8IsIvvBy2lb90dHcCKjqbTPSn1X40qhYhbgT4AH7wLcBUl2 2CADDe3ejXgKTwJ5IJVDjEdRky0aQ0hnSHA7WIar14pyq8zCSmE9e5XIVgBOHN68ZYTH 2T/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=oz+FUMrp; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=rk6FVruB; 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.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a93si1293062edf.462.2021.09.21.21.50.20; Tue, 21 Sep 2021 21:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=oz+FUMrp; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=rk6FVruB; 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.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232320AbhIVErh (ORCPT + 99 others); Wed, 22 Sep 2021 00:47:37 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:48556 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbhIVErT (ORCPT ); Wed, 22 Sep 2021 00:47:19 -0400 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18M4avbu021091; Wed, 22 Sep 2021 04:45:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=xhfgUZYz2N8VCdX8opUEvwlVESVwia74mEiF6bYL6oY=; b=oz+FUMrp1q4X/rnUDfAZMah4T93GQmJP5wI7k7fBHkvAUZvRfFqp65NSXw1Wisqh9gtO IPvwYpepEXeST+S9vtlfsH6TGjTUzfQ0BiJuP6TDcGaSIq48kzwURWkBOQT8Jt/70pyh EBQFaLHCi/JtHm6RFD+qrFhVP4GzsnhQcE95oxtynaGpkob3piJB8eDRrF3pID1f8uS0 USySNMhRc99DO3ObYVIepKfYtTAT1x1CPkkpakQm0xr7BYoPivTgra1a1t8zQ4b5acPx 4PafUM4q2V0tQeS58Xy6GA91byaWeLOGzm/H+1nA8NPFcwn0yMqVVRgNzIMQQvKXt6Gk Yw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3b7q4p1c1g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Sep 2021 04:45:39 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 18M4jZs4178811; Wed, 22 Sep 2021 04:45:38 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2177.outbound.protection.outlook.com [104.47.55.177]) by userp3030.oracle.com with ESMTP id 3b7q5mc7nu-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Sep 2021 04:45:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eVm9yxFZTJhfMvEerIxTbvv0xT+gVM7TTYEReNTWAfcHo1+/Xi6tD58DWeFBBAk2fz05KPBAU0ZuLD4u0pp7cNY3ML1hnUiMuLm54ufl1aBnXmWxrX63F0LctLOyStX6M1ct+xNOJJqgmIoYxA8kC0qCRO4h9wjRdcXCqRfPPL9+840jShYwsrVcVAtuFZ8Gm/hG15agITQRRL63xF7TZiS67i5GlzZsI99/4mPorlXx2yQopEtdi36hpiwRw+QN3drqLbCGxwOc/4pPEb6YBBkvMHTM0SPwQFSZLd0Yh0CBzSsQTU5MrQRgbMtdMxUBdiwYd0vf3e3jThft+fIY+Q== 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; bh=xhfgUZYz2N8VCdX8opUEvwlVESVwia74mEiF6bYL6oY=; b=cegaUxKiiK8g0GCjxgz1qDvzYji3wG6o1E8oNVygDprLFOsex3SNVHoBKIfqnuree8UIgxttQbyJhTZNJ4N3g6xBTQ9dNbKk4wP8bgAq++1gXqyhd8iXTMzS9Jsiffs4wLiEycgatVUqAPWptH75Ta6eUFZ3X1ySKfOT29LZdcyINkWkHS2qQf9jcZ7k17aYOEU0faVlHGRCRH3bzksXjZlKSKJq+LdL4kQpJR7sySDhfr1F51j3lQFM0Sv1hOdccDQziue/PgXRBniFjLNTNIXcQmIsbUgQhkW7D6WZo1IluYNHqSJx+nZc+0LFNDSxbvK7c4rZ8GItPta5oobo/w== 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=xhfgUZYz2N8VCdX8opUEvwlVESVwia74mEiF6bYL6oY=; b=rk6FVruBFvZIuaw6TfdOQws4rP6qaVwy+7h4MM5ykrgsur1dMOdAB4hrNXmXyWJKEeneZcs59m4jCP8m2ET1H0R26ipwFKiEkEzqdtSmqV6iBLo3I3Atmze06bahwi0trkFqbhuED9Jn0tt0KtRQMXMgwdOwFv4WbaAFknsTh0o= Authentication-Results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=oracle.com; Received: from PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) by PH0PR10MB4456.namprd10.prod.outlook.com (2603:10b6:510:43::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Wed, 22 Sep 2021 04:45:32 +0000 Received: from PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::c0ed:36a0:7bc8:f2dc]) by PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::c0ed:36a0:7bc8:f2dc%7]) with mapi id 15.20.4523.018; Wed, 22 Sep 2021 04:45:32 +0000 From: "Martin K. Petersen" To: michael.christie@oracle.com, lduncan@suse.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Ding Hui , jejb@linux.ibm.com, open-iscsi@googlegroups.com, cleech@redhat.com Cc: "Martin K . Petersen" Subject: Re: [PATCH v2] scsi: libiscsi: move init ehwait to iscsi_session_setup() Date: Wed, 22 Sep 2021 00:45:16 -0400 Message-Id: <163228527477.25516.7622823180692115909.b4-ty@oracle.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210911135159.20543-1-dinghui@sangfor.com.cn> References: <20210911135159.20543-1-dinghui@sangfor.com.cn> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SA0PR11CA0154.namprd11.prod.outlook.com (2603:10b6:806:1bb::9) To PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) MIME-Version: 1.0 Received: from ca-mkp.mkp.ca.oracle.com (138.3.201.9) by SA0PR11CA0154.namprd11.prod.outlook.com (2603:10b6:806:1bb::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Wed, 22 Sep 2021 04:45:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6671952-573a-4e8c-20e8-08d97d83cef8 X-MS-TrafficTypeDiagnostic: PH0PR10MB4456: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1227; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i9r+XbkywgLKwZdcui0kWm6RBre0xMeZIHYM5dQzLaTRR4QnRC8RVZy/oJ2Id22nZGo0kFWOUBCpC2ZQuQCTzhD6Mi10iLWLgfghzGR7bdGts/Dt8yZR3rNcwQc5EdflbjgI4cv/4d39Okvwx9SehnQDpzCvbwVTN9POUbmUWC66O3Kz1r+pcI22mq/J0kttCVVm5pq2EVV34nGTdZNpceeG6T+2lGzP6Rnbq+7RpPTTr1O/blNWo/cbNhSFQx2uu3iNDWuUDXiVAPjTs1Kfk7snWEPIcDfYsbqffhxMrx1hKX0G0yuZ0avg/hds0i0oGPMC3nTsbLVkuDmw1VT9SgFbTgeJ0PiYsKnQ1/0V7XdFZQs/Na05Nim4hfX116XRW066Z1guNERA2oFenlC4MtoRgf2x5nB/l9PjBlyFOtwHE3uOk2X27Q+Z2aZtnu79nU+IPNQiWKJCbug3J/+i2nTi3Sq6eEGgiSRIulSU+DFVKsl2Ji0GvvNIQ1sM9zRsFOO+c8QEaGVxpNMCOxJ0dC/ZmdcNCFNoOPNzdayqeducdnXn4UtZyjlsayv9pLKqxtg2c9bzaTF++j+AL7Avdu6OBkHTnINuAMXYMB6ABqJtnprBG0U7uZGs3od9dP5LOej8FjJz17oMEKb7Ncsr+FQWaLtNhhOU94177d8KeoC99he3TVERybloSVTHQeHmZCq5bFPXGaXswZXmrOaRf/OoCcxRgpxMaizStFhiZUFf+DIqqe0P+K0juu/NdeGN0+cF5uO0JNbqiR5o/YftkiDVsXFwut8BG+Fmq/+Un+s= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB4759.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(966005)(36756003)(86362001)(2616005)(4326008)(508600001)(2906002)(8676002)(6666004)(66476007)(38100700002)(26005)(52116002)(103116003)(66556008)(5660300002)(66946007)(7696005)(6486002)(4744005)(186003)(38350700002)(8936002)(107886003)(316002)(956004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Nmt6RXB6RDB0NHpiNkd1c1VHQjU4Vzh1MldhL0pxeXk2MlBTT1pmSmRUMU1i?= =?utf-8?B?OXliNVN6S2JtWUFvTjhtUzF0dDhabndrNjBlVzd5TzAzY2dYU2lKZ3cva2lh?= =?utf-8?B?d3hxb2hUOWp5MUM3cXZQTWp4K0N5UVpXVmlnRld4bnNLcUxsTTFCQm9xSGda?= =?utf-8?B?R29jNllaVExqZGx2T2NrRGRDdm5JWUdDMjl1aWE4OW1GbTdyc25RdzNqZjVI?= =?utf-8?B?bWFUTHBzb3drMG1Rc1diWWJseEQrUXdXOEdiWHpNYk1ESGd2Z3VNa01Bdy9t?= =?utf-8?B?K1R4ZHBxc2ZoUGhDdHMzQVZKbTgrbzFpV2NQd2RXeldsK0k4Nk54d0dBSW9N?= =?utf-8?B?UlBvVmZ6bUtDb29MWXJoK2grYXhpanh0OWo5S2p0aDVrckdKdjhiSmQvNE8y?= =?utf-8?B?d0k2cXJISU5NUXJmYUNnWVNzL3AvU0p2T3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6R1B1THZWRXNDa051WDFLYmQyNTdrRmZG?= =?utf-8?B?eGdFcWd6cTkrVUtyNGhnN1FiZ3hZOEF1cmhjNVRSZHFJNlV6TXA2UFdMV3Ri?= =?utf-8?B?VjFKT2RMREpRQ2VINEdMSEEwWWhLZFVXMEowT0ttMDFwVHl1SkxUOTE2by9D?= =?utf-8?B?V0Y5ZmcvamEzamVYVzdrcWp2Z1kycnJobFFHaXVGcFRuREsxOEdObDVQS2tl?= =?utf-8?B?bWdhb1pRYnd0YzVKWTRYQy9lZnZSVEdMZ2NJNVlOL29UQWFTbVREVnE5QTJ3?= =?utf-8?B?QTJoK2d6d25pc1RhemR2YzJER3ZqNVordUpvM25aZXQzWmxYNnpYcHBlbmww?= =?utf-8?B?RWtzYjI5aUJ6QzhoOENXNHZkSEdLRjBxeVhTS2JGaEdROVBobXFHNkZwK1dl?= =?utf-8?Q?ax4jLFxCamK6YNt0TtRRgkgb44SGqV6HRc/W9Jo?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6671952-573a-4e8c-20e8-08d97d83cef8 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB4759.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2021 04:45:32.0831 (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: 5KYxnPouf8HThtyVePGJL+QMs3cqKYV+BpdXI3BrXq+T3IaQS/9dO1YK4cPO2B6Y3jXTf1sqwCN3E0i81DFSNKjomOiPh0ZjDGIOgoZpJlc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4456 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10114 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109200000 definitions=main-2109220030 X-Proofpoint-GUID: XqUki1mhjEZaTSubAMjBbZmVMNbDPLVf X-Proofpoint-ORIG-GUID: XqUki1mhjEZaTSubAMjBbZmVMNbDPLVf Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 11 Sep 2021 21:51:59 +0800, Ding Hui wrote: > The commit ec29d0ac29be ("scsi: iscsi: Fix conn use after free during > resets") move member ehwait from conn to session, but left init ehwait > in iscsi_conn_setup(). > > Although a session can only have 1 conn currently, it is better to > do init ehwait in iscsi_session_setup() to prevent reinit by mistake, > also in case we can handle multiple conns in the future. > > [...] Applied to 5.16/scsi-queue, thanks! [1/1] scsi: libiscsi: move init ehwait to iscsi_session_setup() https://git.kernel.org/mkp/scsi/c/e018f03d6ccb -- Martin K. Petersen Oracle Linux Engineering