lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6b7e542600448ea9f9632e8cb43f301@ausx13mpc120.AMER.DELL.COM>
Date:   Tue, 17 Oct 2017 18:56:52 +0000
From:   <Mario.Limonciello@...l.com>
To:     <pali.rohar@...il.com>
CC:     <dvhart@...radead.org>, <andy.shevchenko@...il.com>,
        <linux-kernel@...r.kernel.org>,
        <platform-driver-x86@...r.kernel.org>, <luto@...nel.org>,
        <quasisec@...gle.com>, <rjw@...ysocki.net>, <mjg59@...gle.com>,
        <hch@....de>, <greg@...ah.com>, <gnomes@...rguk.ukuu.org.uk>
Subject: RE: [PATCH v9 04/17] platform/x86: dell-wmi: allow 32k return size in
 the descriptor

> -----Original Message-----
> From: Pali Rohár [mailto:pali.rohar@...il.com]
> Sent: Tuesday, October 17, 2017 1:47 PM
> To: Limonciello, Mario <Mario_Limonciello@...l.com>
> Cc: dvhart@...radead.org; Andy Shevchenko <andy.shevchenko@...il.com>;
> LKML <linux-kernel@...r.kernel.org>; platform-driver-x86@...r.kernel.org; Andy
> Lutomirski <luto@...nel.org>; quasisec@...gle.com; rjw@...ysocki.net;
> mjg59@...gle.com; hch@....de; Greg KH <greg@...ah.com>; Alan Cox
> <gnomes@...rguk.ukuu.org.uk>
> Subject: Re: [PATCH v9 04/17] platform/x86: dell-wmi: allow 32k return size in the
> descriptor
> 
> On Tuesday 17 October 2017 13:21:48 Mario Limonciello wrote:
> > Some platforms this year will be adopting 32k WMI buffer, so don't
> > complain when encountering those.
> >
> > Signed-off-by: Mario Limonciello <mario.limonciello@...l.com>
> > Reviewed-by: Edward O'Callaghan <quasisec@...gle.com>
> > ---
> >  drivers/platform/x86/dell-wmi.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
> > index ece2fe341f01..2578dff90a14 100644
> > --- a/drivers/platform/x86/dell-wmi.c
> > +++ b/drivers/platform/x86/dell-wmi.c
> > @@ -624,7 +624,7 @@ static void dell_wmi_input_destroy(struct wmi_device
> *wdev)
> >   * Vendor Signature          0       4    "DELL"
> >   * Object Signature          4       4    " WMI"
> >   * WMI Interface Version     8       4    <version>
> > - * WMI buffer length        12       4    4096
> > + * WMI buffer length        12       4    4096 or 32768
> >   */
> >  static int dell_wmi_check_descriptor_buffer(struct wmi_device *wdev)
> >  {
> > @@ -674,7 +674,7 @@ static int dell_wmi_check_descriptor_buffer(struct
> wmi_device *wdev)
> >  		dev_warn(&wdev->dev, "Dell descriptor buffer has unknown
> version (%u)\n",
> >  			buffer[2]);
> >
> > -	if (buffer[3] != 4096)
> > +	if (buffer[3] != 4096 && buffer[3] != 32768)
> >  		dev_warn(&wdev->dev, "Dell descriptor buffer has invalid buffer
> length (%u)\n",
> >  			buffer[3]);
> >
> 
> Now, when buffer size is going to be exported to userspace and userspace
> would need to prepare correct request, would not it better to allow any
> positive buffer size? This would allow new machines to work even if
> buffer size would be increased again (or decreased).

I suppose you're right the warning isn't very useful as the data is properly
used within userspace and the rest of the drivers now.  I'll make some
adjustments to remove this warning instead.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ