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: <20140206213953.GA1524@kroah.com>
Date:	Thu, 6 Feb 2014 13:39:53 -0800
From:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To:	Paul Bolle <pebolle@...cali.nl>
Cc:	linux-kernel@...r.kernel.org, stable@...r.kernel.org,
	Tomas Winkler <tomas.winkler@...el.com>,
	Alexander Usyskin <alexander.usyskin@...el.com>
Subject: Re: [PATCH 3.13 054/140] mei: use hbm idle state to prevent spurious
 resets

On Thu, Feb 06, 2014 at 10:27:35PM +0100, Paul Bolle wrote:
> On Tue, 2014-02-04 at 13:10 -0800, Greg Kroah-Hartman wrote:
> > From: Tomas Winkler <tomas.winkler@...el.com>
> > 
> > commit 66ae460b13c31a176b41550259683c841a62af3e upstream.
> > 
> > When reset is caused by hbm protocol mismatch or timeout
> > we might end up in an endless reset loop and hbm protocol
> > will never sync
> > 
> > Signed-off-by: Tomas Winkler <tomas.winkler@...el.com>
> > Signed-off-by: Alexander Usyskin <alexander.usyskin@...el.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> > 
> > ---
> >  drivers/misc/mei/hbm.c       |   19 +++++++++++++++++++
> >  drivers/misc/mei/hbm.h       |    1 +
> >  drivers/misc/mei/init.c      |   12 ++++++++----
> >  drivers/misc/mei/interrupt.c |   25 +++++++++++++++----------
> >  4 files changed, 43 insertions(+), 14 deletions(-)
> > 
> > --- a/drivers/misc/mei/hbm.c
> > +++ b/drivers/misc/mei/hbm.c
> > [...]
> > @@ -577,6 +588,14 @@ void mei_hbm_dispatch(struct mei_device
> >  	mei_read_slots(dev, dev->rd_msg_buf, hdr->length);
> >  	mei_msg = (struct mei_bus_message *)dev->rd_msg_buf;
> >  
> > +	/* ignore spurious message and prevent reset nesting
> > +	 * hbm is put to idle during system reset
> > +	 */
> > +	if (dev->hbm_state == MEI_HBM_IDLE) {
> > +		dev_dbg(&dev->pdev->dev, "hbm: state is idle ignore spurious messages\n");
> > +		return 0;
> > +	}
> > +
> >  	switch (mei_msg->hbm_cmd) {
> >  	case HOST_START_RES_CMD:
> >  		version_res = (struct hbm_host_version_response *)mei_msg;
> 
> This chunk triggers this, obviously correct, warning:
>     drivers/misc/mei/hbm.c: In function 'mei_hbm_dispatch':
>     drivers/misc/mei/hbm.c:596:3: warning: 'return' with a value, in function returning void [enabled by default
>        return 0;
>        ^
> 
> I know that v3.13.2 has just been released. Would it be worth the
> trouble to submit a clean up patch (v3.13 specific, as in v3.14-rc1 this
> function returns int)?

Yes, feel free to send a patch to just remove the ' 0' from that return
line and I'll queue it up.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ