[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <nycvar.YSQ.7.76.1802051047031.1842@knanqh.ubzr>
Date: Mon, 5 Feb 2018 10:51:10 -0500 (EST)
From: Nicolas Pitre <nico@...xnic.net>
To: Arnd Bergmann <arnd@...db.de>
cc: Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Juergen Gross <jgross@...e.com>,
David Laight <David.Laight@...lab.com>,
Dan Carpenter <dan.carpenter@...cle.com>,
xen-devel@...ts.xenproject.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [v2] xen: hypercall: fix out-of-bounds memcpy
On Mon, 5 Feb 2018, Arnd Bergmann wrote:
> + if (cmd > ARRAY_SIZE(evtchnop_len))
> + return -ENOSYS;
> + len = evtchnop_len[cmd];
What if cmd == ARRAY_SIZE(evtchnop_len) ?
Nicolas
Powered by blists - more mailing lists