From nobody Thu Feb 23 01:25:22 2023 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PMb1b2Cmyz3skPR for ; Thu, 23 Feb 2023 01:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMb1b1CRHz48tl for ; Thu, 23 Feb 2023 01:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677115523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fl6MDCrYyZ9Lwudh3QmNqEEOu0gtqoDWgCV86vlS+dk=; b=Mv2J5wOjuWPOPXOi8uq9LuP3s5MVA5iY7kttFpKrFj92pubZD7Ja3D6QGglXMaWKmzx0aP p2oZdG2aUF+Idm0KwBKLuXSWx1mFuZY6MMzQw6FDOo40/zTJDJ3eBMYOZjqSqF0m1Xajny aM+b9+R2H3NMuB1ZCFIp88dHeFZeg6G98bV2okhD2RwPx4Xq23h8WIMZqs+vZICBSF/2Qe hs+lKvQz22jGAKkdjj6Nfa0Rspv269/2PFsrusy4R0QTZZTirnJXnwuup9GTS8dFWvP2OQ 47kmz9nlDI6k22CXdAepgzOK3uK+MdjkmZnoXJ3Jvt045j9Me+n7vZ4Q5Os7pw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677115523; a=rsa-sha256; cv=none; b=LKnWu3zojITe2y9n+qeBoBqaGmeCZ4buzJoo1wHdDZjrW+VzrzWJj4zSJ/GZQK5bOhWjdx DUebtAyUhLil2/zS08rx8qf6L/VIFrda50Q47tVzkPGcyZaRMyuWTjwN6Wi7ixsiW9olMt MaJA/xxF2/GcRPkfH4BHmKkf2boyRBDX0OG7cX0JHhYihprpDwsKS+mQIsO96as0yKNYN+ QNEyO35y+8Dk5CcdbkMeChgCxZI42FOd1QvnQKzfN7xaCVdqYeT8+c6yDGVet0upy7l0/V nI1AzFVpcRicl3WPfm3sP9ehl6oajRMlGbpZ9KOJZwEobE0wf4tqpn6f7cbtOw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PMb1b0G1xzNm4 for ; Thu, 23 Feb 2023 01:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31N1PM9b018280 for ; Thu, 23 Feb 2023 01:25:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31N1PMeW018279 for x11@FreeBSD.org; Thu, 23 Feb 2023 01:25:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 266315] linuxkpi panic after recent updates (13.1-STABLE #0 stable/13-9cbba5950: Wed Sep 7 23:42:41 CEST 2022) Date: Thu, 23 Feb 2023 01:25:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dufresnep@zoho.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266315 --- Comment #44 from Paul Dufresne --- (In reply to jakub_lach from comment #35) I searched: i915-userptr-acquir and come to this patch: https://lore.kernel.org/lkml/20191010083524.098009692@linuxfoundation.org/ With that patch: Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=3D203317 Fixes: 5cc9ed4b9a7a ("drm/i915: Introduce mapping of user pages into video memory (userptr) ioctl") Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: stable@vger.kernel.org Reviewed-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20190708140327.26825-1-chris@= chris-wilson.co.uk Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/i915_gem_userptr.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_userptr.c b/drivers/gpu/drm/i915/i915_gem_userptr.c index 05ae8c4a8a1b6..9760b67dab28b 100644 --- a/drivers/gpu/drm/i915/i915_gem_userptr.c +++ b/drivers/gpu/drm/i915/i915_gem_userptr.c @@ -691,7 +691,15 @@ i915_gem_userptr_put_pages(struct drm_i915_gem_object *obj, for_each_sgt_page(page, sgt_iter, pages) { if (obj->mm.dirty) - set_page_dirty(page); + /* + * As this may not be anonymous memory (e.g. shmem) + * but exist on a real mapping, we have to lock + * the page in order to dirty it -- holding + * the page reference is not sufficient to + * prevent the inode from being truncated. + * Play safe and take the lock. + */ + set_page_dirty_lock(page); mark_page_accessed(page); put_page(page); --=20 2.20.1 Need to find where the equivalent for us is and see if it is applied. --=20 You are receiving this mail because: You are on the CC list for the bug.=