From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 87576] New: Null dereference in npramin_finit Date: Mon, 22 Dec 2014 06:07:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0896093242==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0896093242== Content-Type: multipart/alternative; boundary="1419228446.483aff0.28514"; charset="UTF-8" --1419228446.483aff0.28514 Date: Mon, 22 Dec 2014 06:07:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=87576 Bug ID: 87576 Summary: Null dereference in npramin_finit Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: blocker Priority: medium Component: Drivers/DRI/nouveau Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Reporter: rjgleits-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org Created attachment 111144 --> https://bugs.freedesktop.org/attachment.cgi?id=111144&action=edit fix null dereference oops in nouveau.ko This problem manifests when chipset is < nv50. In this case, pramin_init returns NULL. mthd->data is then set to this value in shadow_method. Later, mthd-> data is passed as a parameter to pramin_fini. The result is a kernel oops. The attached patch takes care of that. Best Wishes, Bob Gleitsmann -- You are receiving this mail because: You are the assignee for the bug. --1419228446.483aff0.28514 Date: Mon, 22 Dec 2014 06:07:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 87576
Summary Null dereference in npramin_finit
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity blocker
Priority medium
Component Drivers/DRI/nouveau
Assignee nouveau@lists.freedesktop.org
Reporter rjgleits@bellsouth.net

Created attachment 111144 [details]
fix null dereference oops in nouveau.ko

This problem manifests when chipset is < nv50. In this case, pramin_init
returns NULL. mthd->data is then set to this value in shadow_method. Later,
mthd-> data is passed as a parameter to pramin_fini. The result is a kernel
oops. The attached patch takes care of that.

Best Wishes,

Bob Gleitsmann


You are receiving this mail because:
  • You are the assignee for the bug.
--1419228446.483aff0.28514-- --===============0896093242== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK --===============0896093242==--