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: <4c600724-3306-0f0e-36dc-52f4f23825bc@linux.ibm.com>
Date:   Thu, 20 Jan 2022 15:50:26 +0100
From:   Karsten Graul <kgraul@...ux.ibm.com>
To:     Tony Lu <tonylu@...ux.alibaba.com>
Cc:     kuba@...nel.org, davem@...emloft.net, netdev@...r.kernel.org,
        linux-s390@...r.kernel.org
Subject: Re: [PATCH net-next] net/smc: Use kvzalloc for allocating
 smc_link_group

On 20/01/2022 15:09, Tony Lu wrote:
> When analyzed memory usage of SMC, we found that the size of struct
> smc_link_group is 16048 bytes, which is too big for a busy machine to
> allocate contiguous memory. Using kvzalloc instead that falls back to
> vmalloc if there has not enough contiguous memory.

I am wondering where the needed contiguous memory for the required RMB buffers should come from when 
you don't even get enough storage for the initial link group?

The idea is that when the system is so low on contiguous memory then a link group creation should fail 
early, because most of the later buffer allocations will also fail then later.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ