* Heads up: dell-wmi bug
@ 2015-12-31 12:31 Andy Lutomirski
2015-12-31 12:34 ` Pali Rohár
0 siblings, 1 reply; 3+ messages in thread
From: Andy Lutomirski @ 2015-12-31 12:31 UTC (permalink / raw)
To: platform-driver-x86, Pali Rohár
Hi-
I'm getting intermittent OOPSes when playing with dell-wmi. I think
that find_hk_type function is buggy: it's saving a pointer to DMI
data, but you can't do that, because dmi_walk unmaps the data at the
end. It probably works reliably on current kernels due to luck
(either a memory layout such that the unmap has no effect or deferred
vmap zapping).
If no one beats me to it, I'll fix this as part of the rebase work on
my big wmi series.
--Andy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Heads up: dell-wmi bug
2015-12-31 12:31 Heads up: dell-wmi bug Andy Lutomirski
@ 2015-12-31 12:34 ` Pali Rohár
2015-12-31 21:21 ` Andy Lutomirski
0 siblings, 1 reply; 3+ messages in thread
From: Pali Rohár @ 2015-12-31 12:34 UTC (permalink / raw)
To: Andy Lutomirski; +Cc: platform-driver-x86
[-- Attachment #1: Type: Text/Plain, Size: 872 bytes --]
On Thursday 31 December 2015 13:31:03 Andy Lutomirski wrote:
> Hi-
>
> I'm getting intermittent OOPSes when playing with dell-wmi. I think
> that find_hk_type function is buggy: it's saving a pointer to DMI
> data, but you can't do that, because dmi_walk unmaps the data at the
> end. It probably works reliably on current kernels due to luck
> (either a memory layout such that the unmap has no effect or deferred
> vmap zapping).
>
> If no one beats me to it, I'll fix this as part of the rebase work on
> my big wmi series.
>
> --Andy
Hi! If this is truth, then I think separate patch for fixing this
problem should be created and backported also to stable kernels.
In my opinion WMI rework patches should not change functionality, just
API... Other function changes should be in separate commits.
--
Pali Rohár
pali.rohar@gmail.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Heads up: dell-wmi bug
2015-12-31 12:34 ` Pali Rohár
@ 2015-12-31 21:21 ` Andy Lutomirski
0 siblings, 0 replies; 3+ messages in thread
From: Andy Lutomirski @ 2015-12-31 21:21 UTC (permalink / raw)
To: Pali Rohár; +Cc: platform-driver-x86
On Dec 31, 2015 8:34 PM, "Pali Rohár" <pali.rohar@gmail.com> wrote:
>
> On Thursday 31 December 2015 13:31:03 Andy Lutomirski wrote:
> > Hi-
> >
> > I'm getting intermittent OOPSes when playing with dell-wmi. I think
> > that find_hk_type function is buggy: it's saving a pointer to DMI
> > data, but you can't do that, because dmi_walk unmaps the data at the
> > end. It probably works reliably on current kernels due to luck
> > (either a memory layout such that the unmap has no effect or deferred
> > vmap zapping).
> >
> > If no one beats me to it, I'll fix this as part of the rebase work on
> > my big wmi series.
> >
> > --Andy
>
> Hi! If this is truth, then I think separate patch for fixing this
> problem should be created and backported also to stable kernels.
>
> In my opinion WMI rework patches should not change functionality, just
> API... Other function changes should be in separate commits.
Agreed. I just meant that I'd do it at the same time, not that it
would be the same patch.
>
> --
> Pali Rohár
> pali.rohar@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-31 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-31 12:31 Heads up: dell-wmi bug Andy Lutomirski
2015-12-31 12:34 ` Pali Rohár
2015-12-31 21:21 ` Andy Lutomirski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.