[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180709120317.GC5196@kroah.com>
Date: Mon, 9 Jul 2018 14:03:17 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: "Winkler, Tomas" <tomas.winkler@...el.com>
Cc: Dan Carpenter <dan.carpenter@...cle.com>,
"Usyskin, Alexander" <alexander.usyskin@...el.com>,
Arnd Bergmann <arnd@...db.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH] mei: bus: type promotion bug in mei_nfc_if_version()
On Mon, Jul 09, 2018 at 11:36:21AM +0000, Winkler, Tomas wrote:
> >
> > On Wed, Jul 04, 2018 at 12:34:49PM +0300, Dan Carpenter wrote:
> > > We accidentally removed the check for negative returns without
> > > considering the issue of type promotion. The "if_version_length"
> > > variable is type size_t so if __mei_cl_recv() returns a negative then
> > > "bytes_recv" is type promoted to a high positive value and treated as
> > > success.
> > >
> > > Fixes: 582ab27a063a ("mei: bus: fix received data size check in NFC
> > > fixup")
> > > Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
> >
> > Didn't apply to my tree at all :(
>
> I will rework this, anyhow I would prefer if you can wait for my signoff before applying,
> I believe we are reasonably responsive.
Yes you are, but for trusted developers, it's fine to merge their stuff
as well. Remember, maintainers are not "gatekeepers" :)
thanks,
greg k-h
Powered by blists - more mailing lists