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
| ||
|
Date: Wed, 26 Dec 2007 10:38:45 +1100 From: Rusty Russell <rusty@...tcorp.com.au> To: Glauber de Oliveira Costa <gcosta@...hat.com> Cc: lguest@...abs.org, glommer@...il.com, linux-kernel@...r.kernel.org, virtualization@...ts.linux-foundation.org, rostedt@...dmis.org Subject: Re: [PATCH 04/16] per-cpu run guest On Friday 21 December 2007 00:33:44 Glauber de Oliveira Costa wrote: > @@ -55,11 +55,15 @@ static int user_send_irq(struct lguest *lg, const > unsigned long __user *input) static ssize_t read(struct file *file, char > __user *user, size_t size,loff_t*o) { > struct lguest *lg = file->private_data; > + struct lguest_vcpu *vcpu = NULL; > + unsigned int vcpu_id = *o; > > /* You must write LHREQ_INITIALIZE first! */ > if (!lg) > return -EINVAL; > > + vcpu = &lg->vcpus[vcpu_id]; > + Better do a bounds check here! Cheers, Rusty. -- 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