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: Fri, 7 Jun 2013 15:47:16 +0200 From: Robert Richter <rric@...nel.org> To: Borislav Petkov <bp@...en8.de> Cc: Jiri Olsa <jolsa@...hat.com>, Ingo Molnar <mingo@...nel.org>, Peter Zijlstra <peterz@...radead.org>, Arnaldo Carvalho de Melo <acme@...stprotocols.net>, linux-kernel@...r.kernel.org Subject: Re: [PATCH 16/16] perf, persistent: Allow multiple users for an event On 04.06.13 11:35:22, Borislav Petkov wrote: > On Tue, Jun 04, 2013 at 11:19:21AM +0200, Jiri Olsa wrote: > > 'cpu' did not pass ay check here.. > > Oh, I see. > > You mean something like > > if (cpu < NR_CPUS && cpu_online(cpu)) In perf_event_alloc() there is: if ((unsigned)cpu >= nr_cpu_ids) { if (!task || cpu != -1) return ERR_PTR(-EINVAL); } So this should be sufficient: if ((unsigned)cpu >= nr_cpu_ids) ... -Robert -- 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