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  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:   Wed, 19 Jan 2022 23:35:44 +0200
From:   Andy Shevchenko <>
To:     Hector Martin <>
Cc:     Kalle Valo <>,
        "David S. Miller" <>,
        Jakub Kicinski <>,
        Rob Herring <>,
        "Rafael J. Wysocki" <>,
        Len Brown <>,
        Arend van Spriel <>,
        Franky Lin <>,
        Hante Meuleman <>,
        Chi-hsien Lin <>,
        Wright Feng <>,
        Dmitry Osipenko <>,
        Sven Peter <>,
        Alyssa Rosenzweig <>,
        Mark Kettenis <>,
        Rafał Miłecki <>,
        Pieter-Paul Giesberts <>,
        Linus Walleij <>,
        Hans de Goede <>,
        "John W. Linville" <>,
        "brian m. carlson" <>,
        "open list:TI WILINK WIRELES..." <>,
        netdev <>,
        devicetree <>,
        Linux Kernel Mailing List <>,
        ACPI Devel Maling List <>,
        "open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER" 
Subject: Re: [PATCH v3 2/9] brcmfmac: firmware: Allocate space for default
 boardrev in nvram

On Mon, Jan 17, 2022 at 4:30 PM Hector Martin <> wrote:
> If boardrev is missing from the NVRAM we add a default one, but this
> might need more space in the output buffer than was allocated. Ensure
> we have enough padding for this in the buffer.

Do you know this ahead (before allocation happens)?
If yes, the size change should happen conditionally.

Alternatively, krealloc() may be used.

With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists