RE: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

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

 



> -----Original Message-----
> From: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, February 27, 2018 12:31 PM
> To: Limonciello, Mario <Mario_Limonciello@xxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx; andriy.shevchenko@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather than
> globally
> 
> On Tue, Feb 27, 2018 at 03:01:24PM +0000, Mario.Limonciello@xxxxxxxx wrote:
> > > -----Original Message-----
> > > From: Limonciello, Mario
> > > Sent: Thursday, February 15, 2018 8:50 AM
> > > To: 'Greg KH' <gregkh@xxxxxxxxxxxxxxxxxxx>
> > > Cc: stable@xxxxxxxxxxxxxxx; andriy.shevchenko@xxxxxxxxxxxxxxx
> > > Subject: RE: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather
> than
> > > globally
> > >
> > > > -----Original Message-----
> > > > From: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx]
> > > > Sent: Thursday, February 15, 2018 8:28 AM
> > > > To: Limonciello, Mario <Mario_Limonciello@xxxxxxxx>
> > > > Cc: stable@xxxxxxxxxxxxxxx; andriy.shevchenko@xxxxxxxxxxxxxxx
> > > > Subject: Re: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap rather
> > > than
> > > > globally
> > > >
> > > > On Tue, Feb 13, 2018 at 07:54:10PM +0000, Mario.Limonciello@xxxxxxxx
> wrote:
> > > > > > -----Original Message-----
> > > > > > From: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx]
> > > > > > Sent: Tuesday, February 13, 2018 1:52 PM
> > > > > > To: Limonciello, Mario <Mario_Limonciello@xxxxxxxx>
> > > > > > Cc: linux-stable <stable@xxxxxxxxxxxxxxx>; Andy Shevchenko
> > > > > > <andriy.shevchenko@xxxxxxxxxxxxxxx>
> > > > > > Subject: Re: [PATCH] platform/x86: dell-laptop: Allocate buffer on heap
> rather
> > > > than
> > > > > > globally
> > > > > >
> > > > > > On Tue, Feb 13, 2018 at 01:39:19PM -0600, Mario Limonciello wrote:
> > > > > > > There is no longer a need for the buffer to be defined in
> > > > > > > first 4GB physical address space.
> > > > > > >
> > > > > > > Furthermore there may be race conditions with multiple different
> functions
> > > > > > > working on a module wide buffer causing incorrect results.
> > > > > > >
> > > > > > > This commit has been backported from:
> > > > > > > commit 9862b43624 upstream
> > > > > > >
> > > > > > > Fixes: 549b4930f057658dc50d8010e66219233119a4d8
> > > > > > > Suggested-by: Pali Rohar <pali.rohar@xxxxxxxxx>
> > > > > > > Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxxx>
> > > > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> > > > > > > ---
> > > > > > >  drivers/platform/x86/dell-laptop.c | 188 ++++++++++++++++++++---------
> -----
> > > --
> > > > -
> > > > > > >  1 file changed, 103 insertions(+), 85 deletions(-)
> > > > > >
> > > > > > Why is this a stable patch?  What bug does it fix?
> > > > > >
> > > > > > confused,
> > > > > >
> > > > > > greg k-h
> > > > >
> > > > > Greg,
> > > > >
> > > > > I realized I forgot to send this 2 weeks ago when you said a clean backport
> > > > > didn't work.  This was a follow up from a race condition that was seen in
> > > > > the wild and submitted to platform-x86.
> > > >
> > > > Ok, what kernel tree(s) do you want it applied to?  I need a hint please :)
> > > >
> > > > thanks,
> > > >
> > > > greg k-h
> > >
> > > 4.15.y please.
> > >
> > > Thank you,
> >
> > Hi Greg,
> >
> > I just wanted to follow up on this one because I noticed it's not in 4.15.y still
> > And there are some bug traffics about problems.
> 
> Ah, ooops, this fell to the bottom of the heap, sorry.  Will pick it up
> in the next release.

No worry, glad I checked.

> 
> > There's also another patch that was CC'ed to stable that came after it that
> > should be going to 4.15.y.
> >
> > I can resubmit it with those bug URLs and squash that patch if it's helpful to
> > you.
> 
> No, no squashing patches, I want the "identical" patch that is in
> Linus's tree where ever possible.
> 

OK thanks for confirming.
If you want to refer to the open Bugzilla that came up around this in commit
message when you add here is the URL:
https://bugzilla.redhat.com/show_bug.cgi?id=1546464#c11

This is the other patch that got CC'ed to stable that goes on top of mine in 4.15.y.
https://www.spinics.net/lists/stable/msg215268.html





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]