Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1470137rdb; Mon, 2 Oct 2023 10:22:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOGNu7/jUU6jOZDGsFDPRWzQPZ7SY2PBJwe7dBzWy2PxnaZutZwb5MMFtZeRVanN93eP8T X-Received: by 2002:a05:6808:1b06:b0:3a7:612:f62b with SMTP id bx6-20020a0568081b0600b003a70612f62bmr15778492oib.25.1696267351723; Mon, 02 Oct 2023 10:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696267351; cv=none; d=google.com; s=arc-20160816; b=Tvq4XQHy53Xhajn3IMaGAxmqcSCa9srJK6SHcIZ9boQqs95DKEhz3fxoZd8KGkXsDg tBNL7bjg2EORYhPIaBq73bqrSGVsKB7DxjWeKOhem+ATBa9Dkyr7q8blwTAlniMGLGLt IoXKIqfmVSDXp/VQ5txGt58bKjb8rA2L35SbnA39ShGdKv/Vo/i6ypDaMASlFjuU6b7e c5x6hAZhq7hMbcK6986avqCvoXrgeGa7pH4jFwin7ZPMyQ3mo9MJF3mxTKM7r818Dnl3 XxA5dB2+LRKLAQTbej9f+DyIMnvbu+0VQCPkkHJb3OFS1ixx0B0CQZ85g17M99ZTr9wZ E6Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3fQdtHTcIZFqz9pyHvM86qId7PCboP0/SwERmpmp9sI=; fh=4OYcI9gogYPvG8ZhdMd0pHs+2NMbTpMpjR3AbCIs5KM=; b=b9Ud0YH18bK0FH66U7/Giz8osPTtY+XUfv4Yrb7MNAn/9RjJLfjSgitsg4LC1JgjSw JRXAOxGeTz5NGy9cHm76xCXnIIL9QNXiEwRIHC3fyYhH1RBwBN5LvseNPrwvTakEH6IO T/xD1yaqodpuBduNxITsVlv2e/ArIeXajVU9KmaoJ0fO2Df+1igXk7Ve0D+4gD+C4SC9 z9lgwjW3l6HG7RRJVqJqjQ5JxK37jjD2P0CCpNef4mLBojqpKtwWvhzkfnCfeCwTY+wv wucdVOSEKEyeSTscxUJ31CoZ0abnpCTVdaOtscVLiexdIp5WtZPWwRHs2KjvZtnb87fX dvXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=ONz3hpW9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id mu11-20020a17090b388b00b00274e2ba0ca6si8760881pjb.134.2023.10.02.10.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=ONz3hpW9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E47E5809659A; Sun, 1 Oct 2023 23:20:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235495AbjJBGUk (ORCPT + 99 others); Mon, 2 Oct 2023 02:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjJBGUh (ORCPT ); Mon, 2 Oct 2023 02:20:37 -0400 Received: from vulcan.natalenko.name (vulcan.natalenko.name [104.207.131.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE290AB; Sun, 1 Oct 2023 23:20:33 -0700 (PDT) Received: from spock.localnet (unknown [94.142.239.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id 4C3141528555; Mon, 2 Oct 2023 08:20:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1696227627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3fQdtHTcIZFqz9pyHvM86qId7PCboP0/SwERmpmp9sI=; b=ONz3hpW9j8RF6uHRMXa68TnztyZYRzydfE2lxBSAEw0iZGjJQah4g7y/OA1hihmmfMifaG F5ngSTIh0qsF2PRoFRSjBmpHTTk6n4p26wiJ1Ow6qddOhl7GR+IymQ9YRZ9O+xwlO9ejiH DyXUk27v4ac8uJe1qZiUK2zyj3mUpsU= From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org, Bagas Sanjaya 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 =?ISO-8859-1?Q?K=F6nig?= , Linux Regressions Subject: Re: [REGRESSION] BUG: KFENCE: memory corruption in drm_gem_put_pages+0x186/0x250 Date: Mon, 02 Oct 2023 08:20:15 +0200 Message-ID: <2701570.mvXUDI8C0e@natalenko.name> In-Reply-To: References: <13360591.uLZWGnKmhe@natalenko.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12296369.O9o76ZdvQC"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Sun, 01 Oct 2023 23:20:55 -0700 (PDT) --nextPart12296369.O9o76ZdvQC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org, Bagas Sanjaya Date: Mon, 02 Oct 2023 08:20:15 +0200 Message-ID: <2701570.mvXUDI8C0e@natalenko.name> In-Reply-To: MIME-Version: 1.0 Hello. On pond=C4=9Bl=C3=AD 2. =C5=99=C3=ADjna 2023 1:45:44 CEST Bagas Sanjaya wro= te: > 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 follo= wing 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, cache= =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 8b557a4173114= d86eef7240f7a080080cfc4617e > > 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 func= tions for me. > >=20 > > The VGA adapter is as follows: 00:02.0 VGA compatible controller: Cirru= s Logic GD 5446 > >=20 >=20 > Do you have this issue on v6.4? No, I did not have this issue with v6.4. Thanks. =2D-=20 Oleksandr Natalenko (post-factum) --nextPart12296369.O9o76ZdvQC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEZUOOw5ESFLHZZtOKil/iNcg8M0sFAmUaYR8ACgkQil/iNcg8 M0tfyBAAnP91s5U8yswmuT3DF9ceF6Wd92FqSCJ7Sl0tmXBvCZEeGDYG+mHJroBS vU/TynG7tClvuIbjGWMYtPY6rYpQ7R76RfzPvFVgweHxvlMgFZ4c5WWIeJ6DlaIO uQ+MEH+lxO/kdG3J9wgnpMKwzqqozP4k80oXibP0vFeoerb/UVnk+YHtXsBollmi kgxel8QcEZrwac33ns2JoxgDFULEoeUVAdOxrutl84ZRDhzR2RED08lnvoAVf+E7 a8rwA3FQj4tg005l6X5Dgjs2QcAxDkpZ0A/n6ZoHdnMzO+3VBGfkOqGqOVlaOqYN cFjZ9rstkV6QA6mjAPAzoyPBASXK/jH0Aj2YAPZTSRh01H1BATbbduCp6Q/QtX4s PlrcWRprA22wyhhRsaMBAU0fjTgs4mVmZgdfflZR98Jzdb/J9SJFIl6bDlWE72C7 l7NtFubLbuK3PsDVmvBa/r+QOLMCIZDQcDwAa+k+rn7eT+Is5CQC5YCCzL5hfyTJ Nu2pjwVR6qDY+/OEasJj7QQvRrgDfB6Bwr6MDvj5ktT0GO17XizM/u2Jq/z+xKpa 8hqtszU5BHwIZdnt/MZTGCBghp7CoOKcV9uEUh13AKU5e0GiClb3DlpzWAhOF1KA gPE+PNMujL5D1SQ9k8cbEPoZuq91SStdFwEnk3e1nJMWeSjmmFs= =83J6 -----END PGP SIGNATURE----- --nextPart12296369.O9o76ZdvQC--