Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1241734rdb; Mon, 2 Oct 2023 03:55:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJ4kRZH13HYQ0hXB+vivsPCnC1LW13dWst0y26uAjzdwCweWGt6r6jMYUMCmsunVgb0Y7x X-Received: by 2002:a05:6e02:1288:b0:351:4f0c:b95d with SMTP id y8-20020a056e02128800b003514f0cb95dmr10533717ilq.22.1696244132315; Mon, 02 Oct 2023 03:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696244132; cv=none; d=google.com; s=arc-20160816; b=CIBqckwcKNUDaR2QuqKE8TGgvMOFKfKqZaCLZvovWrqJhC3HsgBKxp66OPk1NqVPX4 Nqaq/LNcNsHrJ5Dj15BI6pxLgpOmGDYpkdqEoT+6tOhTCMiW2TA2lznYm023DUAkYGdO uJt259z8Nk/2HUyxdVF2Lw280OWK3aHdVXD86E3PpaKDVDYQYMTh8Dc9d/W+XyWbk9aG FTDr8EqjZAykUdcoOtYbOcGrFhJHIr/m0++6O1tSGp2Jlh/tDw9cV4gIFjT+D7XWCtop 5hjPzCW9nhU/bRuNsc7GAjBUqTzBv30RYamVirhqXHjr57dM4C76QEE/h9r5sXjvHzsv 3n/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KNWyNJP4lTLAfJKNYgIufw8zEVj0jVndMUsMvmUcLVQ=; fh=lPVdLSQ/ZmUSEVhyK7Cl4vx4LFR0pjvGToygY2xlnxU=; b=wBniFvaUFuo5ckN9+1Nc5njgqNe0CRy3w347pyTCk14N7mVIkziU51Vm0l9XtgfzNi f1ayOaSAWY7SQDCyNj3rs3mQ8x2j/IbJMt7OBGMfqf66Y48Cta21Da+1hX9TK10K3sRV JxD0EkPG5eKnJNGPvxwXrI7NXwVXGtgGixl0fa1mfMk6ts2IlVrFhGOBUZuo5Cr5vjpu JGcixpf00YlQaqb8HJxUTErQUtD0NOgzpO4cR59Dh9JO5pSgWSiF8rCVehv8OjCTrgK3 GAc3ch7WMtdLGtyiG1rBDAa+JQ734KrIjzC2U8miyDkEkKeyyxmiZpEtWRCC0Ufb9x2e QFUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fbdTOs54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p19-20020a639513000000b00573f786103dsi24646891pgd.754.2023.10.02.03.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 03:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fbdTOs54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AC4BC801D802; Sun, 1 Oct 2023 17:01:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234245AbjJBAAm (ORCPT + 99 others); Sun, 1 Oct 2023 20:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjJBAAl (ORCPT ); Sun, 1 Oct 2023 20:00:41 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07248DC for ; Sun, 1 Oct 2023 17:00:36 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2788993edaaso5810734a91.0 for ; Sun, 01 Oct 2023 17:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696204836; x=1696809636; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KNWyNJP4lTLAfJKNYgIufw8zEVj0jVndMUsMvmUcLVQ=; b=fbdTOs54HRo7RntKQUvmqSleu+aFqBrG4Dfg2UDPFHGEtYU2FsEroguYglLSmb2zoh kVqPXby0KDOJQb8tIewJeXI90cuqhIcondafkIlJzl6i3rHkmQKCwbkeOT4PatxLS/Cf I1SLK7+YB5B8xPw+xe1wz3I4p9+8c/vwMV12B75RP8x91zdFJtQTWE61xah3PhqIslvt eXkP2qwpinxUSftM86lIHesj2MfGcBB8Q5t80ooYM899o9x5ZwJtXLoVjb3l24fgLVo7 3PyAVIuIcrdLQMbgP+4l35DBQlSALrCHEtdg0ax3tOxU1kGDPNGnHxWZknan+wLhka1n OtmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696204836; x=1696809636; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KNWyNJP4lTLAfJKNYgIufw8zEVj0jVndMUsMvmUcLVQ=; b=KfW0y6ZVTAQeTzLW3yIkE8MdrhSdv3FEkg5ufDtSS5jTjHFW0lMtCuQr/b6/blXQJY O8XHfYtPetoczkuiXJhtMdbxGib2spzH1ypVtyyWg87iY9NCX8opWvGTMgU4BrhptVzj CWIyKd703o8dvOPPvf94UoVA0t+DqGb+4xTo7g2/TQ+hg7aDOJIz0iay05rGM+OHpEjb Jp5XIMysycK81XAfxAJL4UQjuuz6/i8wTtRQvlMAK3JxJmQP6vIFVGM0XK9ao61NXvRw Kg6G5epdjVrHG2CInVZ7L57/6zdjbXDVuBt7tKSKHpbYMj4KrJAeTPz6n527ozpGMf2V WfBg== X-Gm-Message-State: AOJu0YzbZkVlQxtZl20r/1P0k9LjqPZLCFFr4B+/x5AtXkfUeF4PA0LP /kKnfLBwBHprSTvGexaQgdxxBrIBWx4= X-Received: by 2002:a17:90b:701:b0:274:6503:26d with SMTP id s1-20020a17090b070100b002746503026dmr7781874pjz.33.1696204836170; Sun, 01 Oct 2023 17:00:36 -0700 (PDT) Received: from debian.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id l20-20020a17090ac59400b0026cecddfc58sm5110368pjt.42.2023.10.01.17.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 17:00:35 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 61E0C8AE1552; Mon, 2 Oct 2023 07:00:28 +0700 (WIB) Date: Mon, 2 Oct 2023 07:00:26 +0700 From: Bagas Sanjaya To: Justin Piszcz , Linux Kernel Mailing List , Linux AMDGPU Cc: Alex Deucher , Dave Airlie , Christian =?utf-8?B?S8O2bmln?= , "Pan, Xinhui" Subject: Re: 6.5.5: UBSAN: radeon_atombios.c: index 1 is out of range for type 'UCHAR [1]' Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9Cj4cS5T/fTBOaXp" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Sun, 01 Oct 2023 17:01:31 -0700 (PDT) --9Cj4cS5T/fTBOaXp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 01, 2023 at 07:05:11PM -0400, Justin Piszcz wrote: > Hello, >=20 > Kernel: 6.5.5 > Arch: x86_64 > Distribution: Debian testing >=20 > Recently, I enabled UBSAN and noticed the following at boot time with > an older AMD graphics card, is this considered normal when using the > AMD firmware-linux-nonfree package? >=20 > [ .. ] > [Sun Oct 1 15:59:04 2023] ACPI: bus type drm_connector registered > [Sun Oct 1 15:59:04 2023] [drm] radeon kernel modesetting enabled. > [Sun Oct 1 15:59:04 2023] [drm] initializing kernel modesetting > (CEDAR 0x1002:0x68E1 0x1787:0x3000 0x00). > [Sun Oct 1 15:59:04 2023] ATOM BIOS: PARK > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: VRAM: 1024M > 0x0000000000000000 - 0x000000003FFFFFFF (1024M used) > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: GTT: 1024M > 0x0000000040000000 - 0x000000007FFFFFFF > [Sun Oct 1 15:59:04 2023] [drm] Detected VRAM RAM=3D1024M, BAR=3D256M > [Sun Oct 1 15:59:04 2023] [drm] RAM width 64bits DDR > [Sun Oct 1 15:59:04 2023] [drm] radeon: 1024M of VRAM memory ready > [Sun Oct 1 15:59:04 2023] [drm] radeon: 1024M of GTT memory ready. > [Sun Oct 1 15:59:04 2023] [drm] Loading CEDAR Microcode > [Sun Oct 1 15:59:04 2023] [drm] Internal thermal controller with fan con= trol > [Sun Oct 1 15:59:04 2023] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > [Sun Oct 1 15:59:04 2023] UBSAN: array-index-out-of-bounds in > drivers/gpu/drm/radeon/radeon_atombios.c:2620:43 > [Sun Oct 1 15:59:04 2023] index 1 is out of range for type 'UCHAR [1]' > [Sun Oct 1 15:59:04 2023] CPU: 5 PID: 1 Comm: swapper/0 Tainted: G > T 6.5.5 #13 55df8de52754ef95effc50a55e9206abdea304ac > [Sun Oct 1 15:59:04 2023] Hardware name: Supermicro X9SRL-F/X9SRL-F, > BIOS 3.3 11/13/2018 > [Sun Oct 1 15:59:04 2023] Call Trace: > [Sun Oct 1 15:59:04 2023] > [Sun Oct 1 15:59:04 2023] dump_stack_lvl+0x36/0x50 > [Sun Oct 1 15:59:04 2023] __ubsan_handle_out_of_bounds+0xc7/0x110 > [Sun Oct 1 15:59:04 2023] radeon_atombios_get_power_modes+0x87a/0x8f0 > [Sun Oct 1 15:59:04 2023] radeon_pm_init+0x13a/0x7e0 > [Sun Oct 1 15:59:04 2023] evergreen_init+0x13d/0x3d0 > [Sun Oct 1 15:59:04 2023] radeon_device_init+0x60a/0xbf0 > [Sun Oct 1 15:59:04 2023] radeon_driver_load_kms+0xb1/0x250 > [Sun Oct 1 15:59:04 2023] drm_dev_register+0xfc/0x250 > [Sun Oct 1 15:59:04 2023] radeon_pci_probe+0xd0/0x150 > [Sun Oct 1 15:59:04 2023] pci_device_probe+0x97/0x130 > [Sun Oct 1 15:59:04 2023] really_probe+0xbe/0x2f0 > [Sun Oct 1 15:59:04 2023] ? __pfx___driver_attach+0x10/0x10 > [Sun Oct 1 15:59:04 2023] __driver_probe_device+0x6e/0x120 > [Sun Oct 1 15:59:04 2023] driver_probe_device+0x1a/0x90 > [Sun Oct 1 15:59:04 2023] __driver_attach+0xd4/0x170 > [Sun Oct 1 15:59:04 2023] bus_for_each_dev+0x87/0xe0 > [Sun Oct 1 15:59:04 2023] bus_add_driver+0xf3/0x1f0 > [Sun Oct 1 15:59:04 2023] driver_register+0x58/0x120 > [Sun Oct 1 15:59:04 2023] ? __pfx_radeon_module_init+0x10/0x10 > [Sun Oct 1 15:59:04 2023] do_one_initcall+0x93/0x4a0 > [Sun Oct 1 15:59:04 2023] kernel_init_freeable+0x301/0x580 > [Sun Oct 1 15:59:04 2023] ? __pfx_kernel_init+0x10/0x10 > [Sun Oct 1 15:59:04 2023] kernel_init+0x15/0x1b0 > [Sun Oct 1 15:59:04 2023] ret_from_fork+0x2f/0x50 > [Sun Oct 1 15:59:04 2023] ? __pfx_kernel_init+0x10/0x10 > [Sun Oct 1 15:59:04 2023] ret_from_fork_asm+0x1b/0x30 > [Sun Oct 1 15:59:04 2023] > [Sun Oct 1 15:59:04 2023] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > [Sun Oct 1 15:59:04 2023] [drm] radeon: dpm initialized > [Sun Oct 1 15:59:04 2023] [drm] GART: num cpu pages 262144, num gpu > pages 262144 > [Sun Oct 1 15:59:04 2023] [drm] enabling PCIE gen 2 link speeds, > disable with radeon.pcie_gen2=3D0 > [Sun Oct 1 15:59:04 2023] [drm] PCIE GART of 1024M enabled (table at > 0x000000000014C000). > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: WB enabled > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: fence driver on ring 0 > use gpu addr 0x0000000040000c00 > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: fence driver on ring 3 > use gpu addr 0x0000000040000c0c > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: fence driver on ring 5 > use gpu addr 0x000000000005c418 > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: radeon: MSI limited to 32= -bit > [Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: radeon: using MSI. > [Sun Oct 1 15:59:04 2023] [drm] radeon: irq initialized. >=20 Please also open an issue on freedesktop tracker [1]. Thanks. [1]: https://gitlab.freedesktop.org/drm/amd/-/issues --=20 An old man doll... just what I always wanted! - Clara --9Cj4cS5T/fTBOaXp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZRoIGgAKCRD2uYlJVVFO o6noAP9HuoiP1/nHj4nq21Ci3xQjxNOjpnmdsHZA9nK1n88oSgEAwg++QOZd3SMo pAPIydICrjcT3dJuOws5y2O5NcBXng4= =1sWu -----END PGP SIGNATURE----- --9Cj4cS5T/fTBOaXp--