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  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]
Date:   Tue, 13 Mar 2018 23:01:05 +0100
From:   Salvatore Mesoraca <>
To:     Vivien Didelot <>
        Kernel Hardening <>,, "David S. Miller" <>,
        Andrew Lunn <>,
        Florian Fainelli <>,
        Kees Cook <>
Subject: Re: [PATCH] net: dsa: drop some VLAs in switch.c

2018-03-13 20:58 GMT+01:00 Vivien Didelot <>:
> Hi Salvatore,

Hi Vivien,

> Salvatore Mesoraca <> writes:
>> dsa_switch's num_ports is currently fixed to DSA_MAX_PORTS. So we avoid
>> 2 VLAs[1] by using DSA_MAX_PORTS instead of ds->num_ports.
>> [1]
>> Signed-off-by: Salvatore Mesoraca <>
> NAK.
> We are in the process to remove hardcoded limits such as DSA_MAX_PORTS
> and DSA_MAX_SWITCHES, so we have to stick with ds->num_ports.

I can rewrite the patch using kmalloc.
Although, if ds->num_ports will always be less than or equal to 12, it
should be better to
just use DSA_MAX_PORTS.

Thank you,


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux - Powered by OpenVZ