NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/57833: kernel panic on xorg exit



The following reply was made to PR kern/57833; it has been noted by GNATS.

From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
To: Ramiro Aceves <ea1abz%gmail.com@localhost>,
	"David H. Gutteridge" <david%gutteridge.ca@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
Subject: Re: kern/57833: kernel panic on xorg exit
Date: Thu, 11 Jan 2024 03:23:52 +0000

 This is a multi-part message in MIME format.
 --=_0HRkmbj5w4l3btWdYGspzomvaep+joYl
 
 Can you please try the attached patch and see if it makes progress?
 
 I don't know if this condition should be possible, so this might be
 papering over the symptom rather than addressing the problem, but
 maybe it'll work as a stop-gap measure.
 
 --=_0HRkmbj5w4l3btWdYGspzomvaep+joYl
 Content-Type: text/plain; charset="ISO-8859-1"; name="pr57833-i915gemrelmmapoffnullpage"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="pr57833-i915gemrelmmapoffnullpage.patch"
 
 diff --git a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c b/sys/=
 external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c
 index 8e592f008ef7..276ebbdbc234 100644
 --- a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c
 +++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c
 @@ -677,6 +677,8 @@ void i915_gem_object_release_mmap_offset(struct drm_i91=
 5_gem_object *obj)
  		return;
  	for (i =3D 0; i < obj->base.size >> PAGE_SHIFT; i++) {
  		page =3D obj->mm.pages->sgl->sg_pgs[i];
 +		if (page =3D=3D NULL)
 +			continue;
  		vm_page =3D &page->p_vmp;
  		pmap_page_protect(vm_page, VM_PROT_NONE);
  	}
 
 --=_0HRkmbj5w4l3btWdYGspzomvaep+joYl--
 


Home | Main Index | Thread Index | Old Index