xen/arm: map_dev_mmio_region: printk should be ratelimited

The function map_dev_mmio_region is used in a hypercall. Therefore all
printks should be ratelimited to avoid a malicious guest flooding the
console.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
Shannon Zhao authored and Konrad Rzeszutek Wilk committed 2016-04-08 11:35:14 -04:00
1 parent 30417631fb
commit c7445d8c8e
1 file changed
+1 -1
+1 -1
View File
@@ -1284,7 +1284,7 @@ int map_dev_mmio_region(struct domain *d,
res = map_mmio_regions(d, start_gfn, nr, mfn);
if ( res < 0 )
{
printk(XENLOG_ERR "Unable to map [%#lx - %#lx] in Dom%d\n",
printk(XENLOG_G_ERR "Unable to map [%#lx - %#lx] in Dom%d\n",
start_gfn, start_gfn + nr - 1, d->domain_id);
return res;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.