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: Ramiro Aceves <ea1abz%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: "David H. Gutteridge" <david%gutteridge.ca@localhost>,
 Taylor R Campbell <riastradh%NetBSD.org@localhost>
Subject: Re: kern/57833: kernel panic on xorg exit
Date: Fri, 12 Jan 2024 23:52:23 +0100

 El 12/1/24 a las 0:05, David H. Gutteridge escribió:
 > The following reply was made to PR kern/57833; it has been noted by GNATS.
 > 
 > From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
 > To: Taylor R Campbell <riastradh%netbsd.org@localhost>
 > Cc: gnats-bugs%netbsd.org@localhost
 > Subject: Re: kern/57833: kernel panic on xorg exit
 > Date: Thu, 11 Jan 2024 18:04:44 -0500
 > 
 >   --=_79cd473ca3d4e19fbe52c232ee5dd792
 >   Content-Transfer-Encoding: 7bit
 >   Content-Type: text/plain; charset=US-ASCII;
 >    format=flowed
 >   
 >   On 2024-01-10 23:37, Taylor R Campbell wrote:
 >   > Can you also try the attached patch, instead of the other one, to see
 >   > what happens?
 >   >
 >   > (This might break things more spectacularly -- I haven't thought about
 >   > whether it makes a lot of sense -- but it should at least prevent the
 >   > particular crash you observed, if we ever get that far with it.)
 >   
 >   I've supplied a debug log. (It can be found at:
 >   https://www.netbsd.org/~gutteridge/pr57833_debug.log .)
 >   
 >   Applying the first (small) patch did not prevent the panics. But the
 >   larger patch did fix the problem for me. There was a slight coding
 >   error with the second patch (wrong label for a goto statement), so it
 >   didn't compile as-is. I've attached a revised patch that fixes that one
 >   line, should anyone else want to test this.
 >   
 >   Thanks,
 >   
 >   Dave
 
 
 Hello Dave, thanks for feedback. Here I had the same problem, I applied 
 the patch and could not compile the kernel  because en error in 555 line 
 when compiling i915_gem_stolen.c file. I changed
 
 goto err;
 
 to
 
 goto out;
 
 (not sure if that is the right fix)
 
 File compiled ok. Rebuilt the kernel and I had the same panic the first 
 time abandoned Xorg session.
 
 Ramiro.
 
 
 
 
 >   
 >   --=_79cd473ca3d4e19fbe52c232ee5dd792
 >   Content-Transfer-Encoding: base64
 >   Content-Type: text/x-diff;
 >    name=pr57833-i915gempages-v2.patch
 >   Content-Disposition: attachment;
 >    filename=pr57833-i915gempages-v2.patch;
 >    size=4173
 >   
 >   ZGlmZiAtLWdpdCBhL3N5cy9leHRlcm5hbC9ic2QvZHJtMi9kaXN0L2RybS9pOTE1L2dlbS9pOTE1
 >   X2dlbV9tbWFuLmMgYi9zeXMvZXh0ZXJuYWwvYnNkL2RybTIvZGlzdC9kcm0vaTkxNS9nZW0vaTkx
 >   NV9nZW1fbW1hbi5jCmluZGV4IDhlNTkyZjAwOGVmNy4uMjc2ZWJiZGJjMjM0IDEwMDY0NAotLS0g
 >   YS9zeXMvZXh0ZXJuYWwvYnNkL2RybTIvZGlzdC9kcm0vaTkxNS9nZW0vaTkxNV9nZW1fbW1hbi5j
 >   CisrKyBiL3N5cy9leHRlcm5hbC9ic2QvZHJtMi9kaXN0L2RybS9pOTE1L2dlbS9pOTE1X2dlbV9t
 >   bWFuLmMKQEAgLTY3Nyw2ICs2NzcsOCBAQCB2b2lkIGk5MTVfZ2VtX29iamVjdF9yZWxlYXNlX21t
 >   YXBfb2Zmc2V0KHN0cnVjdCBkcm1faTkxNV9nZW1fb2JqZWN0ICpvYmopCiAJCXJldHVybjsKIAlm
 >   b3IgKGkgPSAwOyBpIDwgb2JqLT5iYXNlLnNpemUgPj4gUEFHRV9TSElGVDsgaSsrKSB7CiAJCXBh
 >   Z2UgPSBvYmotPm1tLnBhZ2VzLT5zZ2wtPnNnX3Bnc1tpXTsKKwkJaWYgKHBhZ2UgPT0gTlVMTCkK
 >   KwkJCWNvbnRpbnVlOwogCQl2bV9wYWdlID0gJ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9IGRtYXQ7CisJc2ctPnNnX2RtYXQgPSBkbWF0OwogCiAJLyogWFhYIGVycm5vIE5l
 >   dEJTRC0+TGl1eCAqLwotCXJldCA9IC1idXNfZG1hbWFwX2xvYWRfcmF3KGRtYXQsIHN0LT5zZ2wt
 >   PnNnX2RtYW1hcCwgc2VnLCBuc2VnLCBzaXplLAorCXJldCA9IC1idXNfZG1hbWFwX2xvYWRfcmF3
 >   KGRtYXQsIHNnLT5zZ19kbWFtYXAsIHNlZywgbnNlZywgc2l6ZSwKIAkgICAgQlVTX0RNQV9XQUlU
 >   T0spOwogCWlmIChyZXQpIHsKIAkJRFJNX0VSUk9SKCJmYWlsZWQgdG8gbG9hZCBETUEgbWFwIGZv
 >   ciBzdG9sZW4gb2JqZWN0OiAlZFxuIiwKQEAgLTU3MSwxMyArNTc3LDEyIEBAIGk5MTVfcGFnZXNf
 >   Y3JlYXRlX2Zvcl9zdG9sZW4oc3RydWN0IGRybV9kZXZpY2UgKmRldiwKIAogb3V0OglpZiAocmV0
 >   KSB7CiAJCWlmIChsb2FkZWQpCi0JCQlidXNfZG1hbWFwX3VubG9hZChkbWF0LCBzdC0+c2dsLT5z
 >   Z19kbWFtYXApOworCQkJYnVzX2RtYW1hcF91bmxvYWQoZG1hdCwgc2ctPnNnX2RtYW1hcCk7CiAJ
 >   CXNnX2ZyZWVfdGFibGUoc3QpOwogCQlrZnJlZShzdCk7CiAJCXJldHVybiBFUlJfUFRSKHJldCk7
 >   CiAJfQogI2Vsc2UKLQlzZyA9IHN0LT5zZ2w7CiAJc2ctPm9mZnNldCA9IDA7CiAJc2ctPmxlbmd0
 >   aCA9IHNpemU7CiAK
 >   --=_79cd473ca3d4e19fbe52c232ee5dd792--
 >   
 


Home | Main Index | Thread Index | Old Index