Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1921284rwp; Thu, 13 Jul 2023 20:06:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHvk6SFKIwMdMuZ2UNfsNuvZCjtkRgBSQUM+UeTlvfP/1X8HU59vO4T1eodsFfnQOhKr+ne X-Received: by 2002:a37:b443:0:b0:765:5415:9f19 with SMTP id d64-20020a37b443000000b0076554159f19mr3664257qkf.7.1689303988074; Thu, 13 Jul 2023 20:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689303988; cv=none; d=google.com; s=arc-20160816; b=gqDaBxEdcUxJ8PC8u1j8lAVLGOCHF6wT4cdcgSIf6+7eA/21GMsZLbYXofVRXPWzhG 3yrGKyo1uyP70NT17uZuqNA2RiPfd1dL2zK446wp4NmdQFiahf3q+EGhQjLyggWG2Irz N43S4vOzVjG5S/wBqdAVV78OBLToE+E9+lCB4a3BKtcezzawQmOGqlc+Mah5JlMmpWDE uaN8D29XObSbhh0dY5TeKDVuCcj2I7O7nyk+PxJETDGxohSLe3R+UUw4nxnatret7Ern rKuTeWJaTF6FDRwvZTq1JmRidaALG65hLNAOYO0VLjP/aOmRB/wHNGsfnXflHS5fbwan VwgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=q8KYuBNBmqF7O05nU0pVGS+9JnK+Wjw17IsXeywtKyw=; fh=CEwwLZOnKCn7VUg89Y3JDcbRc55SjjwjC/ISUYka1W8=; b=pY/CFRf73SuNsY2EFFA9NAJfg2qmoBvHJCqKGk2/5l6LAu4oxBCDtYimKk0AhRYovE cmhkOXctuaDPhteJjqX/E6M/6Jx5z4ZQwLzm1sbYf/xWVQT5bM2XpqFIoo7U6QKxNY+P qjzmIEmISZQCWuzKXOWrgoVtBXR5Xx2ht0t7q8QsfyzzQXQY9XsGC+mBbLMwQYC++5CX rORXzn6eIMCgdUH4ckK9W9x5koi2pd45LY/znuivod7mfo7OTT3WUW20GWOBmFaIvZN4 oeSybLerhO8eXX+FC55HCdvHI+HdFwZ6XN/VBCUjtrSkx1wrUUpoImiSWvAQmwfK+GHI yHdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jEgL1nz7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a656456000000b0053fc290934dsi5928584pgv.361.2023.07.13.20.06.15; Thu, 13 Jul 2023 20:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jEgL1nz7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234529AbjGNCua (ORCPT + 99 others); Thu, 13 Jul 2023 22:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234465AbjGNCu2 (ORCPT ); Thu, 13 Jul 2023 22:50:28 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20BF02D48 for ; Thu, 13 Jul 2023 19:50:27 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-39ca120c103so1123172b6e.2 for ; Thu, 13 Jul 2023 19:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689303026; x=1691895026; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=q8KYuBNBmqF7O05nU0pVGS+9JnK+Wjw17IsXeywtKyw=; b=jEgL1nz7BCPl8R4u3awGnlx9KA6+ZGibUso7cKsktFfdBgFIVvV4w9qmO1aeCgaRPV KFgpgVpQsjhXZDsTZvkDdv+LeBVvnxfdQaFPVyQIyvqajCcuSZHzdXDaCPYSz0XdjWTh tEo1G8I/injKIpENFF5NUkUvHZxk62eksWxl7T4LKh6uCWEHsj/Ql86lG6VvguA+dckI cM8Nywsq2jnbPdIWMfqWRSsDdDqk60vLYJd+XPNKLxLQKqZ7uFUaRVvZBAFbKOt3caIh eqpgOnSiPGT6ICrVixWan/pNmpRBvwqpf6A1dSS2BXrhNvBjdHW2ZiouONQriCjmYd0P GNdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689303026; x=1691895026; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=q8KYuBNBmqF7O05nU0pVGS+9JnK+Wjw17IsXeywtKyw=; b=c/pAjYXCdnCcNfsDPJJJTamXuUBDh11q+/lQiQpf2yZZVT/p9E3d6w+V/bNjMbP/Mx YY2MHxSiVKAutvYmkdP4P4l2IFxpERW/pEOHI8lJVOWZV/sScqPPsxRhNqdy9S+59/ca LowMh60JUu29WTjxI7tYai6Usw/tOdZDVruD4OGpr5S1c7yyuFDsRiTe6lm19R0EoGgI L/TwhIkZ8+IXxhQ4ABHy8xRhmM4aFpcYHBm6uQBkuz7kj712vpXYEOik/sYxdnFSQOnq Y9K/+ZbLwvebtb+4sgylUVOQfgMmOkGvkFXzr1mKCp+BmHS/3vL5+nRzeSNPs7sGElph nGEA== X-Gm-Message-State: ABy/qLbysGY2jFSXx2lI/wW+Rlr9n4HeDQxz/vfHJaqKm7PFWYDaLH9l 9acTJsHfqHq4b52upY8pvV4= X-Received: by 2002:a05:6358:908:b0:135:6793:62bf with SMTP id r8-20020a056358090800b00135679362bfmr3363270rwi.11.1689303026141; Thu, 13 Jul 2023 19:50:26 -0700 (PDT) Received: from [192.168.0.104] ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id n21-20020aa78a55000000b0067acbc74977sm6224159pfa.96.2023.07.13.19.50.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 19:50:25 -0700 (PDT) Message-ID: <5f8d4aa5-3b23-8965-57e3-a28bd9aa8e87@gmail.com> Date: Fri, 14 Jul 2023 09:50:17 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , Taketo Kabe , "Steven Rostedt (Google)" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Cc: Linux Kernel Mailing List , Linux Regressions , Linux AMDGPU From: Bagas Sanjaya Subject: Fwd: radeon.ko/i586: BUG: kernel NULL pointer dereference, address: 00000004 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 Hi, I notice a regression report on Bugzilla [1]. Quoting from it: > Origin report: https://gitlab.freedesktop.org/drm/amd/-/issues/2615 > > Compile with CONFIG_DRM_RADEON=m on 32bit, > kernel panics on radeon.ko load. > > On slow machine, there is 70 second window between > login: prompt on raw VGA tty1 and > radeon.ko KMS console load. > > When logging in on tty1 during this window, kernel panics. > (Fast machine loads KMS console before login: prompt, so the problem is masked) > > [ 466.298267] [drm] radeon kernel modesetting enabled. > [ 466.371716] radeon 0000:01:00.0: vgaarb: deactivate vga console > [ 466.476920] Console: switching to colour dummy device 80x25 > [ 466.661163] [drm] initializing kernel modesetting (RV280 0x1002:0x5960 0x148C:0x2094 0x01). > [ 466.672175] [drm] Forcing AGP to PCI mode > [ 466.848372] [drm] Generation 2 PCI interface, using max accessible memory > [ 466.859389] radeon 0000:01:00.0: VRAM: 128M 0x00000000C0000000 - 0x00000000C7FFFFFF (128M used) > [ 466.869191] radeon 0000:01:00.0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF > [ 467.022337] [drm] Detected VRAM RAM=128M, BAR=128M > [ 467.041498] [drm] RAM width 64bits DDR > [ 467.153587] workqueue: Failed to create a rescuer kthread for wq "ttm": -EINTR > [ 467.154126] [drm:radeon_ttm_init [radeon]] *ERROR* failed initializing buffer object driver(-12). > [ 467.176714] radeon 0000:01:00.0: Fatal error during GPU init > [ 467.361714] [drm] radeon: finishing device. > [ 467.431560] [drm] radeon: cp finalized > [ 467.495402] radeon: probe of 0000:01:00.0 failed with error -12 See Bugzilla for the full thread and attached patches that fixes this regression. Later, when bisecting, the reporter got better kernel trace: > [ 469.825305] BUG: kernel NULL pointer dereference, address: 00000004 > [ 469.830502] #PF: supervisor read access in kernel mode > [ 469.830502] #PF: error_code(0x0000) - not-present page > [ 469.830502] *pde = 00000000 > [ 469.830502] Oops: 0000 [#1] PREEMPT SMP > [ 469.830502] CPU: 0 PID: 365 Comm: systemd-udevd Not tainted 5.14.0-221.el9.v1.i586 #1 > [ 469.830502] Hardware name: System Manufacturer System Name/ALADDIN5, BIOS 0626 07/15/95 > [ 469.830502] EIP: _raw_spin_lock_irqsave+0x1f/0x40 > [ 469.830502] Code: cc cc cc cc cc cc cc 3e cc cc cc 3e 55 89 c1 89 55 89 c1 89 5b fa 64 ff 5b fa 64 ff c2 31 d2 be c2 31 d2 be 89 d0 3e 0f 89 d0 <3e> 0f 89 d8 5b 5e 89 d8 5b 5e 26 00 90 89 26 00 90 89 b7 15 75 ff > [ 469.830502] EAX: 00000000 EBX: 00000246 ECX: 00000004 EDX: 00000000 > [ 469.830502] ESI: 00000001 EDI: c3e71c40 EBP: c3e71c34 ESP: c3e71c2c > [ 469.830502] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00010046 > [ 469.830502] CR0: 80050033 CR2: 00000004 CR3: 057fa000 CR4: 00000010 > [ 469.830502] Call Trace: > [ 469.830502] kthread_flush_worker+0x52/0xa0 > [ 469.830502] ? kthread_should_park+0x40/0x40 > [ 469.830502] drm_crtc_vblank_off+0x1d7/0x230 [drm] > [ 469.830502] radeon_crtc_dpms+0x197/0x1b0 [radeon] > [ 469.830502] radeon_crtc_disable+0x16/0xa0 [radeon] > [ 469.830502] __drm_helper_disable_unused_functions+0x74/0xc0 [drm_kms_helper] > [ 469.830502] drm_helper_disable_unused_functions+0x3c/0x50 [drm_kms_helper] > [ 469.830502] radeon_fbdev_init+0xb0/0x130 [radeon] > [ 469.830502] radeon_modeset_init+0x25d/0x320 [radeon] > [ 469.830502] radeon_driver_load_kms+0xc4/0x240 [radeon] > [ 469.830502] drm_dev_register+0xb4/0x1a0 [drm] > [ 469.830502] radeon_pci_probe+0xc0/0x100 [radeon] > [ 469.830502] pci_device_probe+0xbc/0x150 > [ 469.830502] really_probe+0xb7/0x350 > [ 469.830502] __driver_probe_device+0x109/0x1e0 > [ 469.830502] driver_probe_device+0x1f/0x90 > [ 469.830502] __driver_attach+0x8a/0x1b0 > [ 469.830502] ? __device_attach_driver+0x100/0x100 > [ 469.830502] bus_for_each_dev+0x58/0x90 > [ 469.830502] driver_attach+0x19/0x20 > [ 469.830502] ? __device_attach_driver+0x100/0x100 > [ 469.830502] bus_add_driver+0x12f/0x1d0 > [ 469.830502] driver_register+0x79/0xd0 > [ 469.830502] ? 0xf7dde000 > [ 469.830502] __pci_register_driver+0x52/0x60 > [ 469.830502] radeon_module_init+0x5c/0x1000 [radeon] > [ 469.830502] do_one_initcall+0x3e/0x1c0 > [ 469.830502] ? __vunmap+0x20b/0x2a0 > [ 469.830502] ? __vunmap+0x20b/0x2a0 > [ 469.830502] ? kmem_cache_alloc_trace+0x38/0x440 > [ 469.830502] do_init_module+0x52/0x260 > [ 469.830502] load_module+0x930/0x9b0 > [ 469.830502] __ia32_sys_init_module+0x15d/0x180 > [ 469.830502] do_int80_syscall_32+0x2e/0x80 > [ 469.830502] entry_INT80_32+0xf0/0xf0 > [ 469.830502] EIP: 0xb79e7e4e > [ 469.830502] Code: 0f 83 d6 06 00 00 c3 66 90 66 90 90 57 56 53 8b 7c 24 20 8b 74 24 1c 8b 54 24 18 8b 4c 24 14 8b 5c 24 10 b8 80 00 00 00 cd 80 <5b> 5e 5f 3d 01 f0 ff ff 0f 83 a4 06 00 00 c3 66 90 90 53 8b 54 24 > [ 469.830502] EAX: ffffffda EBX: b5526010 ECX: 0020d79c EDX: b7c26274 > [ 469.830502] ESI: b7c20295 EDI: b7c2ddd8 EBP: 018af7c0 ESP: bfd2f810 > [ 469.830502] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000292 > [ 469.830502] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib radeon(+) nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 gpu_sched drm_buddy i2c_algo_bit drm_display_helper cec drm_ttm_helper ppdev ttm rfkill ip_set nf_tables libcrc32c nfnetlink drm_kms_helper pcspkr syscopyarea e100 sysfillrect parport_pc sysimgblt mii fb_sys_fops parport qrtr drm fuse ext4 mbcache jbd2 sd_mod t10_pi sr_mod crc64_rocksoft_generic cdrom crc64_rocksoft crc64 sg ata_generic pata_ali libata serio_raw > [ 469.830502] CR2: 0000000000000004 > [ 469.830502] ---[ end trace 30555bd5ee4bee23 ]--- > [ 469.830502] EIP: _raw_spin_lock_irqsave+0x1f/0x40 > [ 469.830502] Code: cc cc cc cc cc cc cc 3e cc cc cc 3e 55 89 c1 89 55 89 c1 89 5b fa 64 ff 5b fa 64 ff c2 31 d2 be c2 31 d2 be 89 d0 3e 0f 89 d0 <3e> 0f 89 d8 5b 5e 89 d8 5b 5e 26 00 90 89 26 00 90 89 b7 15 75 ff > [ 469.830502] EAX: 00000000 EBX: 00000246 ECX: 00000004 EDX: 00000000 > [ 469.830502] ESI: 00000001 EDI: c3e71c40 EBP: c3e71c34 ESP: c3e71c2c > [ 469.830502] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00010046 > [ 469.830502] CR0: 80050033 CR2: 00000004 CR3: 057fa000 CR4: 00000010 > [ 469.830502] Kernel panic - not syncing: Fatal exception > [ 469.830502] Kernel Offset: disabled > [ 469.830502] ---[ end Kernel panic - not syncing: Fatal exception ]--- Anyway, I'm adding it to regzbot to ensure it doesn't fall through cracks unnoticed: #regzbot introduced: b39181f7c6907d https://bugzilla.kernel.org/show_bug.cgi?id=217669 #regzbot title: FTRACE_MCOUNT_MAX_OFFSET causes kernel NULL pointer dereference and virtual console (tty1) freeze #regzbot link: https://gitlab.freedesktop.org/drm/amd/-/issues/2615 Thanks. [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217669 -- An old man doll... just what I always wanted! - Clara