From: Juergen Gross Date: Thu, 07 Mar 2019 07:12:21 +0000 Subject: Re: [PATCH] xen, cpu_hotplug: Prevent an out of bounds access Message-Id: <51944e51-25e5-3aa2-6301-ba2d4d925bb5@suse.com> List-Id: References: <20190307054122.GB4517@kadam> In-Reply-To: <20190307054122.GB4517@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter , Boris Ostrovsky , Alex Nixon Cc: xen-devel@lists.xenproject.org, Stefano Stabellini , kernel-janitors@vger.kernel.org On 07/03/2019 06:41, Dan Carpenter wrote: > The "cpu" variable comes from the sscanf() so Smatch marks it as > untrusted data. We can't pass a higher value than "nr_cpu_ids" to > cpu_possible() or it results in an out of bounds access. > > Fixes: d68d82afd4c8 ("xen: implement CPU hotplugging") > Signed-off-by: Dan Carpenter Reviewed-by: Juergen Gross Juergen