Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1241964rdb; Mon, 2 Oct 2023 03:56:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0Q/9oNHpUH00lm1UfaWEeVlWDdkuashrjz7Ik9Q7TcsUPpyA/83E50xvc9i3abGPaDfSX X-Received: by 2002:a05:6808:b29:b0:3a9:9ce5:83a9 with SMTP id t9-20020a0568080b2900b003a99ce583a9mr10967352oij.50.1696244168899; Mon, 02 Oct 2023 03:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696244168; cv=none; d=google.com; s=arc-20160816; b=dpy0qwbCZTdCZvXshHg1EaSFcHpVI3SiM+f0iU+EsywkKEKYGW0aGiU1P+fqMBClPH PIM7aRKvLe7ELxWC7vu/i+0gKUsQsYkFvfiWJl4vGbcuEPHRJfwmXNlmz8RFqUpM8m72 KqW7DecSFPxosTlwf4VYdUAIqiWtUhZLi8U51qT3ndjYU5n3ZmAfZklFvOyLeP2zHRA4 uNAqETOAGIHJTarWKTd5p7yH3LkPsPWvXyBdhkMOlbF+fK2tNwwrPJg6lmGeKsj53FX9 tVugJqKl67o4KaepZMuJLJkxTHKKnFRMxQYn1AJTJTZHTnBQq3e5BvRaTSNqaJM/N2XQ vDOg== 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=GMI92IRtHLN/QzcAW884cPXY3nDWtnrgER4ifF4JNpE=; fh=STcpPXXHGADDdTxYxs/tSji42YVQ5moVsxoGGKIfe5s=; b=dKScsrr+7uPZ5BIKvG1+7fjjIt26y3v8zEzXFiZpx58YCMOdqi6uTJFwQEBGPk/Fb5 ZW8aWVDGwBU2fb06AfOMw1nQrh1/jopn2HRFSt2Hkez/b/PEfaI1sDyhrO4Mq0PdTtcO 6cSxMj0wRRijL4daNUxlyIGcGAUWwfiYnO+QeTkDBOdBZi1HTDhLjkEhhnuCOS5o4BZv yFPVk+/gSKs3MBnrTogPsPQt/Wi/uy+a8pcLGUPlgDCcfY5yQDE28bI31JOPYFEQSsU+ Q1zW/cuqGVEiZkUsyNanZb8hGgLoCjtwl4nbow7kYqznN52lCQyY82yHFU1sxOUJQufc x1Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GgP56gy8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bk13-20020a056a02028d00b00584ac83e116si16603355pgb.321.2023.10.02.03.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 03:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GgP56gy8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id B59C280755FE; Mon, 2 Oct 2023 03:42:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236475AbjJBKmz (ORCPT + 99 others); Mon, 2 Oct 2023 06:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236429AbjJBKmy (ORCPT ); Mon, 2 Oct 2023 06:42:54 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166A89D; Mon, 2 Oct 2023 03:42:52 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6910ea9cca1so12803491b3a.1; Mon, 02 Oct 2023 03:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696243371; x=1696848171; 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=GMI92IRtHLN/QzcAW884cPXY3nDWtnrgER4ifF4JNpE=; b=GgP56gy8plSai/3H05tzBotQUonmBKMbvUA48hirYpUkAFYow0vfQMBmuhy4eVbpzJ ODMn716W2fuWoP5fVHvZcnB0kA4ouUkUEiK9AOkJ1kdDVZryFikq4qAtLU4oMQzUjvAm PqLdAaZsEdffGWj0/uCfGy6o8XdmYdmzYewsNHPxkXLuFnrDC5I+KJFErgBXpRJ4jBpW R0TSVWxNLTHlSndvJgpUB6OR42Fxd+51juNXgcsQx/muT81GAAI2lRWR5SnM6f8gJ6OF 0K62pRb+9ZVpc0IXVqxfxSgB4UfwTjH+EytLDL2jtyYUpGG6Zkidp58nrnbBfO7KV6c9 VuGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696243371; x=1696848171; 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=GMI92IRtHLN/QzcAW884cPXY3nDWtnrgER4ifF4JNpE=; b=rD/91KOD9eVs7hKdXyN6i/m6DuhB4k14G1DTbNGXHzKMzKo6ppP1Rs3VQFnMUFmrGN /dBOXwHdIm/rSbW+xMnz+YniVHAo876UR41XBM777q+DwJlzsQPCmI3NxBLbiDJjyqKf JQje8q0nRZIxdtdsFR2Tiq8iQc7GqJSFXKy1Pxt5AQ4vPHu1mfPUIrPbHhoJiVT7Hwj0 oXfEpY0z2X4n3AcEx8gTJNtCR97i0KPJCWHYZN9CAdZcwsKMzBpSF5rpGxqlfnt4uyOG +95UV+vJ3gYtCe6U5zHr7JiFRVK6xfmb8CPYejM3XePQyrgpDTk4bIOtRsfEw5BiWNEc a0PA== X-Gm-Message-State: AOJu0YwiWc2+aH268smRbssG6mUxNYvtVMHSQXtZIUqEEUZbqTA6vtAz 02kg+PKcMvkr9UrE4w1O2OM= X-Received: by 2002:a05:6a00:178f:b0:68e:2eed:5ab0 with SMTP id s15-20020a056a00178f00b0068e2eed5ab0mr12390704pfg.7.1696243371433; Mon, 02 Oct 2023 03:42:51 -0700 (PDT) Received: from debian.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id d17-20020aa78e51000000b0064d74808738sm19140874pfr.214.2023.10.02.03.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 03:42:49 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id CC01688F0C53; Mon, 2 Oct 2023 17:42:42 +0700 (WIB) Date: Mon, 2 Oct 2023 17:42:42 +0700 From: Bagas Sanjaya To: Oleksandr Natalenko , linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , Linux Regressions Subject: Re: [REGRESSION] BUG: KFENCE: memory corruption in drm_gem_put_pages+0x186/0x250 Message-ID: References: <13360591.uLZWGnKmhe@natalenko.name> <2701570.mvXUDI8C0e@natalenko.name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+4x4782bxzLSt9mO" Content-Disposition: inline In-Reply-To: <2701570.mvXUDI8C0e@natalenko.name> X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 03:42:57 -0700 (PDT) --+4x4782bxzLSt9mO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 02, 2023 at 08:20:15AM +0200, Oleksandr Natalenko wrote: > Hello. >=20 > On pond=C4=9Bl=C3=AD 2. =C5=99=C3=ADjna 2023 1:45:44 CEST Bagas Sanjaya w= rote: > > On Sun, Oct 01, 2023 at 06:32:34PM +0200, Oleksandr Natalenko wrote: > > > Hello. > > >=20 > > > I've got a VM from a cloud provider, and since v6.5 I observe the fol= lowing kfence splat in dmesg during boot: > > >=20 > > > ``` > > > BUG: KFENCE: memory corruption in drm_gem_put_pages+0x186/0x250 > > >=20 > > > Corrupted memory at 0x00000000e173a294 [ ! ! ! ! ! ! ! ! ! ! ! ! ! ! = ! ! ] (in kfence-#108): > > > drm_gem_put_pages+0x186/0x250 > > > drm_gem_shmem_put_pages_locked+0x43/0xc0 > > > drm_gem_shmem_object_vunmap+0x83/0xe0 > > > drm_gem_vunmap_unlocked+0x46/0xb0 > > > drm_fbdev_generic_helper_fb_dirty+0x1dc/0x310 > > > drm_fb_helper_damage_work+0x96/0x170 > > > process_one_work+0x254/0x470 > > > worker_thread+0x55/0x4f0 > > > kthread+0xe8/0x120 > > > ret_from_fork+0x34/0x50 > > > ret_from_fork_asm+0x1b/0x30 > > >=20 > > > kfence-#108: 0x00000000cda343af-0x00000000aec2c095, size=3D3072, cach= e=3Dkmalloc-4k > > >=20 > > > allocated by task 51 on cpu 0 at 14.668667s: > > > drm_gem_get_pages+0x94/0x2b0 > > > drm_gem_shmem_get_pages+0x5d/0x110 > > > drm_gem_shmem_object_vmap+0xc4/0x1e0 > > > drm_gem_vmap_unlocked+0x3c/0x70 > > > drm_client_buffer_vmap+0x23/0x50 > > > drm_fbdev_generic_helper_fb_dirty+0xae/0x310 > > > drm_fb_helper_damage_work+0x96/0x170 > > > process_one_work+0x254/0x470 > > > worker_thread+0x55/0x4f0 > > > kthread+0xe8/0x120 > > > ret_from_fork+0x34/0x50 > > > ret_from_fork_asm+0x1b/0x30 > > >=20 > > > freed by task 51 on cpu 0 at 14.668697s: > > > drm_gem_put_pages+0x186/0x250 > > > drm_gem_shmem_put_pages_locked+0x43/0xc0 > > > drm_gem_shmem_object_vunmap+0x83/0xe0 > > > drm_gem_vunmap_unlocked+0x46/0xb0 > > > drm_fbdev_generic_helper_fb_dirty+0x1dc/0x310 > > > drm_fb_helper_damage_work+0x96/0x170 > > > process_one_work+0x254/0x470 > > > worker_thread+0x55/0x4f0 > > > kthread+0xe8/0x120 > > > ret_from_fork+0x34/0x50 > > > ret_from_fork_asm+0x1b/0x30 > > >=20 > > > CPU: 0 PID: 51 Comm: kworker/0:2 Not tainted 6.5.0-pf4 #1 8b557a41731= 14d86eef7240f7a080080cfc4617e > > > Hardware name: Red Hat KVM, BIOS 1.11.0-2.el7 04/01/2014 > > > Workqueue: events drm_fb_helper_damage_work > > > ``` > > >=20 > > > This repeats a couple of times and then stops. > > >=20 > > > Currently, I'm running v6.5.5. So far, there's no impact on how VM fu= nctions for me. > > >=20 > > > The VGA adapter is as follows: 00:02.0 VGA compatible controller: Cir= rus Logic GD 5446 > > >=20 > >=20 > > Do you have this issue on v6.4? >=20 > No, I did not have this issue with v6.4. >=20 Then proceed with kernel bisection. You can refer to Documentation/admin-guide/bug-bisect.rst in the kernel sources for the process. --=20 An old man doll... just what I always wanted! - Clara --+4x4782bxzLSt9mO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZRqeogAKCRD2uYlJVVFO o2E/AP4mkPIRMN1pxgfPOxihOOpbAOD45QVbnFzi6dWZJJX9QwD/RduMVyDlPWBa eprgw5T0M5sCo+65kgP0ZWUTWNGBvQM= =k2Qb -----END PGP SIGNATURE----- --+4x4782bxzLSt9mO--