Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp116736iof; Sun, 5 Jun 2022 22:52:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBDH4yoalriyUDHdepD8zvhImxWbewrqiB16nL403EPlw51TBGcfq3Lle1O3oIDSCc65Yl X-Received: by 2002:a63:1543:0:b0:3fa:8e73:d7a5 with SMTP id 3-20020a631543000000b003fa8e73d7a5mr19569646pgv.160.1654494765370; Sun, 05 Jun 2022 22:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654494765; cv=none; d=google.com; s=arc-20160816; b=UlIp/d4BzEMd5aTlAQJPoHO0MMInf6NSx+iPRDgYKXsFndlDBrlpY0vbLehcqfO7vL 5h+7RcYXsXLy6u+4/SHYCN8iCvSyckhlEgu/0y+kVYkwG1tjbRDTexx/1selBkDzUfJl DnB2IilK1dHRL7zffoFnN2fqjhijXWDFo6VVjzsYKBaekaMMGOBOe8J30lfM01s2feRn 5gWSZBgPObXE29DBN1Tq5HnsBigMv8oP+cHoXL/u8eSjfgtvFLZmOCqSW3q5bWwpUuk8 M1FhseTkF9Kn6qzbD8P7Vr+Taywj3d1THvRrSCW+xIF6WeFHniBK5PCOFalQuiG16ZER D/FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XY4Ex8tPNSZJtfNWP8w9y7RN15sCbOEiAJmWuQuEHOI=; b=cu1ahdRjH1nNdsvfHF0xa8zDDCtMaTYSYz5Mq1xsOBsqwBWcciLop7Nrlgbu+nKlIh NVQQwfapK8caDMzxiB/LYDRlwlircbPDDGOe8H/UxjTI+mhQXJPrVUxH8JBknBzQC0P3 3ulHvZ6xDmrMU5H3QvIW9TovajG/5pJOJFU8+1reDJEoQKCpRGr/g8nCYXoOnG4iKHPv 30sfSejrGoRqJwZwPLM1XnNKXdyD4dMXdWE+OvW2PxDQfsLvZP8emeyqXO4tZhmCLgj6 SeOVZR9ChafH8tnxN71vKACf2UsRymhUN5eNhTcOuucCRDlQRs4Qq/f9NxqLcEtL2cTX X7Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ESskSfAc; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c25-20020a631c19000000b003fc28123fbfsi20250241pgc.345.2022.06.05.22.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:52:45 -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=@gmail.com header.s=20210112 header.b=ESskSfAc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F1902CB4D4; Sun, 5 Jun 2022 21:43:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235842AbiFBOZN (ORCPT + 99 others); Thu, 2 Jun 2022 10:25:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234632AbiFBOZL (ORCPT ); Thu, 2 Jun 2022 10:25:11 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1267B7CD for ; Thu, 2 Jun 2022 07:25:09 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id h188so6738819oia.2 for ; Thu, 02 Jun 2022 07:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XY4Ex8tPNSZJtfNWP8w9y7RN15sCbOEiAJmWuQuEHOI=; b=ESskSfAcQdzR8x8+xWNoii8k4hBBU28GAsMLaQ7dDxitmVaVuZyx28sZeOxcT1O1cA inVTNTA0GYmbqR4FAEZNX9k9ceVEnH2KuLYqdccBzf5LGkw5XeHKotzyo3fW8gP+7Vsz NmJPTjhjkzjOEFtm8ApYIppujhvFoJ/ZPMNbUpZ08xmQ+ncdH+Ie51qNa48kexQ99vmn 2r4HK6YMep/YzZUsDnzjO8q92Q67URxkT83SNZVFZfvrEr0NhX+JmUKqYQzRZZD5jGPl bFXbTZ/q0GPbuwvjVAMlzk/eOl0haO7BUJf/bj3vAWB1/c/a77eCe2oSz2PKQudbCln3 cDLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XY4Ex8tPNSZJtfNWP8w9y7RN15sCbOEiAJmWuQuEHOI=; b=rx3aRX12aaIh2FNY5OHQSx88r39TbMJ5ZfGQsieNwSJuxpFILcW1ANnIzklUiIMKyb /DtlaHZUyOs8X7FKhJ+glNzB0hy725wyrAvbYO7rsawoWpiUwJOFHAqp/ePHMMlMP4l5 DXGzjU4Jf/uZTG1j2cCvrjPTIivFw3x2qj8nzuffllzwJYFlCTEB/LOOkKHGWAAz5XWh faQHJBoYqhqBNHEd/bUTo/QSQDUCq+NqB6KOjz/jOO6/ki8zfalIjoXRJxfZswNrrgfE ZhBMEXuISa6shYhhhcMuTm02Nrbuk8uC4t/exo+43jncACkv+m5kR/JqsvIeLM30zfA2 /uwA== X-Gm-Message-State: AOAM531Q5fwsOlu190KDC4YWjZdflux6uTDe0OTmwyOrkDwjwvdEqbrU IjO89iEYGMWJg6Madr5qyCUktVPxtOX1N7dWi2c= X-Received: by 2002:a05:6808:114f:b0:32b:1be0:2316 with SMTP id u15-20020a056808114f00b0032b1be02316mr17523141oiu.200.1654179909035; Thu, 02 Jun 2022 07:25:09 -0700 (PDT) MIME-Version: 1.0 References: <202205271546.oV14N2r8-lkp@intel.com> <20220602115046.GH2168@kadam> In-Reply-To: <20220602115046.GH2168@kadam> From: Alex Deucher Date: Thu, 2 Jun 2022 10:24:58 -0400 Message-ID: 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 To: Dan Carpenter Cc: =?UTF-8?Q?Ernst_Sj=C3=B6strand?= , kbuild-all@lists.01.org, kernel test robot , kbuild@lists.01.org, LKML , amd-gfx list , Alex Deucher Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Thu, Jun 2, 2022 at 7:51 AM Dan Carpenter wro= te: > > On Thu, Jun 02, 2022 at 08:26:03AM +0200, Ernst Sj=C3=B6strand wrote: > > Dan: I also ran Smatch which resulted in the following discussion: > > > > https://lists.freedesktop.org/archives/amd-gfx/2022-May/079228.html > > Since the bounds check is dead code which does not make sense and is not > required, another idea would be to just delete it. It wouldn't be dead code if AMDGPU_MAX_VCN_INSTANCES ever increased. Alex > > regards, > dan carpenter >