Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2433018ioo; Sat, 28 May 2022 13:30:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMKLU8Os3jviupJHfFc4tEpR3tWr4aTsewg3TTqlpjPUou77GVE2JbZHHgDMkPIrw5cVOq X-Received: by 2002:a17:903:208:b0:162:284:3396 with SMTP id r8-20020a170903020800b0016202843396mr39076429plh.121.1653769848018; Sat, 28 May 2022 13:30:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653769848; cv=pass; d=google.com; s=arc-20160816; b=bcG5ZrSGk95HR8VLAATIEeUlFBMm/9/4LYG+0PKSutpZKFv5SSfys6cHCZ6yCdrpnH /Qw4SH0oSfW0fZDIW3uUh68Er+DAGI14cJzOGMBB3IFLybfRKEZplfrL5xt5XyaQZWHF 6S3wGryafCBLzl3UFsBjELVGsLJpGWtztTe5HpMdFRsD7AA1k29ozSGnaGzD5QNKznuI eH1wjQU2GBxa1PsvFfz4KIVuNO0ISK3EFpCb+vlLoDwhB3RVMpLSeJN3aUD/qu8+vh2G Gt0zBS4Ou4Q1EvJiPgjKYUxnSCrooZzKLwtp+Fo2zxdZJcI8R+IV4L+JkHia+8uRyEr4 uwcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=OQIBb0Df+qepmDSAXiHZ2bMjt9SUB/7h4fmvz8d3Y7s=; b=RM1mP0dTbAl27UyfERtjIFq5ttAHZeKD46qZYgFSkMFlBWt59ZEq2GCsLBGhVjlj13 pMeU9fp9R9SMAU6RCY4kn4WGT7G+RvSM0j0j9PiEgQgr0abW4O3v5MFU0+4OpUZFvIUj tGYGRMWEHJYSD6isyilOhaRDCOpVTzcpu/cvCNIDyPRv2hqFl9YeDmHYE5fMBhD4FFZT cYp8RXVKRfVsV10PlB8RqnLpgNXQdbz/DDAVGB1o7xSL4MAlM5LoHD4Rm96mOv2z20A6 NgpNcJZqZJoTVpOHeMq540axSE6OjS2RE1RnJLDvfajYvphZ11dJJS1jDafsqqDqSko2 J2sg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Frl8dApw; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="sjeGY/wM"; 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 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id my10-20020a17090b4c8a00b001dc391fd23csi7758173pjb.134.2022.05.28.13.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:30:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Frl8dApw; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="sjeGY/wM"; 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 2620:137:e000::1: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: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D764F106; Sat, 28 May 2022 12:40:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236610AbiE0IN0 (ORCPT + 99 others); Fri, 27 May 2022 04:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232768AbiE0INX (ORCPT ); Fri, 27 May 2022 04:13:23 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2369DFD37A for ; Fri, 27 May 2022 01:13:22 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24R5sm87001688; Fri, 27 May 2022 08:13:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2021-07-09; bh=OQIBb0Df+qepmDSAXiHZ2bMjt9SUB/7h4fmvz8d3Y7s=; b=Frl8dApwfvGk18a7YxVhJWmwgwTDazuJ4PhRF2DSEq3Uqh7m4LF+zmUQ2DmYPY0LwvEP A8Zj8pkwk8YC5p3pm9Ioc/pihpK0K4aAzoiHvd2dw7pwJwpgGT2XYZB3/CMPR2wLwY5C cFkjB4qTK594XZqYcaSejN3dktvRmNNchYa2tpFPKNkE+7aIvte18RrrpbtTRev7Fnc+ Vb5+QWeZl8AQXZgzSzp5iMiFZhNMXySMihabnRsrv4wjrL3tbDuSPnCHdeWW+HbcPZew FZHUEvjRXN5hNkVVjgGCv+BkGfvjYMdi6tlCgj8014kKqQGrPrAeW4sTjy2/ARk8dUL5 aA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3g93t9xpb6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 May 2022 08:13:13 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24R86Jwe030165; Fri, 27 May 2022 08:13:12 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2177.outbound.protection.outlook.com [104.47.56.177]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3g93wy57c2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 May 2022 08:13:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=floioqLQ0AYwUbMSYGTI6e7J38OKQ4pEDqgL/jKLp2vm9AZOMVZTPMKi1X3g2IA9ie0HcgcQjNVgLmidQJ6OJQsdJ3aH7kv8pY7AtuhtRbOclhm9NXF3gkmOTe6dMyaxLypBUG/XydwbkKjfwYR2bsKB8z0BBeQD1HdryK4GHtsa1L+yXarorRhKd59B4xcEIIyaWwYNwQpITK1303MgD8L7d4ugiVAGzI3Ra+rev/LBU+3Oknlh0pRPX/pOB983smHk5gWFcUIQLnrvl0gEMia7G7as8nl6du6v3y+Ak0/bLrgW5NuyboT53YECshS4rf2faUNP6cQB37rxlJr2wQ== 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=OQIBb0Df+qepmDSAXiHZ2bMjt9SUB/7h4fmvz8d3Y7s=; b=PftwUnIXcxPKCZ0JricAJBG7pmbQ7O55g0lWPt2d5XoEhaTXycm3UlNctLRa50Wc2tlsXzBpMbgt6Dh9J11hEMcHSaGoNjzGDJjW+Nr0yBlXCIJqEu4epby4Fp4W78IvY1OtxY1bKQ+3AedUTYme9I4puDpdcstb2A0VZvTfX5jvdmQ2HmY8fFXsVmYxLPG95StQuedhXkpg85XdXVpvuHm45qY8TVNzk/UlUKq7SmRs2btG/LAOxObxjXPZhOhERZYpbsbeVLi9U3bVDyzcr+ajupwhNK52Q9cBfel9lg0rSp5YDZi4cgyxK6bJcs1DQd5wPZUCAwYL8CCZfye6nA== 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=OQIBb0Df+qepmDSAXiHZ2bMjt9SUB/7h4fmvz8d3Y7s=; b=sjeGY/wM2VYpKpENFpVfOdMxcFlFx22bevg2rN4HmrXMri5/bfb/KLJWxVriVo6brevm0zAuzfGDniROCFYf4MBIZzVx0VaBSjiI88+30KQXQ+00a+vkSIBAd310nCn+idifoQfngJ+4+yQeEfeDQNh2AS5gm1EUnCg27jwLsIs= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by DM4PR10MB6013.namprd10.prod.outlook.com (2603:10b6:8:ae::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.18; Fri, 27 May 2022 08:13:10 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::86f:81ba:9951:5a7e]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::86f:81ba:9951:5a7e%2]) with mapi id 15.20.5293.013; Fri, 27 May 2022 08:13:10 +0000 Date: Fri, 27 May 2022 11:12:59 +0300 From: Dan Carpenter To: "Chen, Guchun" Cc: "kbuild@lists.01.org" , "Deucher, Alexander" , "kbuild-all@lists.01.org" , "lkp@intel.com" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [kbuild] drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1433 amdgpu_discovery_get_vcn_info() error: buffer overflow 'adev->vcn.vcn_codec_disable_mask' 2 <= 3 Message-ID: <20220527081259.GN2168@kadam> References: <202205271546.oV14N2r8-lkp@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: MR2P264CA0127.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::19) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ac852b9-5710-4756-40ef-08da3fb8bd1d X-MS-TrafficTypeDiagnostic: DM4PR10MB6013:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9Fcs58ZEMcgxPYVicl8odjsEdCMl+mK+J7ZXj2KL/VyXyOJGf8oaJQfhcZFkVKi6aDRVsmFtMyx3i5R3aE0GuclvnOZG7C6BWw8VoVY6w1NcmytH696i6bIZv2tekWzaIF+xlISsUVdJ/R76fLfNNR2woc+nkx8HZHL15w1w819qlR4Ql9DG63jxsQPtk6nlFeD1laqRy0FIOIJP2a6y7D7TFQC48p4g+jeO1g2ZwQf72674+CF/zwe1YccLTRWIdERdthiMLuH1s8fUN4jq1AQe/5U2AKQwif76c+aQ0kSQcx75hkIedwxkC2GvPh5rlEGZlNGlmsxA/bvORb32TOFQ2vk5RaJ4v8OcmnWydSWOBCc7uePUwr9KZw0wEquQEVKkUttqKhBaKnOGQlGNclR+7p/khSR0beR3SFOzGMR6wtJssUCDj4ZbC3nHGYxtl68uQcgs/7xhaoDxSlIHhL5121X4qG9Gp+MZdtlClTU8EV7qSd6mOEJWrTkn1+NzPg2wrM8MA1Lt9B3q8FZxLJAMhD3KzobC7BIqLTDqDiTYSc85NY/AkeZ4UAPMEU+DWGBbNE94bhHG82MqDaQz8+HL9Bi1gpB+Bz5099Bs0CZzKnimHcRauCf6KhAwblSSRWLG4hGWT/zm1JVlvqh9At09kkycDT8FIX+hlMPrm1V2lbSGK52ULoFb7LClkcTNGlT7gmS9xErtyfBz377Oww== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(366004)(6486002)(316002)(38100700002)(38350700002)(54906003)(6916009)(33656002)(6506007)(5660300002)(6666004)(44832011)(52116002)(26005)(6512007)(66556008)(83380400001)(8936002)(9686003)(33716001)(1076003)(66476007)(4326008)(186003)(2906002)(4744005)(508600001)(8676002)(86362001)(966005)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?meeI1XuVQNJDMtN+nefpEjB8b89+2DmKM2vuYYP+bwePaV2Hem9xW1NIoMEq?= =?us-ascii?Q?rDKKSTO7j7Y1dZldjeRKzBtx3VG8ALwGaZ9R/F0Wm0QJwfoTwLi/n9cEPUPb?= =?us-ascii?Q?gwPuCynB5PsxSMWossJ12ixfz0tGCh0DTdAeZ8P/Fp0BE2ir4VZ5LZO2Vv0l?= =?us-ascii?Q?GRwpJ7dArOLtd89baHP+MsyCCYtbJU5TCyJa7qfMJTrtKaEfaQ+zb6QRm66U?= =?us-ascii?Q?gKg4U2At4rrDP5bDQcwgCOw7MApPyaqHYhv+KIB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5rGeZsMofcsdQ6h9NWvUWgBvEhsTTUL1hyO0vmpBk0RcO7hUwO5v?= =?us-ascii?Q?U2iTMDicILaYGgqnwmg0ZsNXSrAgsdjFm48kXuoZ2eYkC5x1Ixx4LQUkn/gd?= =?us-ascii?Q?KV7MZVgOV7O3RVF6AMYmwxjdR64WUgKEXq9kwVtqrzRw89dHzzZ4LEA406dm?= =?us-ascii?Q?05abB/Q9oGrBzRbcRY2FfMhjLknLeXMmYKNP1YYIQRd3OThEqfIv8wvXMYro?= =?us-ascii?Q?0opoMloCI2hs/KHu83QkXPt5F+y0NGyJSM2AntpIf6e6QGJ6Dh1Hv+BfLZfJ?= =?us-ascii?Q?nJF/tluIA2xauc6AsbbrU3CyuSMeJd7IHxg6zpq6vvtINwDnMsncrgB5hnQo?= =?us-ascii?Q?5A+VGRWL1kEmkCralGzBhWCbQfDNjKXVUeyhX+IvSg3LPJYNULEr6SihJcKF?= =?us-ascii?Q?hRt1+N54J8NgfaOR1oSG5ts1qOamWJtpDdIuJNNHc1qZh28fMjuUFoBfq6Lp?= =?us-ascii?Q?fh9qzjIkdqrJYKFYGSWPD1jt2neMhIj4uv6g+GkhSSfDHg7HaEtLBGFGYF8m?= =?us-ascii?Q?zsByBMF0r4O7tas+f921Zj0qUIMLsd1sJgZ7SoX4B86+nyAJBRRHp7miLeVg?= =?us-ascii?Q?hmqqyKP1lBTwuU8nxwupOqYXkCkiLXI=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ac852b9-5710-4756-40ef-08da3fb8bd1d X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2022 08:13:10.6939 (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: xPCRb8f4QlILFT5F+rLrOnjlaIaJYIec8gMZniNJzSTGNaILV/ZxUipv+OoCiiMUswsKSOWBQjygMkMxZ32vd19eUoTeOHPtCTDKHODBfxc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6013 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.874 definitions=2022-05-27_02:2022-05-25,2022-05-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=664 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205270039 X-Proofpoint-ORIG-GUID: Df39yafjn1ONYdjDSAaJBYWaqLjsnV3K X-Proofpoint-GUID: Df39yafjn1ONYdjDSAaJBYWaqLjsnV3K X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 27, 2022 at 07:56:48AM +0000, Chen, Guchun wrote: > A patch was available already to protect against such scenario. > > https://patchwork.freedesktop.org/patch/486289/ , "drm/amdgpu/discovery: validate VCN and SDMA instances" > What? That's an unrelated patch and it has already been applied so I took it into consideration when doing my analysis. regards, dan carpenter