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] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQWsSWK-_zGe1ggaKuZu+RJ1kb1zuTEokdxqFSbE3UjNRw@mail.gmail.com>
Date:	Sun, 6 May 2012 09:35:44 -0700
From:	Yinghai Lu <yinghai@...nel.org>
To:	Richard Yang <weiyang@...ux.vnet.ibm.com>
Cc:	Wei Yang <weiyang.kernel@...il.com>, linux-pci@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: One problem in reassign pci bus number?

On Sun, May 6, 2012 at 8:17 AM, Richard Yang <weiyang@...ux.vnet.ibm.com> wrote:
> On Fri, May 04, 2012 at 10:37:08AM -0700, Yinghai Lu wrote:
>>On Thu, May 3, 2012 at 9:52 PM, Richard Yang <weiyang@...ux.vnet.ibm.com> wrote:
>>>
>>> BTW, even if this value is returned by __find_res_top_free_size(), or
>>> returned after this function is called, the purpose of the
>>> __find_res_top_free_size() is to get the biggest free space under the
>>> first parameter?
>>
>>__find_res_top_free_size() is used to get size just under top,  and
>>then use it to calculate size above top that need to be extended.
>>
>>at last will combine free size under top and allocated size above top
>>and return.
> Yes, I get the general idea.
>
> then I want to confirm which size __find_res_top_free_size() will return.
>
> Come to the previous question, for one resource like this.
> res =   90-150
>    ->child      105-140
> We call __find_res_top_free_size(res, 1);
> This function should return which size?  10? 15? or 25?
>
> From the code
> +               ret = __allocate_resource(res, &tmp_res, n_size,
> +                       res->end - n_size + skip_nr, res->end,
> +                       1, NULL, NULL, false);
> I think it will check the free space near the end of res.

yes. it is 15, [141-150]
--
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