Re: Null pointer dereference in pti_exit()

From: J Freyensee
Date: Wed Mar 28 2012 - 13:46:27 EST


On 03/26/2012 07:31 AM, Stanislaw Gruszka wrote:
Hi

We have this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=783561

Crash when someone load module and do not have actual pti device.
Then misc_deregister(&pti_char_driver) called from pti_exit() will be
done without misc_register(&pti_char_driver), which is called from
pti_pci_probe().

It is not super critical issue since if somebody who do not have
pti device have no reason to load modules, but I guess would be
good to fix this.


Thanks for the email. I just got back from a 3 month sabbatical so I am slowly getting back into the real world and how to be a computer engineer.

Yes, I am not sure why someone would want to configure their kernel to load a PTI module when there is not one on the platform to begin with. So that is a configuration problem of a user. But I'll look at it and see if I think of anything; be a good exercise to re-jog my memory.

Thanks,
Jay

Thanks
Stanislaw


--
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/