Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp340034rdb; Thu, 5 Oct 2023 07:30:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiw1YDY/uWlpRSezYfUVTxtjMCAmGq2qGoOmaaYnUgf240zd/p3b5m2G4fQmS5CdXokIQV X-Received: by 2002:a17:90a:9dc2:b0:268:ef84:b0cd with SMTP id x2-20020a17090a9dc200b00268ef84b0cdmr4882205pjv.18.1696516236156; Thu, 05 Oct 2023 07:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516236; cv=none; d=google.com; s=arc-20160816; b=i4DJ3/5TV1RKtQxFCBBlRVM/QK7Ve9EbpOJxQHJ2Auu0UjEhQkJ8oMTOzhD4rrPRnT mWEYLH4Zu7F/clSu6p9rukfJIS6pmroQH3Pl6IdWgCAmRUFK9PhtgL+HcIQZtSSTBGtY yfekrITCchB0reQb2HS2GuETYvqOBsHEG1RujQtODErqDosmuJMFneC0E0aKne/PYIhl TYo6b1kdZikkWCaO0IFFdkwZdJRvfgdz27S82ildwFLciYlleG18863YGYMoJjlAji09 GfGdLO9yFfoMPiprGrc6GFOp4EwEcOkDXh87qaq97LwsnYWCSbyn3ovcQwMb7ulaYvyh nUrQ== 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=qLErRg+IY+M+tMiWfSLlVJCQY74BdF5SCkyderIHIa0=; fh=klqYlr/UiB1W9fSy65/8cJq9foNplnnlZNQBrJUmwIU=; b=WNF5dyebp/6skrgBzEWFoXrj+UINwa2QLp7QDTlT8Ao41CU41wNtT2S60lu9p1qQ1a IG3pI6imz0AajKSGsv2uVq4Jmj97aUsHR38lOtv0BOlFfueSsCY2FDoSoTIuN8sIywdz uAYMZMcgVHB98T8zEo4oz74s5fvjBCQysO920WmNIsZKIjburhlhSjWeoODKaBuSxl1A Aqqe34pNWbXt+dV7R2WvYkONXu/CCNV5NW2FfWT0BCEAT4s20ovRXWhIAcQQgOSp9ScP j0o1ZlN0ZwT6V0uPEZ8RDMUU9pH7yq1GEhRQ3CIKNzoBcGZQOGicH98OUt0fYvFluWli tQWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=h7xrC5Pk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ob4-20020a17090b390400b002774b340c1fsi1793290pjb.69.2023.10.05.07.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:30:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=h7xrC5Pk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 83DD7807D244; Thu, 5 Oct 2023 07:30:19 -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 S234021AbjJEO3p (ORCPT + 99 others); Thu, 5 Oct 2023 10:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233834AbjJEO1o (ORCPT ); Thu, 5 Oct 2023 10:27:44 -0400 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E06B583D6; Thu, 5 Oct 2023 00:56:24 -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 A74A5152DF11; Thu, 5 Oct 2023 09:56:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1696492577; 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=qLErRg+IY+M+tMiWfSLlVJCQY74BdF5SCkyderIHIa0=; b=h7xrC5PkklBLzvH13lJaXipMzYLk7ODNLFPeypzjuPHUyCP+2NbcQ+lR7VinR5D68csHYC ER5lSQNMZ1BujtcDRgS1EEmaOkSp5YuOTsVmySu1ONKkk1UjK2aNxkLw21T5v35ccRaPjP ET8Ej0R8oBGTFKEcgEr9SS7Use/bjM4= From: Oleksandr Natalenko To: Matthew Wilcox , Thomas Zimmermann Cc: Linux Regressions , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Christian =?ISO-8859-1?Q?K=F6nig?= , linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Maxime Ripard , Bagas Sanjaya , Andrew Morton , Sumit Semwal , linux-media@vger.kernel.org Subject: Re: [REGRESSION] BUG: KFENCE: memory corruption in drm_gem_put_pages+0x186/0x250 Date: Thu, 05 Oct 2023 09:56:03 +0200 Message-ID: <3254850.aeNJFYEL58@natalenko.name> In-Reply-To: References: <13360591.uLZWGnKmhe@natalenko.name> <2160215.irdbgypaU6@natalenko.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3261088.44csPzL39Z"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:30:19 -0700 (PDT) --nextPart3261088.44csPzL39Z Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Oleksandr Natalenko Date: Thu, 05 Oct 2023 09:56:03 +0200 Message-ID: <3254850.aeNJFYEL58@natalenko.name> In-Reply-To: MIME-Version: 1.0 Hello. On =C4=8Dtvrtek 5. =C5=99=C3=ADjna 2023 9:44:42 CEST Thomas Zimmermann wrot= e: > Hi >=20 > Am 02.10.23 um 17:38 schrieb Oleksandr Natalenko: > > On pond=C4=9Bl=C3=AD 2. =C5=99=C3=ADjna 2023 16:32:45 CEST Matthew Wilc= ox wrote: > >> On Mon, Oct 02, 2023 at 01:02:52PM +0200, Oleksandr Natalenko wrote: > >>>>>>> BUG: KFENCE: memory corruption in drm_gem_put_pages+0x186/0x250 > >>>>>>> > >>>>>>> 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 > >>> > >>> Matthew, before I start dancing around, do you think ^^ could have th= e same cause as 0b62af28f249b9c4036a05acfb053058dc02e2e2 which got fixed by= 863a8eb3f27098b42772f668e3977ff4cae10b04? > >> > >> Yes, entirely plausible. I think you have two useful points to look at > >> before delving into a full bisect -- 863a8e and the parent of 0b62af. > >> If either of them work, I think you have no more work to do. > >=20 > > OK, I've did this against v6.5.5: > >=20 > > ``` > > git log --oneline HEAD~3.. > > 7c1e7695ca9b8 (HEAD -> test) Revert "mm: remove struct pagevec" > > 8f2ad53b6eac6 Revert "mm: remove check_move_unevictable_pages()" > > fa1e3c0b5453c Revert "drm: convert drm_gem_put_pages() to use a folio_b= atch" > > ``` > >=20 > > then rebooted the host multiple times, and the issue is not seen any mo= re. > >=20 > > So I guess 3291e09a463870610b8227f32b16b19a587edf33 is the culprit. >=20 > Ignore my other email. It's apparently been fixed already. Thanks! Has it? I think I was able to identify offending commit, but I'm not aware = of any fix to that. Thanks. > Best regards > Thomas >=20 > >=20 > > Thanks. > >=20 >=20 > --=20 > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Frankenstrasse 146, 90461 Nuernberg, Germany > GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman > HRB 36809 (AG Nuernberg) >=20 =2D-=20 Oleksandr Natalenko (post-factum) --nextPart3261088.44csPzL39Z 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/iNcg8M0sFAmUebBMACgkQil/iNcg8 M0tJ/Q/9FPtmZXPGSlNkh2qFBHnyONCuzzj6LT+47+l6Fm7nsJgSnF74o/yV/pMh q7vpMK9rD5WvRyb5fgLxv+qfYz0t09dnOs5K+ZMjpLdeM5GMp78fFB1E/HOUAADx JjTDrWvykfLEDoTBnZedZjxZTaHeR8b0wLvh9f9tF4Z25jeYvy9zWFDueXX97rBo /VxH88ZCRlNwFstWH8qwa6W6DP2hiSb4osfYsftRib0xU3Gu1fNKrsWyw95VfeTd ReiHGad9mQ4Y1AN3Ff9NeoT6/rM/2rG7h6xSgvsVrt1MAw/iwW24bH1lKUe+5f1k fgR7nv6flGS4FF7zZ+deiI+dUaiyt1urG1zZh5U6VhzzW2VandPoTJHE+L1kT8WF kAEsYCwRV2v0lw0YL9JhIPhDgCOT7pLWsIXmZXUKnr7IcR7cGwBPMNYpgxgpYyj0 YqujL4hPU64n46AHLaVlHBAsXO0CLgDqDJjgfbsiWe15XPnAkq0bm8QJRLBjTM0M 7Z6yr0eiGA1cdZtu8wgwen7ZEH94Lq2aBPhHAhSjSqWLlGJunN/aNSi6u3dVGy4h ag1vpbsw2un3WU97sd3AjDunpUn01rk0GiyCWjraCbAyFAQKyVNgdonMGcV5wzX4 fTHWSuLNytga3UcQ/hCYxldyK/iT/HkFV37Z/aKGJX752dw9KNA= =eWGs -----END PGP SIGNATURE----- --nextPart3261088.44csPzL39Z--