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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 15 Oct 2013 14:25:00 -0400
From:	Jeff Moyer <jmoyer@...hat.com>
To:	Jens Axboe <axboe@...nel.dk>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: blk_mq_update_queue_map makes an (invalid?) assumption about cpu ordering

Jens Axboe <axboe@...nel.dk> writes:

>> This assumes that the first_sibling is listed before any other siblings,
>> which I don't believe is true.  I don't think you get any guaranteed
>> ordering in that cpu_possible_mask.
>> 
>> ... or did I miss something?
>
> That's correct, it's assuming the first sibling is the lowest numbered
> one. Are there cases where that would not be correct? I was sort of
> assuming that was what "first" meant here.

Yeah, you're right.  I hadn't read down the call chain:

static int get_first_sibling(unsigned int cpu)
        ret = cpumask_first(topology_thread_cpumask(cpu));

Nothing to see here, move along...

-Jeff
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ