Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp86928pxj; Tue, 15 Jun 2021 20:51:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCoMeagZeUHNqvxMZcDiOQt/f3V0KMOz4VtGzeaIdlEMxXvsrIQHYFq75zU2m2eTtX+D4v X-Received: by 2002:a17:906:974b:: with SMTP id o11mr2842880ejy.363.1623815509878; Tue, 15 Jun 2021 20:51:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623815509; cv=pass; d=google.com; s=arc-20160816; b=motsxmZs401VB/giFcDa7j4B1TAkCzWuGd8YzNnKsRbkRRr0TbYQhJ6+vBx+5QYyxS LweJ8SO0UL2npcyRLbe6MTCC3a285VlQwA+tyh7wQiE471KrTC3wJL4qkhzcfDL8w2SF bXxO44Zb4xfmTqs7u8eCLPLs32SwWw6cHuUS2BMHIRqsAJdrbqNebJEzM79Up3/lMcrv EEU/KNHvIT+e5x2Nk0GvxeFdggNaP2LloaJIhxj2RogR4kl39i85LxgzlycxpumLyIf6 GoBDlat9yGUKudQR/r22Bpc0UV/GzvRY3sDB9QbXJbc9RedMttmZCFUe8jjJBG1gqReu uiyQ== 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=sqllklwWg40RKREt6eVgAv5RKORRi/+1Iqt5yrG+JkM=; b=dPJrq+BzhEHXP1iaIuuB0Ik/x9wo3kFfBoFIpdeAVqZMhLVqxI9U/rgglhqpcp5sbK 80PZ+tgiK3Rt0iYkqNIAaUTDSOmGwT1ILIEMtbSrlhwzLUbaKG7t2UHwxVf4dQkJI1+r Wvhw1dagVThwZoEJ8N5YLxAm7CpDTk5PSJGmn+hrerufEwPL0vjxvSW+jO7wsNlIJGtT 4mvPX6s/0qFKmFODgR4Q2zHKtMrO0fCa4cIZLP7wK2UGEUew4RAIgRi8MKN1Pw5f96jH abes9jDTso4EVgHaz5f+p3+0cZ49nNNJjBGEg41n7dk4zMYfmN+QERhKHf9MciX4/4KF LZpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=INh6OI2C; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ZzIugXD7; 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 w18si823971edc.436.2021.06.15.20.51.27; Tue, 15 Jun 2021 20:51:49 -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-2020-01-29 header.b=INh6OI2C; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ZzIugXD7; 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 S231225AbhFPDvs (ORCPT + 99 others); Tue, 15 Jun 2021 23:51:48 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:20402 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbhFPDvh (ORCPT ); Tue, 15 Jun 2021 23:51:37 -0400 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15G3jsCA002405; Wed, 16 Jun 2021 03:49:17 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-2020-01-29; bh=sqllklwWg40RKREt6eVgAv5RKORRi/+1Iqt5yrG+JkM=; b=INh6OI2CFcBddLVe1YswQxkrusXfvxtbiGqfRYWm3GLAuxq4LPlpxp1AgRpByOyM2ZM1 pw95q+vKgNHffa13fqJzaUkmCnPJYnYQodj0HS8O90487FBfBHMbQalZ/9LAM+bSvEOa RFvJifiCdQkf49mPMNspQP6JxkLPydrU0S4Wn4A3vnExdZrhvQduPaHnuVk/uRxRJPxr m8I91Rq8JbUu8x5j+BuMYtIe40dPe0sSTKFDNdURBvWpiUczlXytRSMfOXzB6fD6tH7R udzC/e0WKSyuuMWo2KeQnv5aLFYfv2jrC2aJ7+j/LoQcn1Kzo/T7T80YTCYcShWaN1gq xg== Received: from oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 396tjdsarq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Jun 2021 03:49:16 +0000 Received: from userp3030.oracle.com (userp3030.oracle.com [127.0.0.1]) by pps.podrdrct (8.16.0.36/8.16.0.36) with SMTP id 15G3nFOH075255; Wed, 16 Jun 2021 03:49:15 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by userp3030.oracle.com with ESMTP id 396wanasxa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Jun 2021 03:49:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ALBBNsfMFWA28eRcTUQqt7TCDoHThlN37BYDkY8m6Ry+S7tewkwrjWWzWUVq4Pj+zSbhQ4yzIJStjeB6O7djIshC855BXVFJ2KlazirOAoyYtGYGeXcIfpYouZena+88+5PMezhFE4afkkhBZIqHXrwadrqtjliO5PYwakzdxxiFZmDFoR4rmjSU81fXptPlnNuqVqYcH/17KcugAjlkzrFMlpoLe8PJZHkMFIdg71qcyuQ/cWmvppYlGoNRSfb72dJcYhxdw1hLHYfRWbI0zYSScD/91OtkUXxTJeQrbErFD8L2V4oxQ+f+8jCHdoiskLXHsMkbUZBJ3BuboQWWXA== 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-SenderADCheck; bh=sqllklwWg40RKREt6eVgAv5RKORRi/+1Iqt5yrG+JkM=; b=QVt9xL/k2IXGQC8i2cH7bS1pYn6Skna01oRgJHQ2jB20LbL6xem1Pr8TCyBBIF/lB5QUA8QPKt86pQKkMIbd2sUFx+/vG08OwKCkvKBWQdBi+vvjdCL8IbG+uNZNrk2azvuGU58RQwJZEv0vAatLUaMmPLGYQ7F5Tgnj4dja9u33/GM5rJkDL5g2TyS7mM9jWtQ3qzB7xTe/nT3COR5NFT9Q3kYq4OSPrdyfqVCSWQSdWD5JiaFU+99Sp6HvKuzY1G3/NC5bU0Xm5HLtPRR+bPSm6OyWaPdLFtlcwv4fZ8cRuASBa9HZbtCFbRbGok/UVeOXPp519iKeBiQv9nXDyQ== 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=sqllklwWg40RKREt6eVgAv5RKORRi/+1Iqt5yrG+JkM=; b=ZzIugXD7fXnzcv6ndpOWyp0UNykQqajBPhBXTxzvsT9TH2z6i4b/RhLra+Y0d7q0v6lqrPk8q1g/OQw1BPLbxn52TsgRyG8LK1w6GYIyTS7W+jVO1AczHBuR0P4Ft2ociRdGaMaRUeARPxGdTumKaLmo6HlxJpufcmIhEfrg/sc= Authentication-Results: codeaurora.org; dkim=none (message not signed) header.d=none;codeaurora.org; dmarc=none action=none header.from=oracle.com; Received: from PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) by PH0PR10MB4663.namprd10.prod.outlook.com (2603:10b6:510:34::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.25; Wed, 16 Jun 2021 03:49:13 +0000 Received: from PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::4c61:9532:4af0:8796]) by PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::4c61:9532:4af0:8796%7]) with mapi id 15.20.4242.016; Wed, 16 Jun 2021 03:49:13 +0000 From: "Martin K. Petersen" To: nguyenb@codeaurora.org, kernel-team@android.com, ziqichen@codeaurora.org, asutoshd@codeaurora.org, Can Guo , hongwus@codeaurora.org, linux-scsi@vger.kernel.org Cc: "Martin K . Petersen" , "moderated list:ARM/Mediatek SoC support" , Alim Akhtar , open list , "James E.J. Bottomley" , Stanley Chu , Avri Altman , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , Jaegeuk Kim , Bean Huo Subject: Re: [PATCH v3] scsi: ufs: Fix a possible use before initialization case Date: Tue, 15 Jun 2021 23:48:51 -0400 Message-Id: <162381524896.11966.2627984284805294316.b4-ty@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <1623227044-22635-1-git-send-email-cang@codeaurora.org> References: <1623227044-22635-1-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [138.3.201.9] X-ClientProxiedBy: SJ0PR03CA0268.namprd03.prod.outlook.com (2603:10b6:a03:3a0::33) To PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ca-mkp.mkp.ca.oracle.com (138.3.201.9) by SJ0PR03CA0268.namprd03.prod.outlook.com (2603:10b6:a03:3a0::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Wed, 16 Jun 2021 03:49:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a8a2359c-6de7-4236-bb19-08d93079b494 X-MS-TrafficTypeDiagnostic: PH0PR10MB4663: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /u4ET/GDjzlenrjqKOPoQNvRUL0cDEbrYBP0QAm4YqdO8752gr8Fg/afGCjwHKPpBtljx4/NP39mWuxqrl2Cgefv9Xc1ocUzIqoD1xwLmY0VKqCbmttDyQlAXMgEHVIkLGd3NrVRHNBE1NK/YZJgd6SrkCbg8jeEWNShnOrYgTuq+zEYMelhJWnorWeGs2rtGuEaaXShWWtCcnJ3sVBy4uR1R+t923tQrQCY4H3CVvVC4PRC70pC+VP7M7jUHNOGNJuEytIXDIwU7Z8h+5ggPz9A2yx7Vw2jQNQJxA7i9mgVAehb41W7dOL0TGPI1fXbksT6SyVlZjgTDFfpshK5Y4CcYHh2eHJ5PUYaRvX4SRz71RYDL2nwx6osdgHRFHozUdcw8G+UeXholeFqrruM5hs8MXC6Jm7d70eBsA7U6VaqmIH1/kHXpXVKZLVdnxzmMgYA+UmnVe0fM9caD5RRnsihbN52g5aZ5tfQx9CaY84Tyt116ypaFx5GnYoCIdYEPNlOFgKWkJExZKu/jjtfZT3GtpOH9kA5fQISY4yvHCl7MHloUYhuF3GZgAl3o0yN0fCitqyHXlf+oLM4SM96g7/OSqzGeUCIKfXpBo2VUdPB2NldVke6MQe1E7fq5Rv/mA0xWWccKF/njJQpLhLncK938wx49nJHcPlXmGAwELbTqPvuLvv+YC0hrNa6HOWeijKRC9ufQnHl5FUAiwOjYjdPPoC2z27fmrYkFrVbAsbCl+PlPb7ThyVHifPpuAmsmfCbH5r3+kZADHK4iip8eQ== 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:(39860400002)(376002)(346002)(396003)(366004)(136003)(4744005)(66556008)(8676002)(4326008)(26005)(66946007)(2906002)(16526019)(186003)(478600001)(66476007)(7416002)(6666004)(5660300002)(8936002)(966005)(316002)(956004)(2616005)(7696005)(38350700002)(6486002)(36756003)(52116002)(103116003)(38100700002)(86362001)(54906003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WnJNWlpubFZXa21nWDRSTGd3Y3dQQUJkeFM5QWdwRWkxNnBGbWZpdFJxSXkz?= =?utf-8?B?cndId3dKdjY2Z3FKSm5mcG5PYU1pcmN1RnFXSVJmZVA3V2Z4VzFiaG92bGl5?= =?utf-8?B?d0FJV1Q2TytqOEtlZlB0LzlzVnNUaVU5clUvNVFCcnFRUFpNODVVSmRiakpw?= =?utf-8?B?MjhiRStRZ0FSSVAvNXRySUVDaGFXOXpjKzh1aU9SNkxkTlF3THBzNTRLQmpv?= =?utf-8?B?SlZ2eTZ1cG9Yc0t1R1I4ak5VZHcvTkZhdXRVRzR4eDVsV25OV2N1KzdGQWdv?= =?utf-8?B?c09vem9ZYTRmd1E5azdMS0g4Qi80eTc1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c01KY09ycmFLNU1aazdTeEt5cFg4RTRJem5aQWhEekxJMEVa?= =?utf-8?B?b2k0MmhjQVlnRmE2K2w0M1dSaHMyTlJiQnhISHBnNm9yWTFtS2xoaHpYVkhG?= =?utf-8?B?bUtYeFEyelc4a2prUjZ2UmJxdmNjRXZpNTFjaEZJZGJ1RFY1c2NVWnpzUkd2?= =?utf-8?B?a0E4YVdnQlFXT2tweXFPQjVKZVpnVlcxRjJ5MXlFeTRlNVhpVmlINGxkWEZh?= =?utf-8?B?ZkxTb2lKOWFSNmlodXVQOUg5ckRkZlI5WSt0SHY4LzdQdEN5OUxPQzZpTXNW?= =?utf-8?B?NjV0NzNLc3ZLZDNoWHdFTmFySFY0OHRlK1gzSDVCVWk0UGRuZDlYODlUYzV2?= =?utf-8?B?NE00blhuZVpWTTZLa0lCYjZjVmRqa1dNaDBzRUwwZkdKaUxpVWtJcitkNzU1?= =?utf-8?B?RFp6Q01hZmZkSU5DWXh4TXgrQXdnWFRGNHlVcE5WWXlwR3pKRGM5cXhDZlpL?= =?utf-8?B?UDJsNmN3VHVORzByMTBnTVRRVXUyV3ZxSHdMY0hDTkdpbnA1ajY1ek12T3R1?= =?utf-8?Q?FezONeioPtrTqPkFSkE7/xFnLYTU7sexDzsVsdV?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8a2359c-6de7-4236-bb19-08d93079b494 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB4759.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2021 03:49:13.0996 (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: H3H5ng4zlGLNyc7dOL/lwXairT45I+didZrH447YSfJN8ULfgU3RUA24UrFVML+rmlQ3PLZChbEMvxmD1ZR2B0lfPykutPJs6eWMK3QN6jw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4663 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10016 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 mlxlogscore=999 spamscore=0 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106160022 X-Proofpoint-ORIG-GUID: XTnvJVMZpeC0QD1KqQsR9OqwsxxCaX1L X-Proofpoint-GUID: XTnvJVMZpeC0QD1KqQsR9OqwsxxCaX1L Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Jun 2021 01:24:00 -0700, Can Guo wrote: > In ufshcd_exec_dev_cmd(), if error happens before lrpb is initialized, > then we should bail out instead of letting trace record the error. Applied to 5.14/scsi-queue, thanks! [1/1] scsi: ufs: Fix a possible use before initialization case https://git.kernel.org/mkp/scsi/c/eb783bb8bbe7 -- Martin K. Petersen Oracle Linux Engineering